Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

8 лет назад
8 лет назад
123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * gertboard.h:
  3. * Access routines for the SPI devices on the Gertboard
  4. * Copyright (c) 2012 Gordon Henderson
  5. *
  6. * The Gertboard has an MCP4802 dual-channel D to A convertor
  7. * connected to the SPI bus, selected via chip-select B.
  8. *
  9. ***********************************************************************
  10. * This file is part of wiringPi:
  11. * https://github.com/WiringPi/WiringPi/
  12. *
  13. * wiringPi is free software: you can redistribute it and/or modify
  14. * it under the terms of the GNU Lesser General Public License as
  15. * published by the Free Software Foundation, either version 3 of the
  16. * License, or (at your option) any later version.
  17. *
  18. * wiringPi is distributed in the hope that it will be useful,
  19. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21. * GNU Lesser General Public License for more details.
  22. *
  23. * You should have received a copy of the GNU Lesser General Public
  24. * License along with wiringPi.
  25. * If not, see <http://www.gnu.org/licenses/>.
  26. ***********************************************************************
  27. */
  28. #ifdef __cplusplus
  29. extern "C" {
  30. #endif
  31. // Old routines
  32. extern void gertboardAnalogWrite (const int chan, const int value) ;
  33. extern int gertboardAnalogRead (const int chan) ;
  34. extern int gertboardSPISetup (void) ;
  35. // New
  36. extern int gertboardAnalogSetup (const int pinBase) ;
  37. #ifdef __cplusplus
  38. }
  39. #endif