Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 

42 rindas
1.4 KiB

  1. /*
  2. * serial.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 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 General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with wiringPi. If not, see <http://www.gnu.org/licenses/>.
  20. ***********************************************************************
  21. */
  22. #ifndef _STDINT_H
  23. # include <stdint.h>
  24. #endif
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif
  28. extern int serialOpen (char *device, int baud) ;
  29. extern void serialClose (int fd) ;
  30. extern void serialPutchar (int fd, uint8_t c) ;
  31. extern void serialPuts (int fd, char *s) ;
  32. extern void serialPrintf (int fd, char *message, ...) ;
  33. extern int serialDataAvail (int fd) ;
  34. extern int serialGetchar (int fd) ;
  35. #ifdef __cplusplus
  36. }
  37. #endif