Lines Matching refs:lsm6dso
194 static void lsm6dso_config(const struct device *lsm6dso) in lsm6dso_config() argument
202 if (sensor_attr_set(lsm6dso, SENSOR_CHAN_ACCEL_XYZ, in lsm6dso_config()
210 if (sensor_attr_set(lsm6dso, SENSOR_CHAN_ACCEL_XYZ, in lsm6dso_config()
220 if (sensor_attr_set(lsm6dso, SENSOR_CHAN_GYRO_XYZ, in lsm6dso_config()
228 if (sensor_attr_set(lsm6dso, SENSOR_CHAN_GYRO_XYZ, in lsm6dso_config()
239 sensor_trigger_set(lsm6dso, &trig, lsm6dso_acc_trig_handler); in lsm6dso_config()
243 sensor_trigger_set(lsm6dso, &trig, lsm6dso_gyr_trig_handler); in lsm6dso_config()
247 sensor_trigger_set(lsm6dso, &trig, lsm6dso_temp_trig_handler); in lsm6dso_config()
301 const struct device *const lsm6dso = DEVICE_DT_GET_ONE(st_lsm6dso); in main() local
328 if (!device_is_ready(lsm6dso)) { in main()
329 printk("%s: device not ready.\n", lsm6dso->name); in main()
343 lsm6dso_config(lsm6dso); in main()
380 if (sensor_sample_fetch(lsm6dso) < 0) { in main()
404 sensor_channel_get(lsm6dso, SENSOR_CHAN_ACCEL_XYZ, accel1); in main()
405 sensor_channel_get(lsm6dso, SENSOR_CHAN_GYRO_XYZ, gyro); in main()
407 sensor_channel_get(lsm6dso, SENSOR_CHAN_DIE_TEMP, &die_temp); in main()