From 62a1493bdfedf8cd4d70e8244ba7ec926f3c6668 Mon Sep 17 00:00:00 2001 From: Thomas Ingleby Date: Mon, 28 Jul 2014 14:15:11 +0100 Subject: [PATCH] aio: internal aio context to mraa_internal_types * Some comments for members of structure also added Signed-off-by: Thomas Ingleby Signed-off-by: Brendan Le Foll --- include/mraa_internal_types.h | 8 ++++++++ src/aio/aio.c | 5 ----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/include/mraa_internal_types.h b/include/mraa_internal_types.h index 39e3903..effd29c 100644 --- a/include/mraa_internal_types.h +++ b/include/mraa_internal_types.h @@ -69,3 +69,11 @@ struct _pwm { mraa_boolean_t owner; /**< Owner of pwm context*/ /*@}*/ }; + +/** + * A structure representing a Analog Input Channel + */ +struct _aio { + unsigned int channel; /**< the channel as on board and ADC module */ + int adc_in_fp; /**< File Pointer to raw sysfs */ +}; diff --git a/src/aio/aio.c b/src/aio/aio.c index 7a171d0..aab97b7 100644 --- a/src/aio/aio.c +++ b/src/aio/aio.c @@ -29,11 +29,6 @@ #include "aio.h" #include "mraa_internal.h" -struct _aio { - unsigned int channel; - int adc_in_fp; -}; - static int raw_bits; static int sup_bits;