Lines Matching refs:lis2de12
251 static void lis2de12_config(const struct device *lis2de12) in lis2de12_config() argument
259 if (sensor_attr_set(lis2de12, SENSOR_CHAN_ACCEL_XYZ, in lis2de12_config()
267 if (sensor_attr_set(lis2de12, SENSOR_CHAN_ACCEL_XYZ, in lis2de12_config()
278 sensor_trigger_set(lis2de12, &trig, lis2de12_trigger_handler); in lis2de12_config()
304 const struct device *const lis2de12 = DEVICE_DT_GET_ANY(st_lis2de12); in main() local
332 if (device_is_ready(lis2de12)) { in main()
335 printf("Device %s is not ready\n", lis2de12->name); in main()
345 lis2de12_config(lis2de12); in main()
387 if (sensor_sample_fetch(lis2de12) < 0) { in main()
410 sensor_channel_get(lis2de12, SENSOR_CHAN_ACCEL_XYZ, lis2de12_xl); in main()
412 sensor_channel_get(lis2de12, SENSOR_CHAN_DIE_TEMP, &lis2de12_die_temp); in main()