Lines Matching full:lps22hh
117 static void lps22hh_config(const struct device *lps22hh) in lps22hh_config() argument
121 /* set LPS22HH sampling frequency to 100 Hz */ in lps22hh_config()
125 if (sensor_attr_set(lps22hh, SENSOR_CHAN_ALL, in lps22hh_config()
127 printk("Cannot set sampling frequency for LPS22HH\n"); in lps22hh_config()
136 sensor_trigger_set(lps22hh, &trig, lps22hh_trigger_handler); in lps22hh_config()
297 const struct device *const lps22hh = DEVICE_DT_GET_ONE(st_lps22hh); in main() local
312 if (!device_is_ready(lps22hh)) { in main()
313 printk("%s: device not ready.\n", lps22hh->name); in main()
340 lps22hh_config(lps22hh); in main()
356 if (sensor_sample_fetch(lps22hh) < 0) { in main()
357 printf("LPS22HH Sensor sample update error\n"); in main()
398 sensor_channel_get(lps22hh, SENSOR_CHAN_AMBIENT_TEMP, &temp2); in main()
399 sensor_channel_get(lps22hh, SENSOR_CHAN_PRESS, &press); in main()
432 printf("LPS22HH: Temperature: %.1f C\n", in main()
436 printf("LPS22HH: Pressure:%.3f kpa\n", in main()
490 printk("%d:: lps22hh trig %d\n", cnt, lps22hh_trig_cnt); in main()