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.

drcNet.h 1.3 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * drcNet.h:
  3. * Extend wiringPi with the DRC Network protocol (e.g. to another Pi)
  4. * Copyright (c) 2016-2017 Gordon Henderson
  5. ***********************************************************************
  6. * This file is part of wiringPi:
  7. * https://projects.drogon.net/raspberry-pi/wiringpi/
  8. *
  9. * wiringPi is free software: you can redistribute it and/or modify
  10. * it under the terms of the GNU Lesser General Public License as
  11. * published by the Free Software Foundation, either version 3 of the
  12. * License, or (at your option) any later version.
  13. *
  14. * wiringPi is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU Lesser General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Lesser General Public
  20. * License along with wiringPi.
  21. * If not, see <http://www.gnu.org/licenses/>.
  22. ***********************************************************************
  23. */
  24. /*********
  25. struct drcNetStruct
  26. {
  27. uint32_t pin ;
  28. uint32_t cmd ;
  29. uint32_t data ;
  30. } ;
  31. **************/
  32. #ifdef __cplusplus
  33. extern "C" {
  34. #endif
  35. extern int drcSetupNet (const int pinBase, const int numPins, const char *ipAddress, const char *port, const char *password) ;
  36. #ifdef __cplusplus
  37. }
  38. #endif