Commit 10b40ffb authored by Angel Iglesias's avatar Angel Iglesias Committed by Jonathan Cameron

iio: pressure: bmp280: Add more tunable config parameters for BMP380

Allows sampling frequency and IIR filter coefficients configuration
using sysfs ABI.

The IIR filter coefficient is configurable using the sysfs attribute
"filter_low_pass_3db_frequency".
Signed-off-by: default avatarAngel Iglesias <ang.iglesiasg@gmail.com>
Link: https://lore.kernel.org/r/876f8a2277f71672488e99aa02aae4239d530f51.1663025017.git.ang.iglesiasg@gmail.comSigned-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 2a332dcd
This diff is collapsed.
......@@ -54,24 +54,6 @@
#define BMP380_OSRS_PRESS_MASK GENMASK(2, 0)
#define BMP380_ODRS_MASK GENMASK(4, 0)
#define BMP380_ODRS_200HZ 0x00
#define BMP380_ODRS_100HZ 0x01
#define BMP380_ODRS_50HZ 0x02
#define BMP380_ODRS_25HZ 0x03
#define BMP380_ODRS_12_5HZ 0x04
#define BMP380_ODRS_6_25HZ 0x05
#define BMP380_ODRS_3_1HZ 0x06
#define BMP380_ODRS_1_5HZ 0x07
#define BMP380_ODRS_0_78HZ 0x08
#define BMP380_ODRS_0_39HZ 0x09
#define BMP380_ODRS_0_2HZ 0x0A
#define BMP380_ODRS_0_1HZ 0x0B
#define BMP380_ODRS_0_05HZ 0x0C
#define BMP380_ODRS_0_02HZ 0x0D
#define BMP380_ODRS_0_01HZ 0x0E
#define BMP380_ODRS_0_006HZ 0x0F
#define BMP380_ODRS_0_003HZ 0x10
#define BMP380_ODRS_0_0015HZ 0x11
#define BMP380_CTRL_SENSORS_MASK GENMASK(1, 0)
#define BMP380_CTRL_SENSORS_PRESS_EN BIT(0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment