STM32L443xx HAL User Manual
|
Functions | |
__STATIC_INLINE void | LL_ADC_SetChannelSamplingTime (ADC_TypeDef *ADCx, uint32_t Channel, uint32_t SamplingTime) |
Set sampling time of the selected ADC channel Unit: ADC clock cycles. | |
__STATIC_INLINE uint32_t | LL_ADC_GetChannelSamplingTime (ADC_TypeDef *ADCx, uint32_t Channel) |
Get sampling time of the selected ADC channel Unit: ADC clock cycles. | |
__STATIC_INLINE void | LL_ADC_SetChannelSingleDiff (ADC_TypeDef *ADCx, uint32_t Channel, uint32_t SingleDiff) |
Set mode single-ended or differential input of the selected ADC channel. | |
__STATIC_INLINE uint32_t | LL_ADC_GetChannelSingleDiff (ADC_TypeDef *ADCx, uint32_t Channel) |
Get mode single-ended or differential input of the selected ADC channel. |
__STATIC_INLINE uint32_t LL_ADC_GetChannelSamplingTime | ( | ADC_TypeDef * | ADCx, |
uint32_t | Channel | ||
) |
Get sampling time of the selected ADC channel Unit: ADC clock cycles.
ADCx | ADC instance |
Channel | This parameter can be one of the following values:
(2) On STM32L4, parameter available only on ADC instance: ADC2. (3) On STM32L4, parameter available only on ADC instance: ADC3. (4) On STM32L4, parameter available only on ADC instances: ADC1, ADC3. (5) On STM32L4, parameter available on devices with only 1 ADC instance. (6) On STM32L4, parameter available on devices with several ADC instances. (7) On STM32L4, fast channel (0.188 us for 12-bit resolution (ADC conversion rate up to 5.33 Ms/s)). Other channels are slow channels (0.238 us for 12-bit resolution (ADC conversion rate up to 4.21 Ms/s)). |
Returned | value can be one of the following values: (1) On some devices, ADC sampling time 2.5 ADC clock cycles can be replaced by 3.5 ADC clock cycles. Refer to function LL_ADC_SetSamplingTimeCommonConfig(). |
Definition at line 4809 of file stm32l4xx_ll_adc.h.
References __ADC_PTR_REG_OFFSET, ADC_CHANNEL_SMPRX_REGOFFSET_MASK, ADC_CHANNEL_SMPx_BITOFFSET_MASK, ADC_CHANNEL_SMPx_BITOFFSET_POS, and ADC_SMPRX_REGOFFSET_POS.
__STATIC_INLINE uint32_t LL_ADC_GetChannelSingleDiff | ( | ADC_TypeDef * | ADCx, |
uint32_t | Channel | ||
) |
Get mode single-ended or differential input of the selected ADC channel.
ADCx | ADC instance |
Channel | This parameter can be a combination of the following values: |
0,: | channel in single-ended mode, else: channel in differential mode |
Definition at line 4917 of file stm32l4xx_ll_adc.h.
References ADC_SINGLEDIFF_CHANNEL_MASK.
__STATIC_INLINE void LL_ADC_SetChannelSamplingTime | ( | ADC_TypeDef * | ADCx, |
uint32_t | Channel, | ||
uint32_t | SamplingTime | ||
) |
Set sampling time of the selected ADC channel Unit: ADC clock cycles.
ADCx | ADC instance |
Channel | This parameter can be one of the following values:
(2) On STM32L4, parameter available only on ADC instance: ADC2. (3) On STM32L4, parameter available only on ADC instance: ADC3. (4) On STM32L4, parameter available only on ADC instances: ADC1, ADC3. (5) On STM32L4, parameter available on devices with only 1 ADC instance. (6) On STM32L4, parameter available on devices with several ADC instances. (7) On STM32L4, fast channel (0.188 us for 12-bit resolution (ADC conversion rate up to 5.33 Ms/s)). Other channels are slow channels (0.238 us for 12-bit resolution (ADC conversion rate up to 4.21 Ms/s)). |
SamplingTime | This parameter can be one of the following values: (1) On some devices, ADC sampling time 2.5 ADC clock cycles can be replaced by 3.5 ADC clock cycles. Refer to function LL_ADC_SetSamplingTimeCommonConfig(). |
None |
Definition at line 4713 of file stm32l4xx_ll_adc.h.
References __ADC_PTR_REG_OFFSET, ADC_CHANNEL_SMPRX_REGOFFSET_MASK, ADC_CHANNEL_SMPx_BITOFFSET_MASK, ADC_CHANNEL_SMPx_BITOFFSET_POS, and ADC_SMPRX_REGOFFSET_POS.
Referenced by HAL_ADC_ConfigChannel(), and HAL_ADCEx_InjectedConfigChannel().
__STATIC_INLINE void LL_ADC_SetChannelSingleDiff | ( | ADC_TypeDef * | ADCx, |
uint32_t | Channel, | ||
uint32_t | SingleDiff | ||
) |
Set mode single-ended or differential input of the selected ADC channel.
ADCx | ADC instance |
Channel | This parameter can be one of the following values: |
SingleDiff | This parameter can be a combination of the following values: |
None |
Definition at line 4867 of file stm32l4xx_ll_adc.h.
References ADC_SINGLEDIFF_CHANNEL_MASK, and ADC_SINGLEDIFF_CHANNEL_SHIFT_MASK.
Referenced by HAL_ADC_ConfigChannel(), and HAL_ADCEx_InjectedConfigChannel().