summaryrefslogtreecommitdiff
path: root/peripheral/libmraa/api/mraa/aio.h
diff options
context:
space:
mode:
Diffstat (limited to 'peripheral/libmraa/api/mraa/aio.h')
-rw-r--r--peripheral/libmraa/api/mraa/aio.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/peripheral/libmraa/api/mraa/aio.h b/peripheral/libmraa/api/mraa/aio.h
index 23c0857..753c907 100644
--- a/peripheral/libmraa/api/mraa/aio.h
+++ b/peripheral/libmraa/api/mraa/aio.h
@@ -59,20 +59,19 @@ typedef struct _aio* mraa_aio_context;
mraa_aio_context mraa_aio_init(unsigned int pin);
/**
- * Read the input voltage. By default mraa will shift the raw value up or down
- * to a 10 bit value.
+ * Read the input voltage. By default mraa will shift
+ * the raw value up or down to a 10 bit value.
*
* @param dev The AIO context
- * @returns The current input voltage or -1 for error
+ * @returns The current input voltage.
*/
-int mraa_aio_read(mraa_aio_context dev);
+unsigned int mraa_aio_read(mraa_aio_context dev);
/**
* Read the input voltage and return it as a normalized float (0.0f-1.0f).
*
* @param dev The AIO context
- * @returns The current input voltage as a normalized float (0.0f-1.0f), error
- * will be signaled by -1.0f
+ * @returns The current input voltage as a normalized float (0.0f-1.0f)
*/
float mraa_aio_read_float(mraa_aio_context dev);