|
STM32L4xx_HAL_Driver
1.14.0
|
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). More... | |
| __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). More... | |
| __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. More... | |
| __STATIC_INLINE uint32_t | LL_ADC_GetResolution (ADC_TypeDef *ADCx) |
| Get ADC resolution. Refer to reference manual for alignments formats dependencies to ADC resolutions. CFGR RES LL_ADC_GetResolution. More... | |
| __STATIC_INLINE void | LL_ADC_SetDataAlignment (ADC_TypeDef *ADCx, uint32_t DataAlignment) |
| Set ADC conversion data alignment. More... | |
| __STATIC_INLINE uint32_t | LL_ADC_GetDataAlignment (ADC_TypeDef *ADCx) |
| Get ADC conversion data alignment. More... | |
| __STATIC_INLINE void | LL_ADC_SetLowPowerMode (ADC_TypeDef *ADCx, uint32_t LowPowerMode) |
| Set ADC low power mode. More... | |
| __STATIC_INLINE uint32_t | LL_ADC_GetLowPowerMode (ADC_TypeDef *ADCx) |
| Get ADC low power mode: More... | |
| __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. More... | |
| __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) More... | |
| __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). More... | |
| __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. More... | |
| __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. OFR1 OFFSET1_EN LL_ADC_GetOffsetState OFR2 OFFSET2_EN LL_ADC_GetOffsetState OFR3 OFFSET3_EN LL_ADC_GetOffsetState OFR4 OFFSET4_EN LL_ADC_GetOffsetState. More... | |
| __STATIC_INLINE void | LL_ADC_SetSamplingTimeCommonConfig (ADC_TypeDef *ADCx, uint32_t SamplingTimeCommonConfig) |
| Set ADC sampling time common configuration impacting settings of sampling time channel wise. More... | |
| __STATIC_INLINE uint32_t | LL_ADC_GetSamplingTimeCommonConfig (ADC_TypeDef *ADCx) |
| Get ADC sampling time common configuration impacting settings of sampling time channel wise. SMPR1 SMPPLUS LL_ADC_GetSamplingTimeCommonConfig. More... | |
| __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 2591 of file stm32l4xx_ll_adc.h.
| __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 2669 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 2770 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 2934 of file stm32l4xx_ll_adc.h.
| __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 2960 of file stm32l4xx_ll_adc.h.
| __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. OFR1 OFFSET1_EN LL_ADC_GetOffsetState
OFR2 OFFSET2_EN LL_ADC_GetOffsetState
OFR3 OFFSET3_EN LL_ADC_GetOffsetState
OFR4 OFFSET4_EN LL_ADC_GetOffsetState.
| 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 3019 of file stm32l4xx_ll_adc.h.
| __STATIC_INLINE uint32_t LL_ADC_GetResolution | ( | ADC_TypeDef * | ADCx | ) |
Get ADC resolution. Refer to reference manual for alignments formats dependencies to ADC resolutions. CFGR RES LL_ADC_GetResolution.
| ADCx | ADC instance |
| Returned | value can be one of the following values:
|
Definition at line 2634 of file stm32l4xx_ll_adc.h.
| __STATIC_INLINE uint32_t LL_ADC_GetSamplingTimeCommonConfig | ( | ADC_TypeDef * | ADCx | ) |
Get ADC sampling time common configuration impacting settings of sampling time channel wise. SMPR1 SMPPLUS LL_ADC_GetSamplingTimeCommonConfig.
| ADCx | ADC instance |
| Returned | value can be one of the following values:
|
Definition at line 3055 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 2568 of file stm32l4xx_ll_adc.h.
| __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 2654 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 2722 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 2855 of file stm32l4xx_ll_adc.h.
| __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 2993 of file stm32l4xx_ll_adc.h.
| __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 2617 of file stm32l4xx_ll_adc.h.
| __STATIC_INLINE void LL_ADC_SetSamplingTimeCommonConfig | ( | ADC_TypeDef * | ADCx, |
| uint32_t | SamplingTimeCommonConfig | ||
| ) |
Set ADC sampling time common configuration impacting settings of sampling time channel wise.
| ADCx | ADC instance |
| SamplingTimeCommonConfig | This parameter can be one of the following values:
|
| None |
Definition at line 3041 of file stm32l4xx_ll_adc.h.