Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

wiringSerial.h 1.4 KiB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * wiringSerial.h:
  3. * Handle a serial port
  4. ***********************************************************************
  5. * This file is part of wiringPi:
  6. * https://projects.drogon.net/raspberry-pi/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. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. extern int serialOpen (char *device, int baud) ;
  26. extern void serialClose (int fd) ;
  27. extern void serialFlush (int fd) ;
  28. extern void serialPutchar (int fd, unsigned char c) ;
  29. extern void serialPuts (int fd, char *s) ;
  30. extern void serialPrintf (int fd, char *message, ...) ;
  31. extern int serialDataAvail (int fd) ;
  32. extern int serialGetchar (int fd) ;
  33. #ifdef __cplusplus
  34. }
  35. #endif