summaryrefslogtreecommitdiff
path: root/pigpiod_if.3
diff options
context:
space:
mode:
authorjoan <joan@abyz.co.uk>2016-10-30 15:30:20 +0000
committerjoan <joan@abyz.co.uk>2016-10-30 15:30:20 +0000
commitc31a2fa6b2571b273bade21f98af56a435f7a2ce (patch)
tree25bcd18edbe1e4025e858d6396d460742a01d8fc /pigpiod_if.3
parentabe5f129420b87bd918aec34b28a33d982bd75a2 (diff)
V57
Diffstat (limited to 'pigpiod_if.3')
-rw-r--r--pigpiod_if.310
1 files changed, 10 insertions, 0 deletions
diff --git a/pigpiod_if.3 b/pigpiod_if.3
index 284a3ae..2fe7ed2 100644
--- a/pigpiod_if.3
+++ b/pigpiod_if.3
@@ -3612,6 +3612,11 @@ handle: >=0, as returned by a call to \fBserial_open\fP.
Returns the read byte (>=0) if OK, otherwise PI_BAD_HANDLE,
PI_SER_READ_NO_DATA, or PI_SER_READ_FAILED.
+.br
+
+.br
+If no data is ready PI_SER_READ_NO_DATA is returned.
+
.IP "\fBint serial_write(unsigned handle, char *buf, unsigned count)\fP"
.IP "" 4
This function writes count bytes from buf to the the serial port
@@ -3662,6 +3667,11 @@ handle: >=0, as returned by a call to \fBserial_open\fP.
Returns the number of bytes read (>0) if OK, otherwise PI_BAD_HANDLE,
PI_BAD_PARAM, PI_SER_READ_NO_DATA, or PI_SER_WRITE_FAILED.
+.br
+
+.br
+If no data is ready zero is returned.
+
.IP "\fBint serial_data_available(unsigned handle)\fP"
.IP "" 4
Returns the number of bytes available to be read from the