HAL
LL_ADC_INJ_GetSequencerRanks() is only used within HAL.
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesHALLL_ADC_INJ_GetSequencerRanks()

LL_ADC_INJ_GetSequencerRanks() function

Get ADC group injected sequence: channel on the selected sequence rank. (1) On STM32F4, parameter available only on ADC instance: ADC1.\n (2) On devices STM32F42x and STM32F43x, limitation: this internal channel is shared between temperature sensor and Vbat, only 1 measurement path must be enabled.\n (1) For ADC channel read back from ADC register, comparison with internal channel parameter to be done using helper macro __LL_ADC_CHANNEL_INTERNAL_TO_EXTERNAL ().

Syntax

__STATIC_INLINE uint32_t LL_ADC_INJ_GetSequencerRanks(ADC_TypeDef *ADCx,     uint32_t Rank);

Arguments

ADCx

ADC instance

Rank

This parameter can be one of the following values: @arg LL_ADC_INJ_RANK_1 @arg LL_ADC_INJ_RANK_2 @arg LL_ADC_INJ_RANK_3 @arg LL_ADC_INJ_RANK_4

Return value

Notes

Depending on devices and packages, some channels may not be available. Refer to device datasheet for channels availability. Usage of the returned channel number: - To reinject this channel into another function LL_ADC_xxx: the returned channel number is only partly formatted on definition of literals LL_ADC_CHANNEL_x. Therefore, it has to be compared with parts of literals LL_ADC_CHANNEL_x or using helper macro __LL_ADC_CHANNEL_TO_DECIMAL_NB (). Then the selected literal LL_ADC_CHANNEL_x can be used as parameter for another function. - To get the channel number in decimal format: process the returned value with the helper macro __LL_ADC_CHANNEL_TO_DECIMAL_NB (). JSQR JSQ2 LL_ADC_INJ_SetSequencerRanks\n JSQR JSQ3 LL_ADC_INJ_SetSequencerRanks\n JSQR JSQ4 LL_ADC_INJ_SetSequencerRanks

References

LocationText
stm32f4xx_ll_adc.h:3079
__STATIC_INLINE uint32_t LL_ADC_INJ_GetSequencerRanks(ADC_TypeDef *ADCx, uint32_t Rank)

Data Use

Data read by LL_ADC_INJ_GetSequencerRanks()
LL_ADC_INJ_GetSequencerRanks()::tmpreg1
all items filtered out
LL_ADC_INJ_GetSequencerRanks()
Type of LL_ADC_INJ_GetSequencerRanks()
LL_ADC_INJ_GetSequencerRanks()
uint32_t
all items filtered out