docs/serial: reword description for getters

This commit is contained in:
Vanya A. Sergeev
2020-01-07 00:34:48 -06:00
parent 7185281ee7
commit ca2cd97f4b
+3 -3
View File
@@ -127,7 +127,7 @@ Returns 0 on success, or a negative [Serial error code](#return-value) on failur
``` c
int serial_input_waiting(serial_t *serial, unsigned int *count);
```
Query the number of bytes waiting to be read from the serial port.
Get the number of bytes waiting to be read from the serial port.
`serial` should be a valid pointer to a Serial handle opened with `serial_open()` or `serial_open_advanced()`.
@@ -138,7 +138,7 @@ Returns 0 on success, or a negative [Serial error code](#return-value) on failur
``` c
int serial_output_waiting(serial_t *serial, unsigned int *count);
```
Query the number of bytes waiting to be written to the serial port.
Get the number of bytes waiting to be written to the serial port.
`serial` should be a valid pointer to a Serial handle opened with `serial_open()` or `serial_open_advanced()`.
@@ -183,7 +183,7 @@ int serial_get_stopbits(serial_t *serial, unsigned int *stopbits);
int serial_get_xonxoff(serial_t *serial, bool *xonxoff);
int serial_get_rtscts(serial_t *serial, bool *rtscts);
```
Query the baudrate, data bits, parity, stop bits, software flow control (xonxoff), or hardware flow control (rtscts), respectively, of the underlying `tty` device.
Get the baudrate, data bits, parity, stop bits, software flow control (xonxoff), or hardware flow control (rtscts), respectively, of the underlying `tty` device.
`serial` should be a valid pointer to a Serial handle opened with `serial_open()` or `serial_open_advanced()`.