SysIo  1.9.0
Embedded Library and tools
chipio/include/chipio/serial.h
1 
8 #ifndef _CHIPIO_SERIAL_H_
9 #define _CHIPIO_SERIAL_H_
10 
11 #include <stdio.h>
12 #include <sysio/serial.h>
13 #include <sysio/dinput.h>
14 #include <chipio/chipio.h>
15 
16 #ifdef __cplusplus
17  extern "C" {
18 #endif
19 /* ========================================================================== */
20 
32 /* structures =============================================================== */
33 
40 
41 /* internal public functions ================================================ */
42 
50 xChipIoSerial * xChipIoSerialNew (xChipIo * xChip, xDin * xIrqPin);
51 
57 void vChipIoSerialDelete (xChipIoSerial * xPort);
58 
68 char * sChipIoSerialPortName (xChipIoSerial * xPort);
69 
77 int iChipIoSerialSetAttr (xChipIoSerial * xPort, const xSerialIos * xIos);
78 
86 int iChipIoSerialGetAttr (xChipIoSerial * xPort, xSerialIos * xIos);
87 
95 
101 /* ========================================================================== */
102 #ifdef __cplusplus
103  }
104 #endif
105 #endif /* _CHIPIO_SERIAL_H_ */
void vChipIoSerialDelete(xChipIoSerial *xPort)
struct xChipIoSerial xChipIoSerial
int iChipIoSerialGetAttr(xChipIoSerial *xPort, xSerialIos *xIos)
xChipIoSerial * xChipIoSerialNew(xChipIo *xChip, xDin *xIrqPin)
struct xChipIo xChipIo
Definition: chipio.h:43
char * sChipIoSerialPortName(xChipIoSerial *xPort)
int iChipIoSerialSetAttr(xChipIoSerial *xPort, const xSerialIos *xIos)
int iChipIoSerialFlush(xChipIoSerial *port)