Searched refs:NUM_SENSORS (Results 1 – 3 of 3) sorted by relevance
/Zephyr-latest/doc/hardware/peripherals/sensor/ |
D | multiple_temp_polling.c | 22 #define NUM_SENSORS 2 macro 24 LISTIFY(NUM_SENSORS, TEMP_DEFINE_IODEV, (;)); 26 struct sensor_iodev *iodevs[NUM_SENSORS] = { LISTIFY(NUM_SENSORS, TEMP_IODEV_PTR, (,)) }; 28 RTIO_DEFINE_WITH_MEMPOOL(temp_ctx, NUM_SENSORS, NUM_SENSORS, NUM_SENSORS, 8, sizeof(void *)); 42 for (int i = 0; i < NUM_SENSORS; i++) { in main() 52 for (int i = 0; i < NUM_SENSORS; i++) { in main()
|
D | accel_stream.c | 22 #define NUM_SENSORS 2 macro 24 LISTIFY(NUM_SENSORS, ACCEL_DEFINE_IODEV, (;)); 26 struct sensor_iodev *iodevs[NUM_SENSORS] = { LISTIFY(NUM_SENSORS, ACCEL_IODEV_PTR, (,)) }; 28 RTIO_DEFINE_WITH_MEMPOOL(accel_ctx, NUM_SENSORS, NUM_SENSORS, NUM_SENSORS, 16, sizeof(void *)); 42 for (int i = 0; i < NUM_SENSORS; i++) { in main()
|
/Zephyr-latest/samples/sensor/accel_polling/src/ |
D | main.c | 20 #define NUM_SENSORS 1 macro 40 LISTIFY(NUM_SENSORS, ACCEL_DEFINE_IODEV, (;)); 42 struct rtio_iodev *iodevs[NUM_SENSORS] = { LISTIFY(NUM_SENSORS, ACCEL_IODEV_PTR, (,)) }; 44 RTIO_DEFINE_WITH_MEMPOOL(accel_ctx, NUM_SENSORS, NUM_SENSORS, NUM_SENSORS*20, 256, sizeof(void *)); 54 struct rtio_sqe *handles[NUM_SENSORS]; in print_accels_stream() 57 for (int i = 0; i < NUM_SENSORS; i++) { in print_accels_stream()
|