Home
last modified time | relevance | path

Searched refs:_odr (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/drivers/sensor/st/iis2dh/
Diis2dh.h26 #define IIS2DH_ODR_TO_REG_HR(_lp, _odr) \ argument
27 ((_odr == 0) ? IIS2DH_POWER_DOWN : \
28 ((_odr < 10) ? IIS2DH_ODR_1Hz : \
29 ((_odr < 25) ? IIS2DH_ODR_10Hz : \
30 ((_lp == IIS2DH_LP_8bit) && (_odr >= 5376) ? IIS2DH_ODR_5kHz376_LP_1kHz344_NM_HP : \
31 ((_lp != IIS2DH_LP_8bit) && (_odr >= 1344) ? IIS2DH_ODR_5kHz376_LP_1kHz344_NM_HP : \
32 ((_lp == IIS2DH_LP_8bit) && (_odr >= 1600) ? IIS2DH_ODR_1kHz620_LP : \
33 ((_lp != IIS2DH_LP_8bit) && (_odr >= 800) ? IIS2DH_ODR_400Hz : \
34 ((31 - __builtin_clz(_odr / 25))) + 3)))))))
/Zephyr-latest/drivers/sensor/st/lis2ds12/
Dlis2ds12.h29 #define LIS2DS12_ODR_TO_REG(_odr) \ argument
30 ((_odr <= 1) ? 1 : \
31 ((31 - __builtin_clz(_odr / 25))) + 3)
/Zephyr-latest/drivers/sensor/st/iis2dlpc/
Diis2dlpc.h29 #define IIS2DLPC_ODR_TO_REG(_odr) \ argument
30 ((_odr <= 1) ? IIS2DLPC_XL_ODR_1Hz6_LP_ONLY : \
31 (_odr <= 12) ? IIS2DLPC_XL_ODR_12Hz5 : \
32 ((31 - __builtin_clz(_odr / 25))) + 3)
/Zephyr-latest/drivers/sensor/st/lis2dw12/
Dlis2dw12.h30 #define LIS2DW12_ODR_TO_REG(_odr) \ argument
31 ((_odr <= 1) ? LIS2DW12_XL_ODR_1Hz6_LP_ONLY : \
32 (_odr <= 12) ? LIS2DW12_XL_ODR_12Hz5 : \
33 ((31 - __builtin_clz(_odr / 25))) + 3)