]> sigrok.org Git - libserialport.git/blobdiff - libserialport.h.in
Add functions for setting individual port parameters.
[libserialport.git] / libserialport.h.in
index e410dad69db4bc8407ae8eabdf7afc6072fdb5e0..f58530cb6567415221e73f585b3d6d4faed5ab3b 100644 (file)
@@ -143,6 +143,15 @@ int sp_flush(struct sp_port *port);
 int sp_write(struct sp_port *port, const void *buf, size_t count);
 int sp_read(struct sp_port *port, void *buf, size_t count);
 int sp_set_config(struct sp_port *port, struct sp_port_config *config);
+int sp_set_baudrate(struct sp_port *port, int baudrate);
+int sp_set_bits(struct sp_port *port, int bits);
+int sp_set_parity(struct sp_port *port, int parity);
+int sp_set_stopbits(struct sp_port *port, int stopbits);
+int sp_set_rts(struct sp_port *port, int rts);
+int sp_set_cts(struct sp_port *port, int cts);
+int sp_set_dtr(struct sp_port *port, int dtr);
+int sp_set_dsr(struct sp_port *port, int dsr);
+int sp_set_xon_xoff(struct sp_port *port, int xon_xoff);
 int sp_last_error_code(void);
 char *sp_last_error_message(void);
 void sp_free_error_message(char *message);