Enumerations |
enum | com_dev_t { COMM_DEV_DEFAULT
} |
enum | {
COMM_BAUD_110,
COMM_BAUD_300,
COMM_BAUD_600,
COMM_BAUD_1200,
COMM_BAUD_2400,
COMM_BAUD_4800,
COMM_BAUD_7200,
COMM_BAUD_9600,
COMM_BAUD_14400,
COMM_BAUD_19200,
COMM_BAUD_38400,
COMM_BAUD_57600,
COMM_BAUD_115200
} |
enum | {
COMM_DATABITS_5,
COMM_DATABITS_6,
COMM_DATABITS_7,
COMM_DATABITS_8
} |
enum | {
COMM_STOPBITS_10,
COMM_STOPBITS_15,
COMM_STOPBITS_20
} |
enum | {
COMM_PARITY_NONE,
COMM_PARITY_ODD,
COMM_PARITY_EVEN,
COMM_PARITY_MARK,
COMM_PARITY_SPACE
} |
enum | {
COMM_FC_NONE = 0x00,
COMM_FC_XONXOFF_INPUT = 0x01,
COMM_FC_XONXOFF_OUTPUT = 0x02,
COMM_FC_RTSCTS_INPUT = 0x04,
COMM_FC_RTSCTS_OUTPUT = 0x08,
COMM_FC_DSRDTR_INPUT = 0x10,
COMM_FC_DSRDTR_OUTPUT = 0x20
} |
enum | WaitResult {
COMM_WAIT_TIMEOUT,
COMM_WAIT_DATAREADY,
COMM_WAIT_ERROR
} |
enum | {
COMM_ERROR_GENERAL = 0x01,
COMM_ERROR_OVERRUN = 0x02,
COMM_ERROR_PARITY = 0x04,
COMM_ERROR_FRAMING = 0x08,
COMM_ERROR_TIMEOUT = 0x10,
COMM_STATE_CHANGED = 0x80
} |
Functions |
com_t | com_open (com_dev_t device, long timeout) |
bool | com_close (com_t port) |
int | com_read (com_t port, long timeout) |
bool | com_write (com_t port, int value, long timeout) |
int | com_wait_for_data (com_t port, long timeout) |
bool | com_set_config (com_t port, struct COMMConfig *config) |
bool | com_get_config (com_t port, struct COMMConfig *config) |
int | com_get_state (com_t port) |
bool | com_flush (com_t port) |
bool | com_set_DTR (com_t port, bool state) |
bool | com_set_RTS (com_t port, bool state) |
bool | com_get_DTR (com_t port) |
bool | com_get_RTS (com_t port) |
|