drivers/sensor: lis2dw12: add fds + hp_ref support

Add FDS (Filtered Data Type Selection) + High-Pass reference mode support
(FDS in CTRL6, HP_REF_MODE in CTRL7)
Values are configurable through DT per instance.

Signed-off-by: Maxime Vincent <maxime@veemax.be>
This commit is contained in:
Maxime Vincent 2022-03-18 19:19:10 +01:00 committed by Anas Nashif
commit 652ab7f2d4
3 changed files with 45 additions and 0 deletions

View file

@ -70,6 +70,8 @@ struct lis2dw12_device_config {
uint8_t range;
uint8_t bw_filt;
bool low_noise;
bool hp_filter_path;
bool hp_ref_mode;
#ifdef CONFIG_LIS2DW12_TRIGGER
struct gpio_dt_spec gpio_int;
uint8_t int_pin;