STM32F103xB HAL User Manual
|
Functions | |
__STATIC_INLINE void | LL_ADC_INJ_SetTriggerSource (ADC_TypeDef *ADCx, uint32_t TriggerSource) |
Set ADC group injected conversion trigger source: internal (SW start) or from external IP (timer event, external interrupt line). | |
__STATIC_INLINE uint32_t | LL_ADC_INJ_GetTriggerSource (ADC_TypeDef *ADCx) |
Get ADC group injected conversion trigger source: internal (SW start) or from external IP (timer event, external interrupt line). | |
__STATIC_INLINE uint32_t | LL_ADC_INJ_IsTriggerSourceSWStart (ADC_TypeDef *ADCx) |
Get ADC group injected conversion trigger source internal (SW start) or external. | |
__STATIC_INLINE void | LL_ADC_INJ_SetSequencerLength (ADC_TypeDef *ADCx, uint32_t SequencerNbRanks) |
Set ADC group injected sequencer length and scan direction. | |
__STATIC_INLINE uint32_t | LL_ADC_INJ_GetSequencerLength (ADC_TypeDef *ADCx) |
Get ADC group injected sequencer length and scan direction. | |
__STATIC_INLINE void | LL_ADC_INJ_SetSequencerDiscont (ADC_TypeDef *ADCx, uint32_t SeqDiscont) |
Set ADC group injected sequencer discontinuous mode: sequence subdivided and scan conversions interrupted every selected number of ranks. | |
__STATIC_INLINE uint32_t | LL_ADC_INJ_GetSequencerDiscont (ADC_TypeDef *ADCx) |
Get ADC group injected sequencer discontinuous mode: sequence subdivided and scan conversions interrupted every selected number of ranks. | |
__STATIC_INLINE void | LL_ADC_INJ_SetSequencerRanks (ADC_TypeDef *ADCx, uint32_t Rank, uint32_t Channel) |
Set ADC group injected sequence: channel on the selected sequence rank. | |
__STATIC_INLINE uint32_t | LL_ADC_INJ_GetSequencerRanks (ADC_TypeDef *ADCx, uint32_t Rank) |
Get ADC group injected sequence: channel on the selected sequence rank. | |
__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. | |
__STATIC_INLINE uint32_t | LL_ADC_INJ_GetTrigAuto (ADC_TypeDef *ADCx) |
Get ADC group injected conversion trigger: independent or from ADC group regular. | |
__STATIC_INLINE void | LL_ADC_INJ_SetOffset (ADC_TypeDef *ADCx, uint32_t Rank, uint32_t OffsetLevel) |
Set ADC group injected offset. | |
__STATIC_INLINE uint32_t | LL_ADC_INJ_GetOffset (ADC_TypeDef *ADCx, uint32_t Rank) |
Get ADC group injected offset. |
__STATIC_INLINE uint32_t LL_ADC_INJ_GetOffset | ( | ADC_TypeDef * | ADCx, |
uint32_t | Rank | ||
) |
Get ADC group injected offset.
ADCx | ADC instance |
Rank | This parameter can be one of the following values: |
Value | between Min_Data=0x000 and Max_Data=0xFFF |
Definition at line 2748 of file stm32f1xx_ll_adc.h.
References __ADC_MASK_SHIFT, __ADC_PTR_REG_OFFSET, and ADC_INJ_JOFRX_REGOFFSET_MASK.
__STATIC_INLINE uint32_t LL_ADC_INJ_GetSequencerDiscont | ( | ADC_TypeDef * | ADCx | ) |
Get ADC group injected sequencer discontinuous mode: sequence subdivided and scan conversions interrupted every selected number of ranks.
ADCx | ADC instance |
Returned | value can be one of the following values: |
Definition at line 2526 of file stm32f1xx_ll_adc.h.
__STATIC_INLINE uint32_t LL_ADC_INJ_GetSequencerLength | ( | ADC_TypeDef * | ADCx | ) |
Get ADC group injected sequencer length and scan direction.
ADCx | ADC instance |
Returned | value can be one of the following values: |
Definition at line 2493 of file stm32f1xx_ll_adc.h.
__STATIC_INLINE uint32_t LL_ADC_INJ_GetSequencerRanks | ( | ADC_TypeDef * | ADCx, |
uint32_t | Rank | ||
) |
Get ADC group injected sequence: channel on the selected sequence rank.
ADCx | ADC instance |
Rank | This parameter can be one of the following values: |
Returned | value can be one of the following values:
(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(). |
Definition at line 2641 of file stm32f1xx_ll_adc.h.
References ADC_CHANNEL_ID_NUMBER_MASK.
__STATIC_INLINE uint32_t LL_ADC_INJ_GetTrigAuto | ( | ADC_TypeDef * | ADCx | ) |
Get ADC group injected conversion trigger: independent or from ADC group regular.
ADCx | ADC instance |
Returned | value can be one of the following values: |
Definition at line 2691 of file stm32f1xx_ll_adc.h.
__STATIC_INLINE uint32_t LL_ADC_INJ_GetTriggerSource | ( | ADC_TypeDef * | ADCx | ) |
Get ADC group injected conversion trigger source: internal (SW start) or from external IP (timer event, external interrupt line).
ADCx | ADC instance |
Returned | value can be one of the following values:
(2) On STM32F1, parameter available only on ADC instances: ADC1, ADC2 (for ADC instances ADCx available on the selected device). (3) On STM32F1, parameter available only on ADC instances: ADC3 (for ADC instances ADCx available on the selected device). (4) On STM32F1, parameter available only on high-density and XL-density devices. A remap of trigger must be done at top level (refer to AFIO peripheral). |
Definition at line 2422 of file stm32f1xx_ll_adc.h.
__STATIC_INLINE uint32_t LL_ADC_INJ_IsTriggerSourceSWStart | ( | ADC_TypeDef * | ADCx | ) |
Get ADC group injected conversion trigger source internal (SW start) or external.
ADCx | ADC instance |
Value | "0" if trigger source external trigger Value "1" if trigger source SW start. |
Definition at line 2438 of file stm32f1xx_ll_adc.h.
References LL_ADC_INJ_TRIG_SOFTWARE.
__STATIC_INLINE void LL_ADC_INJ_SetOffset | ( | ADC_TypeDef * | ADCx, |
uint32_t | Rank, | ||
uint32_t | OffsetLevel | ||
) |
Set ADC group injected offset.
ADCx | ADC instance |
Rank | This parameter can be one of the following values: |
OffsetLevel | Value between Min_Data=0x000 and Max_Data=0xFFF |
None |
Definition at line 2721 of file stm32f1xx_ll_adc.h.
References __ADC_MASK_SHIFT, __ADC_PTR_REG_OFFSET, and ADC_INJ_JOFRX_REGOFFSET_MASK.
__STATIC_INLINE void LL_ADC_INJ_SetSequencerDiscont | ( | ADC_TypeDef * | ADCx, |
uint32_t | SeqDiscont | ||
) |
Set ADC group injected sequencer discontinuous mode: sequence subdivided and scan conversions interrupted every selected number of ranks.
ADCx | ADC instance |
SeqDiscont | This parameter can be one of the following values: |
None |
Definition at line 2511 of file stm32f1xx_ll_adc.h.
__STATIC_INLINE void LL_ADC_INJ_SetSequencerLength | ( | ADC_TypeDef * | ADCx, |
uint32_t | SequencerNbRanks | ||
) |
Set ADC group injected sequencer length and scan direction.
ADCx | ADC instance |
SequencerNbRanks | This parameter can be one of the following values: |
None |
Definition at line 2466 of file stm32f1xx_ll_adc.h.
Referenced by LL_ADC_INJ_Init().
__STATIC_INLINE void LL_ADC_INJ_SetSequencerRanks | ( | ADC_TypeDef * | ADCx, |
uint32_t | Rank, | ||
uint32_t | Channel | ||
) |
Set ADC group injected sequence: channel on the selected sequence rank.
ADCx | ADC instance |
Rank | This parameter can be one of the following values: |
Channel | This parameter can be one of the following values:
|
None |
Definition at line 2575 of file stm32f1xx_ll_adc.h.
References ADC_CHANNEL_ID_NUMBER_MASK.
__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: |
None |
Definition at line 2677 of file stm32f1xx_ll_adc.h.
__STATIC_INLINE void LL_ADC_INJ_SetTriggerSource | ( | ADC_TypeDef * | ADCx, |
uint32_t | TriggerSource | ||
) |
Set ADC group injected conversion trigger source: internal (SW start) or from external IP (timer event, external interrupt line).
ADCx | ADC instance |
TriggerSource | This parameter can be one of the following values:
(2) On STM32F1, parameter available only on ADC instances: ADC1, ADC2 (for ADC instances ADCx available on the selected device). (3) On STM32F1, parameter available only on ADC instances: ADC3 (for ADC instances ADCx available on the selected device). (4) On STM32F1, parameter available only on high-density and XL-density devices. A remap of trigger must be done at top level (refer to AFIO peripheral). |
None |
Definition at line 2376 of file stm32f1xx_ll_adc.h.
Referenced by LL_ADC_DeInit().