Home
last modified time | relevance | path

Searched refs:bitname (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/drivers/sensor/bosch/bmp581/
Dbmp581.h30 #define BMP5_GET_BITSLICE(regvar, bitname) ((regvar & bitname##_MSK) >> bitname##_POS) argument
32 #define BMP5_SET_BITSLICE(regvar, bitname, val) \ argument
33 ((regvar & ~bitname##_MSK) | ((val << bitname##_POS) & bitname##_MSK))
38 #define BMP5_SET_BIT_VAL_0(reg_data, bitname) (reg_data & ~(bitname##_MSK)) argument
40 #define BMP5_SET_BITS_POS_0(reg_data, bitname, data) \ argument
41 ((reg_data & ~(bitname##_MSK)) | (data & bitname##_MSK))
43 #define BMP5_GET_BITS_POS_0(reg_data, bitname) (reg_data & (bitname##_MSK)) argument
/Zephyr-latest/drivers/sensor/bosch/bmi270/
Dbmi270.h254 #define BMI270_SET_BITS(reg_data, bitname, data) \ argument
255 ((reg_data & ~(bitname##_MSK)) | ((data << bitname##_POS) \
256 & bitname##_MSK))
257 #define BMI270_SET_BITS_POS_0(reg_data, bitname, data) \ argument
258 ((reg_data & ~(bitname##_MSK)) | (data & bitname##_MSK))