iio: C API changes and C++ API enhancements
- C API read/write integer functions changed to int to match C types - C API now has close function to release resources acquired during init - iio internal type isr_event() function now has args param in signature - C++ API now supports events with handler interface and new data structure - C and C++ examples updated to use API changes Signed-off-by: Henry Bruce <henry.bruce@intel.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
committed by
Brendan Le Foll
parent
5f01de1bf1
commit
8e4a809f12
@@ -139,7 +139,7 @@ struct _iio {
|
||||
int fp_event; /**< event file descriptor for IIO device */
|
||||
void (* isr)(char* data); /**< the interupt service request */
|
||||
void *isr_args; /**< args return when interupt service request triggered */
|
||||
void (* isr_event)(struct iio_event_data* data); /**< the event interupt service request */
|
||||
void (* isr_event)(struct iio_event_data* data, void* args); /**< the event interupt service request */
|
||||
int chan_num;
|
||||
pthread_t thread_id; /**< the isr handler thread id */
|
||||
mraa_iio_channel* channels;
|
||||
|
||||
Reference in New Issue
Block a user