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;