Lines Matching full:lsm6dso

194 static void lsm6dso_config(const struct device *lsm6dso)  in lsm6dso_config()  argument
198 /* set LSM6DSO accel sampling frequency to 208 Hz */ in lsm6dso_config()
202 if (sensor_attr_set(lsm6dso, SENSOR_CHAN_ACCEL_XYZ, in lsm6dso_config()
204 printk("Cannot set sampling frequency for LSM6DSO accel\n"); in lsm6dso_config()
210 if (sensor_attr_set(lsm6dso, SENSOR_CHAN_ACCEL_XYZ, in lsm6dso_config()
212 printk("Cannot set fs for LSM6DSO accel\n"); in lsm6dso_config()
216 /* set LSM6DSO gyro sampling frequency to 208 Hz */ in lsm6dso_config()
220 if (sensor_attr_set(lsm6dso, SENSOR_CHAN_GYRO_XYZ, in lsm6dso_config()
222 printk("Cannot set sampling frequency for LSM6DSO gyro\n"); in lsm6dso_config()
228 if (sensor_attr_set(lsm6dso, SENSOR_CHAN_GYRO_XYZ, in lsm6dso_config()
230 printk("Cannot set fs for LSM6DSO gyro\n"); 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()
381 printf("LSM6DSO Sensor sample update error\n"); 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()
457 printf("LSM6DSO: Accel (m.s-2): x: %.3f, y: %.3f, z: %.3f\n", in main()
462 printf("LSM6DSO: GYro (dps): x: %.3f, y: %.3f, z: %.3f\n", in main()
469 printf("LSM6DSO: Temperature: %.1f C\n", in main()
502 printk("%d:: lsm6dso acc trig %d\n", cnt, lsm6dso_acc_trig_cnt); in main()
503 printk("%d:: lsm6dso gyr trig %d\n", cnt, lsm6dso_gyr_trig_cnt); in main()
504 printk("%d:: lsm6dso temp trig %d\n", cnt, in main()