Searched refs:iio_device0 (Results 1 – 2 of 2) sorted by relevance
/hardware/bsp/intel/peripheral/libmraa/examples/ |
D | iio_driver.c | 49 mraa_iio_context iio_device0; variable 55 mraa_iio_channel* channels = mraa_iio_get_channels(iio_device0); in interrupt() 58 for (i; i < mraa_iio_get_channel_count(iio_device0); i++) { in interrupt() 90 iio_device0 = mraa_iio_init(0); in main() 91 if (iio_device0 == NULL) { in main() 99 ret = mraa_iio_write_float(iio_device0, "in_accel_scale", 0.019163); in main() 104 ret = mraa_iio_read_float(iio_device0, "in_accel_scale", &iio_float); in main() 109 ret = mraa_iio_write_int(iio_device0, "scan_elements/in_accel_x_en", 1); in main() 114 ret = mraa_iio_read_int(iio_device0, "scan_elements/in_accel_x_en", &iio_int); in main() 119 if (mraa_iio_trigger_buffer(iio_device0, interrupt, NULL) == MRAA_SUCCESS) { in main()
|
/hardware/bsp/intel/peripheral/libmraa/examples/c++/ |
D | Iio-dummy.cpp | 116 mraa::Iio* iio_device0 = new mraa::Iio(0); in main() local 118 deviceName = iio_device0->getDeviceName(); in main() 119 delete iio_device0; in main()
|