STM32L443xx HAL User Manual
|
Functions | |
__STATIC_INLINE void | LL_ADC_SetCalibrationFactor (ADC_TypeDef *ADCx, uint32_t SingleDiff, uint32_t CalibrationFactor) |
Set ADC calibration factor in the mode single-ended or differential (for devices with differential mode available). | |
__STATIC_INLINE uint32_t | LL_ADC_GetCalibrationFactor (ADC_TypeDef *ADCx, uint32_t SingleDiff) |
Get ADC calibration factor in the mode single-ended or differential (for devices with differential mode available). | |
__STATIC_INLINE void | LL_ADC_SetResolution (ADC_TypeDef *ADCx, uint32_t Resolution) |
Set ADC resolution. | |
__STATIC_INLINE uint32_t | LL_ADC_GetResolution (ADC_TypeDef *ADCx) |
Get ADC resolution. | |
__STATIC_INLINE void | LL_ADC_SetDataAlignment (ADC_TypeDef *ADCx, uint32_t DataAlignment) |
Set ADC conversion data alignment. | |
__STATIC_INLINE uint32_t | LL_ADC_GetDataAlignment (ADC_TypeDef *ADCx) |
Get ADC conversion data alignment. | |
__STATIC_INLINE void | LL_ADC_SetLowPowerMode (ADC_TypeDef *ADCx, uint32_t LowPowerMode) |
Set ADC low power mode. | |
__STATIC_INLINE uint32_t | LL_ADC_GetLowPowerMode (ADC_TypeDef *ADCx) |
Get ADC low power mode: | |
__STATIC_INLINE void | LL_ADC_SetOffset (ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t Channel, uint32_t OffsetLevel) |
Set ADC selected offset number 1, 2, 3 or 4. | |
__STATIC_INLINE uint32_t | LL_ADC_GetOffsetChannel (ADC_TypeDef *ADCx, uint32_t Offsety) |
Get for the ADC selected offset number 1, 2, 3 or 4: Channel to which the offset programmed will be applied (independently of channel mapped on ADC group regular or group injected) | |
__STATIC_INLINE uint32_t | LL_ADC_GetOffsetLevel (ADC_TypeDef *ADCx, uint32_t Offsety) |
Get for the ADC selected offset number 1, 2, 3 or 4: Offset level (offset to be subtracted from the raw converted data). | |
__STATIC_INLINE void | LL_ADC_SetOffsetState (ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t OffsetState) |
Set for the ADC selected offset number 1, 2, 3 or 4: force offset state disable or enable without modifying offset channel or offset value. | |
__STATIC_INLINE uint32_t | LL_ADC_GetOffsetState (ADC_TypeDef *ADCx, uint32_t Offsety) |
Get for the ADC selected offset number 1, 2, 3 or 4: offset state disabled or enabled. |
__STATIC_INLINE uint32_t LL_ADC_GetCalibrationFactor | ( | ADC_TypeDef * | ADCx, |
uint32_t | SingleDiff | ||
) |
Get ADC calibration factor in the mode single-ended or differential (for devices with differential mode available).
ADCx | ADC instance |
SingleDiff | This parameter can be one of the following values: |
Value | between Min_Data=0x00 and Max_Data=0x7F |
Definition at line 2654 of file stm32l4xx_ll_adc.h.
References ADC_SINGLEDIFF_CALIB_F_BIT_D_MASK, ADC_SINGLEDIFF_CALIB_F_BIT_D_SHIFT4, and ADC_SINGLEDIFF_CALIB_FACTOR_MASK.
Referenced by HAL_ADCEx_Calibration_GetValue().
__STATIC_INLINE uint32_t LL_ADC_GetDataAlignment | ( | ADC_TypeDef * | ADCx | ) |
Get ADC conversion data alignment.
ADCx | ADC instance |
Returned | value can be one of the following values: |
Definition at line 2734 of file stm32l4xx_ll_adc.h.
__STATIC_INLINE uint32_t LL_ADC_GetLowPowerMode | ( | ADC_TypeDef * | ADCx | ) |
Get ADC low power mode:
ADCx | ADC instance |
Returned | value can be one of the following values: |
Definition at line 2841 of file stm32l4xx_ll_adc.h.
__STATIC_INLINE uint32_t LL_ADC_GetOffsetChannel | ( | ADC_TypeDef * | ADCx, |
uint32_t | Offsety | ||
) |
Get for the ADC selected offset number 1, 2, 3 or 4: Channel to which the offset programmed will be applied (independently of channel mapped on ADC group regular or group injected)
ADCx | ADC instance |
Offsety | This parameter can be one of the following values: |
Returned | value 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)). (1, 2, 3, 4) 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 3005 of file stm32l4xx_ll_adc.h.
References __ADC_PTR_REG_OFFSET.
Referenced by HAL_ADC_ConfigChannel(), and HAL_ADCEx_InjectedConfigChannel().
__STATIC_INLINE uint32_t LL_ADC_GetOffsetLevel | ( | ADC_TypeDef * | ADCx, |
uint32_t | Offsety | ||
) |
Get for the ADC selected offset number 1, 2, 3 or 4: Offset level (offset to be subtracted from the raw converted data).
ADCx | ADC instance |
Offsety | This parameter can be one of the following values: |
Value | between Min_Data=0x000 and Max_Data=0xFFF |
Definition at line 3031 of file stm32l4xx_ll_adc.h.
References __ADC_PTR_REG_OFFSET.
__STATIC_INLINE uint32_t LL_ADC_GetOffsetState | ( | ADC_TypeDef * | ADCx, |
uint32_t | Offsety | ||
) |
Get for the ADC selected offset number 1, 2, 3 or 4: offset state disabled or enabled.
ADCx | ADC instance |
Offsety | This parameter can be one of the following values: |
Returned | value can be one of the following values: |
Definition at line 3090 of file stm32l4xx_ll_adc.h.
References __ADC_PTR_REG_OFFSET.
__STATIC_INLINE uint32_t LL_ADC_GetResolution | ( | ADC_TypeDef * | ADCx | ) |
Get ADC resolution.
Refer to reference manual for alignments formats dependencies to ADC resolutions.
ADCx | ADC instance |
Returned | value can be one of the following values: |
Definition at line 2699 of file stm32l4xx_ll_adc.h.
__STATIC_INLINE void LL_ADC_SetCalibrationFactor | ( | ADC_TypeDef * | ADCx, |
uint32_t | SingleDiff, | ||
uint32_t | CalibrationFactor | ||
) |
Set ADC calibration factor in the mode single-ended or differential (for devices with differential mode available).
ADCx | ADC instance |
SingleDiff | This parameter can be one of the following values: |
CalibrationFactor | Value between Min_Data=0x00 and Max_Data=0x7F |
None |
Definition at line 2631 of file stm32l4xx_ll_adc.h.
References ADC_SINGLEDIFF_CALIB_F_BIT_D_MASK, ADC_SINGLEDIFF_CALIB_F_BIT_D_SHIFT4, and ADC_SINGLEDIFF_CALIB_FACTOR_MASK.
Referenced by HAL_ADCEx_Calibration_SetValue().
__STATIC_INLINE void LL_ADC_SetDataAlignment | ( | ADC_TypeDef * | ADCx, |
uint32_t | DataAlignment | ||
) |
Set ADC conversion data alignment.
ADCx | ADC instance |
DataAlignment | This parameter can be one of the following values: |
None |
Definition at line 2719 of file stm32l4xx_ll_adc.h.
__STATIC_INLINE void LL_ADC_SetLowPowerMode | ( | ADC_TypeDef * | ADCx, |
uint32_t | LowPowerMode | ||
) |
Set ADC low power mode.
ADCx | ADC instance |
LowPowerMode | This parameter can be one of the following values: |
None |
Definition at line 2790 of file stm32l4xx_ll_adc.h.
__STATIC_INLINE void LL_ADC_SetOffset | ( | ADC_TypeDef * | ADCx, |
uint32_t | Offsety, | ||
uint32_t | Channel, | ||
uint32_t | OffsetLevel | ||
) |
Set ADC selected offset number 1, 2, 3 or 4.
ADCx | ADC instance |
Offsety | This parameter can be one of the following values: |
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)). |
OffsetLevel | Value between Min_Data=0x000 and Max_Data=0xFFF |
None |
Definition at line 2926 of file stm32l4xx_ll_adc.h.
References __ADC_PTR_REG_OFFSET, and ADC_CHANNEL_ID_NUMBER_MASK.
Referenced by HAL_ADC_ConfigChannel(), and HAL_ADCEx_InjectedConfigChannel().
__STATIC_INLINE void LL_ADC_SetOffsetState | ( | ADC_TypeDef * | ADCx, |
uint32_t | Offsety, | ||
uint32_t | OffsetState | ||
) |
Set for the ADC selected offset number 1, 2, 3 or 4: force offset state disable or enable without modifying offset channel or offset value.
ADCx | ADC instance |
Offsety | This parameter can be one of the following values: |
OffsetState | This parameter can be one of the following values: |
None |
Definition at line 3064 of file stm32l4xx_ll_adc.h.
References __ADC_PTR_REG_OFFSET.
Referenced by HAL_ADC_ConfigChannel(), and HAL_ADCEx_InjectedConfigChannel().
__STATIC_INLINE void LL_ADC_SetResolution | ( | ADC_TypeDef * | ADCx, |
uint32_t | Resolution | ||
) |
Set ADC resolution.
Refer to reference manual for alignments formats dependencies to ADC resolutions.
ADCx | ADC instance |
Resolution | This parameter can be one of the following values: |
None |
Definition at line 2682 of file stm32l4xx_ll_adc.h.