HAL_FORCE_READ_U32_REG_FIELD macro
Macro to force a 32-bit read on a peripheral register
Syntax
#define HAL_FORCE_READ_U32_REG_FIELD(base_reg, reg_field) ({ \
uint32_t temp_val = base_reg.val; \
typeof(base_reg) temp_reg; \
temp_reg.val = temp_val; \
temp_reg.reg_field; \
})
Notes
This macro should only be called on register fields of xxx_struct.h type headers. See description above for more details. Current implementation reads into a uint32_t. See description above for more details.