1
0
mirror of git://sigrok.org/libserialport synced 2023-08-10 21:13:24 +03:00

Add enum values for flow control settings.

This commit is contained in:
Martin Ling 2013-10-27 17:24:12 +00:00 committed by Uwe Hermann
parent 0a16d4def9
commit ac74fdafca

View File

@ -67,6 +67,16 @@ enum {
SP_PARITY_ODD = 2 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); char **sp_list_ports(void);
void sp_free_port_list(char **ports); void sp_free_port_list(char **ports);
int sp_open(struct sp_port *port, char *portname, int flags); int sp_open(struct sp_port *port, char *portname, int flags);