From: Martin Ling Date: Sun, 27 Oct 2013 17:24:12 +0000 (+0000) Subject: Add enum values for flow control settings. X-Git-Tag: libserialport-0.1.0~157 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=ac74fdafca3200577b4d55b086a32a652282b267;p=libserialport.git Add enum values for flow control settings. --- diff --git a/serialport.h b/serialport.h index 4e79340..dafe99b 100644 --- a/serialport.h +++ b/serialport.h @@ -67,6 +67,16 @@ enum { SP_PARITY_ODD = 2 }; +/* Flow control settings. */ +enum { + /* No flow control. */ + SP_FLOW_NONE = 0, + /* Hardware (RTS/CTS) flow control. */ + SP_FLOW_HARDWARE = 1, + /* Software (XON/XOFF) flow control. */ + SP_FLOW_SOFTWARE = 2 +}; + char **sp_list_ports(void); void sp_free_port_list(char **ports); int sp_open(struct sp_port *port, char *portname, int flags);