iio: Allow mraa_iio_trigger_buffer to handle void* args
Previously, mraa_iio_trigger_buffer took a void* args but did not use this. Included implementation to allow user to pass a void* to this method and have the corresponding pointer returned in the interrupt handler. Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
@@ -229,7 +229,7 @@ struct _iio {
|
||||
char* name; /**< IIO device name */
|
||||
int fp; /**< IIO device in /dev */
|
||||
int fp_event; /**< event file descriptor for IIO device */
|
||||
void (* isr)(char* data); /**< the interrupt service request */
|
||||
void (* isr)(char* data, void* args); /**< the interrupt service request */
|
||||
void *isr_args; /**< args return when interrupt service request triggered */
|
||||
void (* isr_event)(struct iio_event_data* data, void* args); /**< the event interrupt service request */
|
||||
int chan_num;
|
||||
|
||||
Reference in New Issue
Block a user