18 #ifndef _AVRIO_SERIAL_IOS_H_ 19 #define _AVRIO_SERIAL_IOS_H_ 21 #include <avrio/defs.h> 52 SERIAL_DATABIT_UNKNOWN = -1
60 SERIAL_PARITY_NONE =
'N',
61 SERIAL_PARITY_EVEN =
'E',
62 SERIAL_PARITY_ODD =
'O',
63 SERIAL_PARITY_SPACE =
'S',
64 SERIAL_PARITY_MARK =
'M',
65 SERIAL_PARITY_UNKNOWN = -1
73 SERIAL_STOPBIT_ONE = 1,
74 SERIAL_STOPBIT_TWO = 2,
75 SERIAL_STOPBIT_ONEHALF = 3,
76 SERIAL_STOPBIT_UNKNOWN
85 SERIAL_FLOW_NONE =
' ',
86 SERIAL_FLOW_RTSCTS =
'H',
87 SERIAL_FLOW_XONXOFF =
'S',
88 SERIAL_FLOW_UNKNOWN = -1
92 #define SERIAL_BINARY 0 93 #define SERIAL_CR 0x0D 94 #define SERIAL_LF 0x0A 95 #define SERIAL_CRLF (SERIAL_CR + SERIAL_LF) 110 #define SERIAL_SETTINGS(b) { \ 111 .baud = b, .dbits = SERIAL_DATABIT_8, .parity = SERIAL_PARITY_NONE, \ 112 .sbits = SERIAL_STOPBIT_ONE, .flow = SERIAL_FLOW_NONE, .eol = SERIAL_CRLF }
struct xSerialIos xSerialIos
eSerialFlow
Type de contrôle de flux.
eSerialDataBits
Nombre de bits de données.
eSerialStopBits
Nombre de bits de stop.