Ll_Adc_Setcommonclock; Ll_Adc_Getcommonclock - ST STM32F2 User Manual

Description of stm32f2 hal and low layer drivers
Hide thumbs Also See for STM32F2:
Table of Contents

Advertisement

LL ADC Generic Driver
Reference Manual to
LL API cross
reference:

LL_ADC_SetCommonClock

Function name
Function description
Parameters
Return values
Reference Manual to
LL API cross
reference:

LL_ADC_GetCommonClock

Function name
Function description
Parameters
Return values
Reference Manual to
LL API cross
reference:
700/1371
LL_DMA_DIRECTION_PERIPH_TO_MEMORY);
For devices with several ADC: in multimode, some devices
use a different data register outside of ADC instance scope
(common data register). This macro manages this register
difference, only ADC instance has to be set as parameter.
DR RDATA LL_ADC_DMA_GetRegAddr
CDR RDATA_MST LL_ADC_DMA_GetRegAddr
CDR RDATA_SLV LL_ADC_DMA_GetRegAddr
__STATIC_INLINE void LL_ADC_SetCommonClock
(ADC_Common_TypeDef * ADCxy_COMMON, uint32_t
CommonClock)
Set parameter common to several ADC: Clock source and
prescaler.
ADCxy_COMMON: ADC common instance (can be set
directly from CMSIS definition or by using helper macro
__LL_ADC_COMMON_INSTANCE() )
CommonClock: This parameter can be one of the following
values:
LL_ADC_CLOCK_SYNC_PCLK_DIV2
LL_ADC_CLOCK_SYNC_PCLK_DIV4
LL_ADC_CLOCK_SYNC_PCLK_DIV6
LL_ADC_CLOCK_SYNC_PCLK_DIV8
None:
CCR ADCPRE LL_ADC_SetCommonClock
__STATIC_INLINE uint32_t LL_ADC_GetCommonClock
(ADC_Common_TypeDef * ADCxy_COMMON)
Get parameter common to several ADC: Clock source and
prescaler.
ADCxy_COMMON: ADC common instance (can be set
directly from CMSIS definition or by using helper macro
__LL_ADC_COMMON_INSTANCE() )
Returned: value can be one of the following values:
LL_ADC_CLOCK_SYNC_PCLK_DIV2
LL_ADC_CLOCK_SYNC_PCLK_DIV4
LL_ADC_CLOCK_SYNC_PCLK_DIV6
LL_ADC_CLOCK_SYNC_PCLK_DIV8
CCR ADCPRE LL_ADC_GetCommonClock
DocID028236 Rev 2
UM1940

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F2 and is the answer not in the manual?

Table of Contents

Save PDF