UM1940
Common write and read registers Macros
LL_ADC_WriteReg
LL_ADC_ReadReg
calculation input, the analog reference voltage
(Vref+) must be defined as it impacts the ADC
LSB equivalent voltage. Analog reference
voltage (Vref+) must be known from user board
environment or can be calculated using ADC
measurement. ADC measurement data must
correspond to a resolution of 12bits (full scale
digital value 4095). If not the case, the data
must be preliminarily rescaled to an equivalent
resolution of 12 bits.
Description:
Write a value in ADC register.
Parameters:
__INSTANCE__: ADC Instance
__REG__: Register to be written
__VALUE__: Value to be written in the register
Return value:
None
Description:
Read a value in ADC register.
Parameters:
__INSTANCE__: ADC Instance
__REG__: Register to be read
Return value:
Register: value
DocID028236 Rev 2
LL ADC Generic Driver
789/1371
Need help?
Do you have a question about the STM32F2 and is the answer not in the manual?