Private
Public Access
2
0

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:
Noel Eck
2017-08-30 10:56:09 -07:00
parent 1217c5c034
commit 65e30bf7d3
4 changed files with 13 additions and 12 deletions

View File

@@ -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;