iio: initial pass at getting channel information from scan_elements
[contrib/mraa.git] / include / mraa_internal_types.h
index 06bc7d8..844509f 100644 (file)
@@ -29,6 +29,7 @@
 #include "mraa.h"
 #include "mraa_func.h"
 #include "mraa_adv_func.h"
+#include "iio.h"
 
 // Bionic does not implement pthread cancellation API
 #ifndef __BIONIC__
@@ -135,8 +136,13 @@ struct _uart {
 struct _iio {
     int num; /**< IIO device number */
     char* name; /**< IIO device name */
-    int channum;
-    int attrnum;
+    int fp; /**< IIO device in /dev */
+    void (* isr)(char* data); /**< the interupt service request */
+    void *isr_args; /**< args return when interupt service request triggered */
+    int chan_num;
+    pthread_t thread_id; /**< the isr handler thread id */
+    mraa_iio_channel* channels;
+    int datasize;
 };
 
 /**