STM32H735xx HAL User Manual
|
Functions | |
__STATIC_INLINE void | LL_ADC_SetCalibrationOffsetFactor (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_GetCalibrationOffsetFactor (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_SetCalibrationLinearFactor (ADC_TypeDef *ADCx, uint32_t LinearityWord, uint32_t CalibrationFactor) |
Set ADC Linear calibration factor in the mode single-ended. | |
__STATIC_INLINE uint32_t | LL_ADC_GetCalibrationLinearFactor (ADC_TypeDef *ADCx, uint32_t LinearityWord) |
Get ADC Linear calibration factor in the mode single-ended. | |
__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_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_SetChannelPreSelection (ADC_TypeDef *ADCx, uint32_t Channel) |
Set ADC selected Channel. | |
__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_SetDataRightShift (ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t RigthShift) |
Set data right shift for the ADC selected offset number 1, 2, 3 or 4: signed offset saturation if enabled or disabled. | |
__STATIC_INLINE uint32_t | LL_ADC_GetDataRightShift (ADC_TypeDef *ADCx, uint32_t Offsety) |
Get data right shift for the ADC selected offset number 1, 2, 3 or 4: signed offset saturation if enabled or disabled. | |
__STATIC_INLINE void | LL_ADC_SetOffsetSignedSaturation (ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t OffsetSignedSaturation) |
Set signed saturation for the ADC selected offset number 1, 2, 3 or 4: signed offset saturation if enabled or disabled. | |
__STATIC_INLINE uint32_t | LL_ADC_GetOffsetSignedSaturation (ADC_TypeDef *ADCx, uint32_t Offsety) |
Get signed saturation for the ADC selected offset number 1, 2, 3 or 4: signed offset saturation if enabled or disabled. | |
__STATIC_INLINE void | LL_ADC_SetOffsetSaturation (ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t OffsetSaturation) |
Set for the ADC selected offset number 1, 2, 3 or 4: choose offset saturation mode. | |
__STATIC_INLINE uint32_t | LL_ADC_GetOffsetSaturation (ADC_TypeDef *ADCx, uint32_t Offsety) |
Get for the ADC selected offset number 1, 2, 3 or 4: offset saturation if enabled or disabled. | |
__STATIC_INLINE void | LL_ADC_SetOffsetSign (ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t OffsetSign) |
Set for the ADC selected offset number 1, 2, 3 or 4: choose offset sign. | |
__STATIC_INLINE uint32_t | LL_ADC_GetOffsetSign (ADC_TypeDef *ADCx, uint32_t Offsety) |
Get for the ADC selected offset number 1, 2, 3 or 4: offset sign if positive or negative. | |
__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_GetCalibrationLinearFactor | ( | ADC_TypeDef * | ADCx, |
uint32_t | LinearityWord | ||
) |
Get ADC Linear calibration factor in the mode single-ended.
ADCx | ADC instance |
LinearityWord | This parameter can be one of the following values: |
Value | between Min_Data=0x00 and Max_Data=0x3FFFFFFF |
Definition at line 2949 of file stm32h7xx_ll_adc.h.
References ADC_LINEARITY_BIT_TOGGLE_TIMEOUT.
Referenced by HAL_ADCEx_LinearCalibration_GetValue().
__STATIC_INLINE uint32_t LL_ADC_GetCalibrationOffsetFactor | ( | 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 2874 of file stm32h7xx_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_GetDataRightShift | ( | ADC_TypeDef * | ADCx, |
uint32_t | Offsety | ||
) |
Get data right shift for the ADC selected offset number 1, 2, 3 or 4: signed offset saturation if enabled or disabled.
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 3462 of file stm32h7xx_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 3189 of file stm32h7xx_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 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 3394 of file stm32h7xx_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=0x1FFFFFF |
Definition at line 3420 of file stm32h7xx_ll_adc.h.
References __ADC_PTR_REG_OFFSET.
__STATIC_INLINE uint32_t LL_ADC_GetOffsetSaturation | ( | ADC_TypeDef * | ADCx, |
uint32_t | Offsety | ||
) |
Get for the ADC selected offset number 1, 2, 3 or 4: offset saturation if enabled or disabled.
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 3585 of file stm32h7xx_ll_adc.h.
References __ADC_PTR_REG_OFFSET.
__STATIC_INLINE uint32_t LL_ADC_GetOffsetSign | ( | ADC_TypeDef * | ADCx, |
uint32_t | Offsety | ||
) |
Get for the ADC selected offset number 1, 2, 3 or 4: offset sign if positive or negative.
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 3649 of file stm32h7xx_ll_adc.h.
References __ADC_PTR_REG_OFFSET.
__STATIC_INLINE uint32_t LL_ADC_GetOffsetSignedSaturation | ( | ADC_TypeDef * | ADCx, |
uint32_t | Offsety | ||
) |
Get signed saturation for the ADC selected offset number 1, 2, 3 or 4: signed offset saturation if enabled or disabled.
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 3517 of file stm32h7xx_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 3723 of file stm32h7xx_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 3044 of file stm32h7xx_ll_adc.h.
References LL_ADC_RESOLUTION_8B.
__STATIC_INLINE void LL_ADC_SetCalibrationLinearFactor | ( | ADC_TypeDef * | ADCx, |
uint32_t | LinearityWord, | ||
uint32_t | CalibrationFactor | ||
) |
Set ADC Linear calibration factor in the mode single-ended.
ADCx | ADC instance |
LinearityWord | This parameter can be one of the following values: |
CalibrationFactor | Value between Min_Data=0x00 and Max_Data=0x3FFFFFFF |
None |
Definition at line 2909 of file stm32h7xx_ll_adc.h.
References ADC_LINEARITY_BIT_TOGGLE_TIMEOUT.
Referenced by HAL_ADCEx_LinearCalibration_SetValue().
__STATIC_INLINE void LL_ADC_SetCalibrationOffsetFactor | ( | 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 2843 of file stm32h7xx_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_SetChannelPreSelection | ( | ADC_TypeDef * | ADCx, |
uint32_t | Channel | ||
) |
Set ADC selected Channel.
ADCx | ADC instance |
Channel | This parameter can be one of the following values:
|
None |
Definition at line 3225 of file stm32h7xx_ll_adc.h.
References __LL_ADC_CHANNEL_TO_DECIMAL_NB.
__STATIC_INLINE void LL_ADC_SetDataRightShift | ( | ADC_TypeDef * | ADCx, |
uint32_t | Offsety, | ||
uint32_t | RigthShift | ||
) |
Set data right shift for the ADC selected offset number 1, 2, 3 or 4: signed offset saturation if enabled or disabled.
ADCx | ADC instance |
Offsety | This parameter can be one of the following values: |
RigthShift | This parameter can be one of the following values: |
Returned | None |
Definition at line 3443 of file stm32h7xx_ll_adc.h.
Referenced by HAL_ADC_ConfigChannel().
__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 3138 of file stm32h7xx_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 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). |
OffsetLevel | Value between Min_Data=0x000 and Max_Data=0x1FFFFFF |
None |
Definition at line 3312 of file stm32h7xx_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_SetOffsetSaturation | ( | ADC_TypeDef * | ADCx, |
uint32_t | Offsety, | ||
uint32_t | OffsetSaturation | ||
) |
Set for the ADC selected offset number 1, 2, 3 or 4: choose offset saturation mode.
ADCx | ADC instance |
Offsety | This parameter can be one of the following values: |
OffsetSaturation | This parameter can be one of the following values: |
None |
Definition at line 3556 of file stm32h7xx_ll_adc.h.
References __ADC_PTR_REG_OFFSET.
Referenced by HAL_ADC_ConfigChannel(), and HAL_ADCEx_InjectedConfigChannel().
__STATIC_INLINE void LL_ADC_SetOffsetSign | ( | ADC_TypeDef * | ADCx, |
uint32_t | Offsety, | ||
uint32_t | OffsetSign | ||
) |
Set for the ADC selected offset number 1, 2, 3 or 4: choose offset sign.
ADCx | ADC instance |
Offsety | This parameter can be one of the following values: |
OffsetSign | This parameter can be one of the following values: |
None |
Definition at line 3620 of file stm32h7xx_ll_adc.h.
References __ADC_PTR_REG_OFFSET.
Referenced by HAL_ADC_ConfigChannel(), and HAL_ADCEx_InjectedConfigChannel().
__STATIC_INLINE void LL_ADC_SetOffsetSignedSaturation | ( | ADC_TypeDef * | ADCx, |
uint32_t | Offsety, | ||
uint32_t | OffsetSignedSaturation | ||
) |
Set signed saturation for the ADC selected offset number 1, 2, 3 or 4: signed offset saturation if enabled or disabled.
ADCx | ADC instance |
Offsety | This parameter can be one of the following values: |
OffsetSignedSaturation | This parameter can be one of the following values: |
Returned | None |
Definition at line 3485 of file stm32h7xx_ll_adc.h.
References __ADC_PTR_REG_OFFSET.
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 3689 of file stm32h7xx_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 2981 of file stm32h7xx_ll_adc.h.
References __LL_ADC12_RESOLUTION_TO_ADC3, and LL_ADC_RESOLUTION_8B.