An iio context represents an IIO device
if (iio == NULL) {
fprintf(stderr, "Failed to initialize IIO device\n");
return EXIT_FAILURE;
}
fprintf(stderr, "Failed to write scale to IIO device\n");
goto err_exit;
}
fprintf(stderr, "Failed to read scale from IIO device\n");
goto err_exit;
}
fprintf(stdout, "IIO scale: %f\n", iio_float);
fprintf(stderr, "Failed to enable axis of the IIO device\n");
goto err_exit;
}
fprintf(stderr, "Failed to read enable status from IIO device\n");
goto err_exit;
}
fprintf(stdout, "IIO enable status: %d\n", iio_int);
fprintf(stderr, "Failed to set IIO buffer trigger\n");
goto err_exit;
}
fprintf(stdout, "Waiting for the trigger...\n");
sleep(100);
|
mraa_iio_context | mraa_iio_init (int device) |
|
mraa_result_t | mraa_iio_trigger_buffer (mraa_iio_context dev, void(*fptr)(char *, void *), void *args) |
|
const char * | mraa_iio_get_device_name (mraa_iio_context dev) |
|
int | mraa_iio_get_device_num_by_name (const char *name) |
|
int | mraa_iio_read_size (mraa_iio_context dev) |
|
mraa_iio_channel * | mraa_iio_get_channels (mraa_iio_context dev) |
|
int | mraa_iio_get_channel_count (mraa_iio_context dev) |
|
mraa_result_t | mraa_iio_read_float (mraa_iio_context dev, const char *filename, float *data) |
|
mraa_result_t | mraa_iio_read_int (mraa_iio_context dev, const char *filename, int *data) |
|
mraa_result_t | mraa_iio_read_string (mraa_iio_context dev, const char *filename, char *data, int max_len) |
|
mraa_result_t | mraa_iio_write_float (mraa_iio_context dev, const char *attr_chan, const float data) |
|
mraa_result_t | mraa_iio_write_int (mraa_iio_context dev, const char *attr_chan, const int data) |
|
mraa_result_t | mraa_iio_write_string (mraa_iio_context dev, const char *attr_chan, const char *data) |
|
mraa_result_t | mraa_iio_get_channel_data (mraa_iio_context dev) |
|
mraa_result_t | mraa_iio_get_event_data (mraa_iio_context dev) |
|
mraa_result_t | mraa_iio_event_poll (mraa_iio_context dev, struct iio_event_data *data) |
|
mraa_result_t | mraa_iio_event_setup_callback (mraa_iio_context dev, void(*fptr)(struct iio_event_data *data, void *args), void *args) |
|
mraa_result_t | mraa_iio_event_extract_event (struct iio_event_data *event, int *chan_type, int *modifier, int *type, int *direction, int *channel, int *channel2, int *different) |
|
mraa_result_t | mraa_iio_get_mount_matrix (mraa_iio_context dev, const char *sysfs_name, float mm[9]) |
|
mraa_result_t | mraa_iio_create_trigger (mraa_iio_context dev, const char *trigger) |
|
mraa_result_t | mraa_iio_update_channels (mraa_iio_context dev) |
|
mraa_result_t | mraa_iio_close (mraa_iio_context dev) |
|