__ADC_PTR_REG_OFFSET macro
Driver macro reserved for internal use: set a pointer to a register from a register basis from which an offset is applied.
Syntax
#define __ADC_PTR_REG_OFFSET(__REG__, __REG_OFFFSET__) \
((__IO uint32_t *)((uint32_t) ((uint32_t)(&(__REG__)) + ((__REG_OFFFSET__) << 2UL))))
Arguments
__REG__
Register basis from which the offset is applied.
__REG_OFFFSET__
Offset to be applied (unit number of registers).
Return value
Pointer to register address