drivers/sensor: lis2dw12: add low_noise support

Add low_noise support. (LOW_NOISE in CTRL6)
Value is configurable through DT per instance.

Signed-off-by: Maxime Vincent <maxime@veemax.be>
This commit is contained in:
Maxime Vincent 2022-03-18 18:56:55 +01:00 committed by Anas Nashif
commit 2d2a708bc8
3 changed files with 40 additions and 4 deletions

View file

@ -69,6 +69,7 @@ struct lis2dw12_device_config {
lis2dw12_mode_t pm;
uint8_t range;
uint8_t bw_filt;
bool low_noise;
#ifdef CONFIG_LIS2DW12_TRIGGER
struct gpio_dt_spec gpio_int;
uint8_t int_pin;