STM32H735xx HAL User Manual
|
Functions | |
__STATIC_INLINE void | LL_ADC_REG_SetTriggerSource (ADC_TypeDef *ADCx, uint32_t TriggerSource) |
Set ADC group regular conversion trigger source: internal (SW start) or from external peripheral (timer event, external interrupt line). | |
__STATIC_INLINE uint32_t | LL_ADC_REG_GetTriggerSource (ADC_TypeDef *ADCx) |
Get ADC group regular conversion trigger source: internal (SW start) or from external peripheral (timer event, external interrupt line). | |
__STATIC_INLINE uint32_t | LL_ADC_REG_IsTriggerSourceSWStart (ADC_TypeDef *ADCx) |
Get ADC group regular conversion trigger source internal (SW start) or external. | |
__STATIC_INLINE void | LL_ADC_REG_SetTriggerEdge (ADC_TypeDef *ADCx, uint32_t ExternalTriggerEdge) |
Set ADC group regular conversion trigger polarity. | |
__STATIC_INLINE uint32_t | LL_ADC_REG_GetTriggerEdge (ADC_TypeDef *ADCx) |
Get ADC group regular conversion trigger polarity. | |
__STATIC_INLINE void | LL_ADC_REG_SetSamplingMode (ADC_TypeDef *ADCx, uint32_t SamplingMode) |
Set ADC sampling mode. | |
__STATIC_INLINE void | LL_ADC_REG_SetSequencerLength (ADC_TypeDef *ADCx, uint32_t SequencerNbRanks) |
Set ADC group regular sequencer length and scan direction. | |
__STATIC_INLINE uint32_t | LL_ADC_REG_GetSequencerLength (ADC_TypeDef *ADCx) |
Get ADC group regular sequencer length and scan direction. | |
__STATIC_INLINE void | LL_ADC_REG_SetSequencerDiscont (ADC_TypeDef *ADCx, uint32_t SeqDiscont) |
Set ADC group regular sequencer discontinuous mode: sequence subdivided and scan conversions interrupted every selected number of ranks. | |
__STATIC_INLINE uint32_t | LL_ADC_REG_GetSequencerDiscont (ADC_TypeDef *ADCx) |
Get ADC group regular sequencer discontinuous mode: sequence subdivided and scan conversions interrupted every selected number of ranks. | |
__STATIC_INLINE void | LL_ADC_REG_SetSequencerRanks (ADC_TypeDef *ADCx, uint32_t Rank, uint32_t Channel) |
Set ADC group regular sequence: channel on the selected scan sequence rank. | |
__STATIC_INLINE uint32_t | LL_ADC_REG_GetSequencerRanks (ADC_TypeDef *ADCx, uint32_t Rank) |
Get ADC group regular sequence: channel on the selected scan sequence rank. | |
__STATIC_INLINE void | LL_ADC_REG_SetContinuousMode (ADC_TypeDef *ADCx, uint32_t Continuous) |
Set ADC continuous conversion mode on ADC group regular. | |
__STATIC_INLINE uint32_t | LL_ADC_REG_GetContinuousMode (ADC_TypeDef *ADCx) |
Get ADC continuous conversion mode on ADC group regular. | |
__STATIC_INLINE void | LL_ADC_REG_SetDataTransferMode (ADC_TypeDef *ADCx, uint32_t DataTransferMode) |
Set ADC data transfer mode. | |
__STATIC_INLINE void | LL_ADC_EnableDMAReq (ADC_TypeDef *ADCx) |
Enable DMA requests for ADC3. | |
__STATIC_INLINE void | LL_ADC_DisableDMAReq (ADC_TypeDef *ADCx) |
__STATIC_INLINE uint32_t | LL_ADC_IsEnabledDMAReq (ADC_TypeDef *ADCx) |
__STATIC_INLINE void | LL_ADC_REG_SetDMATransferMode (ADC_TypeDef *ADCx, uint32_t DMATransfer) |
Set ADC group regular conversion data transfer: no transfer or transfer by DMA, and DMA requests mode. | |
__STATIC_INLINE uint32_t | LL_ADC_REG_GetDMATransferMode (ADC_TypeDef *ADCx) |
Get ADC group regular conversion data transfer: no transfer or transfer by DMA, and DMA requests mode. | |
__STATIC_INLINE uint32_t | LL_ADC_REG_GetDataTransferMode (ADC_TypeDef *ADCx) |
Get ADC data transfer mode. | |
__STATIC_INLINE void | LL_ADC_REG_SetOverrun (ADC_TypeDef *ADCx, uint32_t Overrun) |
Set ADC group regular behavior in case of overrun: data preserved or overwritten. | |
__STATIC_INLINE uint32_t | LL_ADC_REG_GetOverrun (ADC_TypeDef *ADCx) |
Get ADC group regular behavior in case of overrun: data preserved or overwritten. |
__STATIC_INLINE void LL_ADC_DisableDMAReq | ( | ADC_TypeDef * | ADCx | ) |
Definition at line 4369 of file stm32h7xx_ll_adc.h.
__STATIC_INLINE void LL_ADC_EnableDMAReq | ( | ADC_TypeDef * | ADCx | ) |
Enable DMA requests for ADC3.
ADCx | ADC instance |
None |
Definition at line 4364 of file stm32h7xx_ll_adc.h.
Referenced by HAL_ADC_Start_DMA().
__STATIC_INLINE uint32_t LL_ADC_IsEnabledDMAReq | ( | ADC_TypeDef * | ADCx | ) |
Definition at line 4374 of file stm32h7xx_ll_adc.h.
__STATIC_INLINE uint32_t LL_ADC_REG_GetContinuousMode | ( | ADC_TypeDef * | ADCx | ) |
Get ADC continuous conversion mode on ADC group regular.
ADCx | ADC instance |
Returned | value can be one of the following values: |
Definition at line 4336 of file stm32h7xx_ll_adc.h.
__STATIC_INLINE uint32_t LL_ADC_REG_GetDataTransferMode | ( | ADC_TypeDef * | ADCx | ) |
Get ADC data transfer mode.
ADCx | ADC instance |
Returned | value can be one of the following values: |
Definition at line 4480 of file stm32h7xx_ll_adc.h.
__STATIC_INLINE uint32_t LL_ADC_REG_GetDMATransferMode | ( | ADC_TypeDef * | ADCx | ) |
Get ADC group regular conversion data transfer: no transfer or transfer by DMA, and DMA requests mode.
ADCx | ADC instance |
Returned | value can be one of the following values: |
Definition at line 4451 of file stm32h7xx_ll_adc.h.
__STATIC_INLINE uint32_t LL_ADC_REG_GetOverrun | ( | ADC_TypeDef * | ADCx | ) |
Get ADC group regular behavior in case of overrun: data preserved or overwritten.
ADCx | ADC instance |
Returned | value can be one of the following values: |
Definition at line 4520 of file stm32h7xx_ll_adc.h.
__STATIC_INLINE uint32_t LL_ADC_REG_GetSequencerDiscont | ( | ADC_TypeDef * | ADCx | ) |
Get ADC group regular 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 4096 of file stm32h7xx_ll_adc.h.
__STATIC_INLINE uint32_t LL_ADC_REG_GetSequencerLength | ( | ADC_TypeDef * | ADCx | ) |
Get ADC group regular sequencer length and scan direction.
ADCx | ADC instance |
Definition at line 4041 of file stm32h7xx_ll_adc.h.
__STATIC_INLINE uint32_t LL_ADC_REG_GetSequencerRanks | ( | ADC_TypeDef * | ADCx, |
uint32_t | Rank | ||
) |
Get ADC group regular sequence: channel on the selected scan sequence rank.
ADCx | ADC instance |
Rank | This parameter can be one of the following values: |
Returned | value can be one of the following values:
(2) On STM32H7, parameter available only on ADC instance: ADC2. (3) On STM32H7, fast channel (0.125 us for 14-bit resolution (ADC conversion rate up to 8 Ms/s)). Other channels are slow channels (conversion rate: refer to reference manual). (1, 2) 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 4290 of file stm32h7xx_ll_adc.h.
References __ADC_PTR_REG_OFFSET, ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS, ADC_CHANNEL_ID_NUMBER_MASK_POSBIT0, ADC_REG_RANK_ID_SQRX_MASK, ADC_REG_SQRX_REGOFFSET_MASK, and ADC_SQRX_REGOFFSET_POS.
__STATIC_INLINE uint32_t LL_ADC_REG_GetTriggerEdge | ( | ADC_TypeDef * | ADCx | ) |
Get ADC group regular conversion trigger polarity.
ADCx | ADC instance |
Returned | value can be one of the following values: |
Definition at line 3896 of file stm32h7xx_ll_adc.h.
__STATIC_INLINE uint32_t LL_ADC_REG_GetTriggerSource | ( | ADC_TypeDef * | ADCx | ) |
Get ADC group regular conversion trigger source: internal (SW start) or from external peripheral (timer event, external interrupt line).
ADCx | ADC instance |
Definition at line 3834 of file stm32h7xx_ll_adc.h.
References ADC_REG_TRIG_EDGE_MASK, ADC_REG_TRIG_EXTEN_BITOFFSET_POS, and ADC_REG_TRIG_SOURCE_MASK.
__STATIC_INLINE uint32_t LL_ADC_REG_IsTriggerSourceSWStart | ( | ADC_TypeDef * | ADCx | ) |
Get ADC group regular 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 3861 of file stm32h7xx_ll_adc.h.
References LL_ADC_REG_TRIG_SOFTWARE.
Referenced by ADC_DMAConvCplt(), HAL_ADC_IRQHandler(), HAL_ADC_PollForConversion(), and HAL_ADCEx_InjectedPollForConversion().
__STATIC_INLINE void LL_ADC_REG_SetContinuousMode | ( | ADC_TypeDef * | ADCx, |
uint32_t | Continuous | ||
) |
Set ADC continuous conversion mode on ADC group regular.
ADCx | ADC instance |
Continuous | This parameter can be one of the following values: |
None |
Definition at line 4319 of file stm32h7xx_ll_adc.h.
__STATIC_INLINE void LL_ADC_REG_SetDataTransferMode | ( | ADC_TypeDef * | ADCx, |
uint32_t | DataTransferMode | ||
) |
Set ADC data transfer mode.
ADCx | ADC instance |
DataTransferMode | Select Data Management configuration |
None |
Definition at line 4352 of file stm32h7xx_ll_adc.h.
Referenced by HAL_ADC_Start_DMA().
__STATIC_INLINE void LL_ADC_REG_SetDMATransferMode | ( | ADC_TypeDef * | ADCx, |
uint32_t | DMATransfer | ||
) |
Set ADC group regular conversion data transfer: no transfer or transfer by DMA, and DMA requests mode.
ADCx | ADC instance |
DMATransfer | This parameter can be one of the following values: |
None |
Definition at line 4413 of file stm32h7xx_ll_adc.h.
Referenced by HAL_ADC_Start_DMA().
__STATIC_INLINE void LL_ADC_REG_SetOverrun | ( | ADC_TypeDef * | ADCx, |
uint32_t | Overrun | ||
) |
Set ADC group regular behavior in case of overrun: data preserved or overwritten.
ADCx | ADC instance |
Overrun | This parameter can be one of the following values: |
None |
Definition at line 4506 of file stm32h7xx_ll_adc.h.
__STATIC_INLINE void LL_ADC_REG_SetSamplingMode | ( | ADC_TypeDef * | ADCx, |
uint32_t | SamplingMode | ||
) |
Set ADC sampling mode.
ADCx | ADC instance |
SamplingMode | This parameter can be one of the following values: |
None |
Definition at line 3920 of file stm32h7xx_ll_adc.h.
__STATIC_INLINE void LL_ADC_REG_SetSequencerDiscont | ( | ADC_TypeDef * | ADCx, |
uint32_t | SeqDiscont | ||
) |
Set ADC group regular 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 4073 of file stm32h7xx_ll_adc.h.
__STATIC_INLINE void LL_ADC_REG_SetSequencerLength | ( | ADC_TypeDef * | ADCx, |
uint32_t | SequencerNbRanks | ||
) |
Set ADC group regular sequencer length and scan direction.
None |
Definition at line 3987 of file stm32h7xx_ll_adc.h.
Referenced by LL_ADC_REG_Init().
__STATIC_INLINE void LL_ADC_REG_SetSequencerRanks | ( | ADC_TypeDef * | ADCx, |
uint32_t | Rank, | ||
uint32_t | Channel | ||
) |
Set ADC group regular sequence: channel on the selected scan 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:
(2) On STM32H7, parameter available only on ADC instance: ADC2. (3) On STM32H7, fast channel (0.125 us for 14-bit resolution (ADC conversion rate up to 8 Ms/s)). Other channels are slow channels (conversion rate: refer to reference manual). |
None |
Definition at line 4188 of file stm32h7xx_ll_adc.h.
References __ADC_PTR_REG_OFFSET, ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS, ADC_CHANNEL_ID_NUMBER_MASK, ADC_CHANNEL_ID_NUMBER_MASK_POSBIT0, ADC_REG_RANK_ID_SQRX_MASK, ADC_REG_SQRX_REGOFFSET_MASK, and ADC_SQRX_REGOFFSET_POS.
Referenced by HAL_ADC_ConfigChannel().
__STATIC_INLINE void LL_ADC_REG_SetTriggerEdge | ( | ADC_TypeDef * | ADCx, |
uint32_t | ExternalTriggerEdge | ||
) |
Set ADC group regular conversion trigger polarity.
ADCx | ADC instance |
ExternalTriggerEdge | This parameter can be one of the following values: |
None |
Definition at line 3881 of file stm32h7xx_ll_adc.h.
__STATIC_INLINE void LL_ADC_REG_SetTriggerSource | ( | ADC_TypeDef * | ADCx, |
uint32_t | TriggerSource | ||
) |
Set ADC group regular conversion trigger source: internal (SW start) or from external peripheral (timer event, external interrupt line).
None |
Definition at line 3790 of file stm32h7xx_ll_adc.h.
Referenced by LL_ADC_DeInit().