Searched refs:accel_dev (Results 1 – 2 of 2) sorted by relevance
/Zephyr-latest/samples/boards/96boards/argonkey/sensors/src/ |
D | main.c | 176 const struct device *const accel_dev = DEVICE_DT_GET_ONE(st_lsm6dsl); in main() local 178 if (!device_is_ready(accel_dev)) { in main() 179 printk("%s: device not ready.\n", accel_dev->name); in main() 190 if (sensor_attr_set(accel_dev, SENSOR_CHAN_ACCEL_XYZ, in main() 203 if (sensor_attr_set(accel_dev, SENSOR_CHAN_ACCEL_XYZ, in main() 217 if (sensor_attr_set(accel_dev, SENSOR_CHAN_GYRO_XYZ, in main() 230 if (sensor_attr_set(accel_dev, SENSOR_CHAN_GYRO_XYZ, in main() 253 if (sensor_trigger_set(accel_dev, &trig, in main() 309 sensor_sample_fetch_chan(accel_dev, SENSOR_CHAN_ACCEL_XYZ); in main() 310 sensor_channel_get(accel_dev, SENSOR_CHAN_ACCEL_X, &accel_x); in main() [all …]
|
/Zephyr-latest/doc/hardware/peripherals/sensor/ |
D | attributes.rst | 23 const struct device *accel_dev = DEVICE_DT_GET(DT_ALIAS(accel0)); 27 …rc = sensor_attr_get(accel_dev, SENSOR_CHAN_ACCEL_XYZ, SENSOR_ATTR_SAMPLING_FREQUENCY, &accel_samp… 32 …printk("Sample rate for accel %p is %d.06%d\n", accel_dev, accel_sample_rate.val1, accel_sample_ra… 36 …rc = sensor_attr_set(accel_dev, SENSOR_CHAN_ACCEL_XYZ, SENSOR_ATTR_SAMPLING_FREQUENCY, accel_sampl…
|