Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

STMicroelectronics LPS22HH pressure and temperature sensor. More...

Files

file  lps22hh.h
 Devicetree binding constants for the ST LPS22HH pressure sensor.

Output data rate options

Values for the odr devicetree property.

#define LPS22HH_DT_ODR_POWER_DOWN   0
 Power-down.
#define LPS22HH_DT_ODR_1HZ   1
 1 Hz
#define LPS22HH_DT_ODR_10HZ   2
 10 Hz
#define LPS22HH_DT_ODR_25HZ   3
 25 Hz
#define LPS22HH_DT_ODR_50HZ   4
 50 Hz
#define LPS22HH_DT_ODR_75HZ   5
 75 Hz
#define LPS22HH_DT_ODR_100HZ   6
 100 Hz
#define LPS22HH_DT_ODR_200HZ   7
 200 Hz
#define LPS22HH_DT_ODR_1HZ_LOW_NOISE   0x11
 1 Hz, low-noise mode
#define LPS22HH_DT_ODR_10HZ_LOW_NOISE   0x12
 10 Hz, low-noise mode
#define LPS22HH_DT_ODR_25HZ_LOW_NOISE   0x13
 25 Hz, low-noise mode
#define LPS22HH_DT_ODR_50HZ_LOW_NOISE   0x14
 50 Hz, low-noise mode
#define LPS22HH_DT_ODR_75HZ_LOW_NOISE   0x15
 75 Hz, low-noise mode

Low-pass filter bandwidth options

Values for the lpfp-bandwidth devicetree property.

The two-bit lpfp_cfg field in CTRL_REG1 packs the enable bit together with the bandwidth: 0 disables the filter (the ST HAL labels it ODR/2), 2 and 3 select ODR/9 and ODR/20 respectively.

#define LPS22HH_DT_LPF_DISABLED   0
 Low-pass filter off.
#define LPS22HH_DT_LPF_ODR_DIV_9   2
 Bandwidth = ODR/9.
#define LPS22HH_DT_LPF_ODR_DIV_20   3
 Bandwidth = ODR/20.

Detailed Description

STMicroelectronics LPS22HH pressure and temperature sensor.

Macro Definition Documentation

◆ LPS22HH_DT_LPF_DISABLED

#define LPS22HH_DT_LPF_DISABLED   0

#include <zephyr/dt-bindings/sensor/lps22hh.h>

Low-pass filter off.

◆ LPS22HH_DT_LPF_ODR_DIV_20

#define LPS22HH_DT_LPF_ODR_DIV_20   3

#include <zephyr/dt-bindings/sensor/lps22hh.h>

Bandwidth = ODR/20.

◆ LPS22HH_DT_LPF_ODR_DIV_9

#define LPS22HH_DT_LPF_ODR_DIV_9   2

#include <zephyr/dt-bindings/sensor/lps22hh.h>

Bandwidth = ODR/9.

◆ LPS22HH_DT_ODR_100HZ

#define LPS22HH_DT_ODR_100HZ   6

◆ LPS22HH_DT_ODR_10HZ

#define LPS22HH_DT_ODR_10HZ   2

◆ LPS22HH_DT_ODR_10HZ_LOW_NOISE

#define LPS22HH_DT_ODR_10HZ_LOW_NOISE   0x12

#include <zephyr/dt-bindings/sensor/lps22hh.h>

10 Hz, low-noise mode

◆ LPS22HH_DT_ODR_1HZ

#define LPS22HH_DT_ODR_1HZ   1

◆ LPS22HH_DT_ODR_1HZ_LOW_NOISE

#define LPS22HH_DT_ODR_1HZ_LOW_NOISE   0x11

#include <zephyr/dt-bindings/sensor/lps22hh.h>

1 Hz, low-noise mode

◆ LPS22HH_DT_ODR_200HZ

#define LPS22HH_DT_ODR_200HZ   7

◆ LPS22HH_DT_ODR_25HZ

#define LPS22HH_DT_ODR_25HZ   3

◆ LPS22HH_DT_ODR_25HZ_LOW_NOISE

#define LPS22HH_DT_ODR_25HZ_LOW_NOISE   0x13

#include <zephyr/dt-bindings/sensor/lps22hh.h>

25 Hz, low-noise mode

◆ LPS22HH_DT_ODR_50HZ

#define LPS22HH_DT_ODR_50HZ   4

◆ LPS22HH_DT_ODR_50HZ_LOW_NOISE

#define LPS22HH_DT_ODR_50HZ_LOW_NOISE   0x14

#include <zephyr/dt-bindings/sensor/lps22hh.h>

50 Hz, low-noise mode

◆ LPS22HH_DT_ODR_75HZ

#define LPS22HH_DT_ODR_75HZ   5

◆ LPS22HH_DT_ODR_75HZ_LOW_NOISE

#define LPS22HH_DT_ODR_75HZ_LOW_NOISE   0x15

#include <zephyr/dt-bindings/sensor/lps22hh.h>

75 Hz, low-noise mode

◆ LPS22HH_DT_ODR_POWER_DOWN

#define LPS22HH_DT_ODR_POWER_DOWN   0

#include <zephyr/dt-bindings/sensor/lps22hh.h>

Power-down.