blob: 78f9687c263049dad789f5910007b379bab06966 [file]
# Copyright (c) 2023-2024 STMicroelectronics
# Copyright (c) 2023 PHYTEC Messtechnik GmbH
# SPDX-License-Identifier: Apache-2.0
description: |
When setting the odr, lpf, avg properties in a .dts or .dtsi file
you may include ilps22qs.h and use the macros defined there.
Example:
#include <zephyr/dt-bindings/sensor/ilps22qs.h>
ilps22qs@5d {
...
odr = <LPS2xDF_DT_ODR_10HZ>;
lpf = <LPS2xDF_DT_LP_FILTER_ODR_4>;
avg = <LPS2xDF_DT_AVG_128_SAMPLES>;
};
include: sensor-device.yaml
properties:
odr:
type: int
default: 0
description: |
Specify the output data rate expressed in samples per second (Hz).
The default is the power-on reset value.
- 0 # LPS2xDF_DT_ODR_POWER_DOWN
- 1 # LPS2xDF_DT_ODR_1HZ
- 2 # LPS2xDF_DT_ODR_4HZ
- 3 # LPS2xDF_DT_ODR_10HZ
- 4 # LPS2xDF_DT_ODR_25HZ
- 5 # LPS2xDF_DT_ODR_50HZ
- 6 # LPS2xDF_DT_ODR_75HZ
- 7 # LPS2xDF_DT_ODR_100HZ
- 8 # LPS2xDF_DT_ODR_200HZ
enum: [0, 1, 2, 3, 4, 5, 6, 7, 8]
lpf:
type: int
default: 0
description: |
Specify the low pass filter value to be applied to pressure data.
The default is the power-on reset value.
- 0 # LPS2xDF_DT_LP_FILTER_OFF
- 1 # LPS2xDF_DT_LP_FILTER_ODR_4
- 3 # LPS2xDF_DT_LP_FILTER_ODR_9
enum: [0, 1, 3]
avg:
type: int
default: 0
description: |
Specify the average filter value (i.e. number of samples) to be applied
to pressure and temperature data.
The default is the power-on reset value.
- 0 # LPS2xDF_DT_AVG_4_SAMPLES
- 1 # LPS2xDF_DT_AVG_8_SAMPLES
- 2 # LPS2xDF_DT_AVG_16_SAMPLES
- 3 # LPS2xDF_DT_AVG_32_SAMPLES
- 4 # LPS2xDF_DT_AVG_64_SAMPLES
- 5 # LPS2xDF_DT_AVG_128_SAMPLES
- 6 # LPS2xDF_DT_AVG_256_SAMPLES
- 7 # LPS2xDF_DT_AVG_512_SAMPLES
enum: [0, 1, 2, 3, 4, 5, 6, 7]
fs:
type: int
default: 0
description: |
Specify the full-scale mode.
The default is the power-on reset value.
- 0 # ILPS22QS_DT_FS_MODE_1_1260
- 1 # ILPS22QS_DT_FS_MODE_2_4060
enum: [0, 1]