Private
Public Access
2
0

iio: initial API and enumeration of devices

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2015-09-28 16:26:53 +01:00
parent 0f312545e0
commit d920d136ea
4 changed files with 95 additions and 12 deletions

View File

@@ -134,6 +134,7 @@ struct _uart {
*/
struct _iio {
int num; /**< IIO device number */
char* name; /**< IIO device name */
};
/**
@@ -276,6 +277,8 @@ typedef struct _board_t {
mraa_pininfo_t* pins; /**< Pointer to pin array */
mraa_adv_func_t* adv_func; /**< Pointer to advanced function disptach table */
struct _board_t* sub_platform; /**< Pointer to sub platform */
struct _iio* iio_devices; /**< Pointer to IIO devices */
uint8_t iio_device_count; /**< IIO device count */
/*@}*/
} mraa_board_t;