Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

6 місяці тому
6 місяці тому
8 роки тому
6 місяці тому
12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * wiringPiSPI.h:
  3. * Simplified SPI access routines
  4. * Copyright (c) 2012-2024 Gordon Henderson and contributors
  5. ***********************************************************************
  6. * This file is part of wiringPi:
  7. * https://github.com/WiringPi/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. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27. int wiringPiSPIGetFd (int channel) ;
  28. int wiringPiSPIDataRW (int channel, unsigned char *data, int len) ;
  29. int wiringPiSPISetupMode (int channel, int speed, int mode) ;
  30. int wiringPiSPISetup (int channel, int speed) ;
  31. int wiringPiSPIClose (const int channel); //Interface 3.5
  32. //Interface 3.5
  33. int wiringPiSPIxGetFd (const int number, const int channel) ;
  34. int wiringPiSPIxDataRW (const int number, const int channel, unsigned char *data, const int len) ;
  35. int wiringPiSPIxSetupMode (const int number, const int channel, const int speed, const int mode) ;
  36. int wiringPiSPIxSetup (const int number, const int channel, const int speed) ;
  37. int wiringPiSPIxClose (const int number, const int channel);
  38. #ifdef __cplusplus
  39. }
  40. #endif