Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * drcNetCmd.c:
  3. * Copyright (c) 2012-2017 Gordon Henderson
  4. ***********************************************************************
  5. * This file is part of wiringPi:
  6. * https://github.com/WiringPi/WiringPi/
  7. *
  8. * wiringPi is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU Lesser General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * wiringPi is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU Lesser General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public License
  19. * along with wiringPi. If not, see <http://www.gnu.org/licenses/>.
  20. ***********************************************************************
  21. */
  22. #define DEFAULT_SERVER_PORT 6124
  23. #define DRCN_PIN_MODE 1
  24. #define DRCN_PULL_UP_DN 2
  25. #define DRCN_DIGITAL_WRITE 3
  26. #define DRCN_DIGITAL_WRITE8 4
  27. #define DRCN_ANALOG_WRITE 5
  28. #define DRCN_PWM_WRITE 6
  29. #define DRCN_DIGITAL_READ 7
  30. #define DRCN_DIGITAL_READ8 8
  31. #define DRCN_ANALOG_READ 9
  32. struct drcNetComStruct
  33. {
  34. uint32_t pin ;
  35. uint32_t cmd ;
  36. uint32_t data ;
  37. };