sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
wiringSerial.h
Go to the documentation of this file.
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 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 extern int serialOpen (const char *device, const int baud) ;
28 extern void serialClose (const int fd) ;
29 extern void serialFlush (const int fd) ;
30 extern void serialPutchar (const int fd, const unsigned char c) ;
31 extern void serialPuts (const int fd, const char *s) ;
32 extern void serialPrintf (const int fd, const char *message, ...) ;
33 extern int serialDataAvail (const int fd) ;
34 extern int serialGetchar (const int fd) ;
35 
36 #ifdef __cplusplus
37 }
38 #endif
int serialOpen(const char *device, const int baud)
Definition: wiringSerial.c:44
int serialGetchar(const int fd)
Definition: wiringSerial.c:217
tuple s
Definition: ser-mon-AS7265X.py:36
int fd
Definition: wiringPi.h:147
void serialClose(const int fd)
Definition: wiringSerial.c:144
void serialPuts(const int fd, const char *s)
Definition: wiringSerial.c:168
int serialDataAvail(const int fd)
Definition: wiringSerial.c:198
void serialFlush(const int fd)
Definition: wiringSerial.c:132
void serialPutchar(const int fd, const unsigned char c)
Definition: wiringSerial.c:156
void serialPrintf(const int fd, const char *message,...)
Definition: wiringSerial.c:179