LL ADC Generic Driver
Notes
Reference Manual to
LL API cross
reference:
LL_ADC_INJ_SetTrigAuto
Function name
Function description
Parameters
Return values
Notes
722/1371
LL_ADC_CHANNEL_VREFINT (1)
LL_ADC_CHANNEL_TEMPSENSOR (1)(2)
LL_ADC_CHANNEL_VBAT (1)
(2) On devices STM32F42x and STM32F43x, limitation: this
internal channel is shared between temperature sensor and
Vbat, only 1 measurement path must be enabled.
(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().
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 JSQ1 LL_ADC_INJ_SetSequencerRanks
JSQR JSQ2 LL_ADC_INJ_SetSequencerRanks
JSQR JSQ3 LL_ADC_INJ_SetSequencerRanks
JSQR JSQ4 LL_ADC_INJ_SetSequencerRanks
__STATIC_INLINE void LL_ADC_INJ_SetTrigAuto
(ADC_TypeDef * ADCx, uint32_t TrigAuto)
Set ADC group injected conversion trigger: independent or from
ADC group regular.
ADCx: ADC instance
TrigAuto: This parameter can be one of the following values:
LL_ADC_INJ_TRIG_INDEPENDENT
LL_ADC_INJ_TRIG_FROM_GRP_REGULAR
None:
This mode can be used to extend number of data registers
updated after one ADC conversion trigger and with data
permanently kept (not erased by successive conversions of
scan of ADC sequencer ranks), up to 5 data registers: 1 data
register on ADC group regular, 4 data registers on ADC group
injected.
If ADC group injected injected trigger source is set to an
external trigger, this feature must be must be set to
independent trigger. ADC group injected automatic trigger is
compliant only with group injected trigger source set to SW
start, without any further action on ADC group injected
conversion start or stop: in this case, ADC group injected is
DocID028236 Rev 2
UM1940
Need help?
Do you have a question about the STM32F2 and is the answer not in the manual?
Questions and answers