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:
parent
0a16d4def9
commit
ac74fdafca
10
serialport.h
10
serialport.h
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user