Lines Matching full:lsm6dsl
32 const struct device *const lsm6dsl = DEVICE_DT_GET_ONE(st_lsm6dsl); in main() local
47 if (!device_is_ready(lsm6dsl)) { in main()
48 printk("%s: device not ready.\n", lsm6dsl->name); in main()
60 /* set LSM6DSL accel/gyro sampling frequency to 104 Hz */ in main()
66 if (sensor_attr_set(lsm6dsl, SENSOR_CHAN_ACCEL_XYZ, in main()
72 if (sensor_attr_set(lsm6dsl, SENSOR_CHAN_GYRO_XYZ, in main()
83 sensor_trigger_set(lsm6dsl, &trig, lsm6dsl_trigger_handler); in main()
100 if (sensor_sample_fetch(lsm6dsl) < 0) { in main()
101 printf("LSM6DSL Sensor sample update error\n"); in main()
121 sensor_channel_get(lsm6dsl, SENSOR_CHAN_ACCEL_XYZ, accel1); in main()
122 sensor_channel_get(lsm6dsl, SENSOR_CHAN_GYRO_XYZ, gyro); in main()
149 /* lsm6dsl accel */ in main()
150 printf("LSM6DSL: Accel (m.s-2): x: %.1f, y: %.1f, z: %.1f\n", in main()
155 /* lsm6dsl gyro */ in main()
156 printf("LSM6DSL: Gyro (dps): x: %.3f, y: %.3f, z: %.3f\n", in main()
162 printf("%d:: lsm6dsl trig %d\n", cnt++, lsm6dsl_trig_cnt); in main()