From: David Schleef Date: Wed, 4 Jun 2003 04:15:02 +0000 (+0000) Subject: Change return value of comedi_data_{read|write}() X-Git-Tag: r0_7_21~103 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7e0247279729343d1a72a100323148b025f8959e;p=comedilib.git Change return value of comedi_data_{read|write}() --- diff --git a/doc/funcref b/doc/funcref index 8dbb2c9..6b440c5 100644 --- a/doc/funcref +++ b/doc/funcref @@ -480,8 +480,8 @@ Description: input channel at an earlier time with comedi_data_read_hint(). - On sucess, comedi_data_read() returns 0. If there is an - error, -1 is returned. + On sucess, comedi_data_read() returns 1 (the number of samples + read). If there is an error, -1 is returned. Data values returned by this function are unsigned integers less than or equal to the maximum sample value of the channel, @@ -554,8 +554,8 @@ Description: The function comedi_data_write() writes the data value specified by the parameter data to the specified channel. - On sucess, comedi_data_write() returns 0. If there is an error, -1 is - returned. + On sucess, comedi_data_write() returns 1 (the number of samples + written). If there is an error, -1 is returned. Function: comedi_dio_config -- change input/output properties of channel Retval: int