/hal_stm32-latest/stm32cube/stm32wb0x/drivers/include/ |
D | stm32wb0x_ll_adc.h | 1168 __STATIC_INLINE void LL_ADC_SetInputSamplingMode(ADC_TypeDef *ADCx, uint32_t SamplingMode) in LL_ADC_SetInputSamplingMode() argument 1170 MODIFY_REG(ADCx->CONF, ADC_CONF_ADC_CONT_1V2, SamplingMode); in LL_ADC_SetInputSamplingMode() 1181 __STATIC_INLINE uint32_t LL_ADC_GetInputSamplingMode(const ADC_TypeDef *ADCx) in LL_ADC_GetInputSamplingMode() argument 1183 return (uint32_t)(READ_BIT(ADCx->CONF, ADC_CONF_ADC_CONT_1V2)); in LL_ADC_GetInputSamplingMode() 1193 __STATIC_INLINE void LL_ADC_InvertOutputDiffModeEnable(ADC_TypeDef *ADCx) in LL_ADC_InvertOutputDiffModeEnable() argument 1195 SET_BIT(ADCx->CONF, ADC_CONF_BIT_INVERT_DIFF); in LL_ADC_InvertOutputDiffModeEnable() 1205 __STATIC_INLINE void LL_ADC_InvertOutputDiffModeDisable(ADC_TypeDef *ADCx) in LL_ADC_InvertOutputDiffModeDisable() argument 1207 CLEAR_BIT(ADCx->CONF, ADC_CONF_BIT_INVERT_DIFF); in LL_ADC_InvertOutputDiffModeDisable() 1217 __STATIC_INLINE uint32_t LL_ADC_IsInvertOutputDiffModeEnabled(const ADC_TypeDef *ADCx) in LL_ADC_IsInvertOutputDiffModeEnabled() argument 1219 …return ((READ_BIT(ADCx->CONF, ADC_CONF_BIT_INVERT_DIFF) == (ADC_CONF_BIT_INVERT_DIFF)) ? 1UL : 0UL… in LL_ADC_IsInvertOutputDiffModeEnabled() [all …]
|
/hal_stm32-latest/stm32cube/stm32wbaxx/drivers/include/ |
D | stm32wbaxx_ll_adc.h | 1808 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(const ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument 1814 return (uint32_t) &(ADCx->DR); in LL_ADC_DMA_GetRegAddr() 2033 __STATIC_INLINE void LL_ADC_SetCalibrationFactor(ADC_TypeDef *ADCx, uint32_t CalibrationFactor) in LL_ADC_SetCalibrationFactor() argument 2035 MODIFY_REG(ADCx->CALFACT, in LL_ADC_SetCalibrationFactor() 2049 __STATIC_INLINE uint32_t LL_ADC_GetCalibrationFactor(const ADC_TypeDef *ADCx) in LL_ADC_GetCalibrationFactor() argument 2051 return (uint32_t)(READ_BIT(ADCx->CALFACT, ADC_CALFACT_CALFACT)); in LL_ADC_GetCalibrationFactor() 2071 __STATIC_INLINE void LL_ADC_SetResolution(ADC_TypeDef *ADCx, uint32_t Resolution) in LL_ADC_SetResolution() argument 2073 MODIFY_REG(ADCx->CFGR1, ADC_CFGR1_RES, Resolution); in LL_ADC_SetResolution() 2088 __STATIC_INLINE uint32_t LL_ADC_GetResolution(const ADC_TypeDef *ADCx) in LL_ADC_GetResolution() argument 2090 return (uint32_t)(READ_BIT(ADCx->CFGR1, ADC_CFGR1_RES)); in LL_ADC_GetResolution() [all …]
|
/hal_stm32-latest/stm32cube/stm32wlxx/drivers/include/ |
D | stm32wlxx_ll_adc.h | 1675 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument 1681 return (uint32_t) &(ADCx->DR); in LL_ADC_DMA_GetRegAddr() 1926 __STATIC_INLINE void LL_ADC_SetClock(ADC_TypeDef *ADCx, uint32_t ClockSource) in LL_ADC_SetClock() argument 1928 MODIFY_REG(ADCx->CFGR2, ADC_CFGR2_CKMODE, ClockSource); in LL_ADC_SetClock() 1950 __STATIC_INLINE uint32_t LL_ADC_GetClock(ADC_TypeDef *ADCx) in LL_ADC_GetClock() argument 1952 return (uint32_t)(READ_BIT(ADCx->CFGR2, ADC_CFGR2_CKMODE)); in LL_ADC_GetClock() 1970 __STATIC_INLINE void LL_ADC_SetCalibrationFactor(ADC_TypeDef *ADCx, uint32_t CalibrationFactor) in LL_ADC_SetCalibrationFactor() argument 1972 MODIFY_REG(ADCx->CALFACT, in LL_ADC_SetCalibrationFactor() 1986 __STATIC_INLINE uint32_t LL_ADC_GetCalibrationFactor(ADC_TypeDef *ADCx) in LL_ADC_GetCalibrationFactor() argument 1988 return (uint32_t)(READ_BIT(ADCx->CALFACT, ADC_CALFACT_CALFACT)); in LL_ADC_GetCalibrationFactor() [all …]
|
/hal_stm32-latest/stm32cube/stm32u5xx/drivers/include/ |
D | stm32u5xx_ll_adc.h | 2936 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(const ADC_TypeDef *ADCx, uint32_t RegisterValue) in LL_ADC_DMA_GetRegAddr() argument 2943 data_reg_addr = (uint32_t) &(ADCx->DR); in LL_ADC_DMA_GetRegAddr() 2948 data_reg_addr = (uint32_t) &((__LL_ADC_COMMON_INSTANCE(ADCx))->CDR); in LL_ADC_DMA_GetRegAddr() 2979 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(const ADC_TypeDef *ADCx, uint32_t RegisterValue) in LL_ADC_DMA_GetRegAddr() argument 2985 return (uint32_t) &(ADCx->DR); in LL_ADC_DMA_GetRegAddr() 3232 __STATIC_INLINE void LL_ADC_SetCalibrationOffsetFactor(ADC_TypeDef *ADCx, uint32_t SingleDiff, in LL_ADC_SetCalibrationOffsetFactor() argument 3235 if (ADCx != ADC4) /* ADCx == ADC1 or ADC2 */ in LL_ADC_SetCalibrationOffsetFactor() 3239 MODIFY_REG(ADCx->CR, ADC_CR_CALINDEX, (0UL << ADC_CR_CALINDEX_Pos)); /* CalibIndex == 0 */ in LL_ADC_SetCalibrationOffsetFactor() 3240 MODIFY_REG(ADCx->CALFACT2, in LL_ADC_SetCalibrationOffsetFactor() 3245 SET_BIT(ADCx->CALFACT, ADC_CALFACT_LATCH_COEF); in LL_ADC_SetCalibrationOffsetFactor() [all …]
|
/hal_stm32-latest/stm32cube/stm32wbxx/drivers/include/ |
D | stm32wbxx_ll_adc.h | 2359 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(const ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument 2365 return (uint32_t)&(ADCx->DR); in LL_ADC_DMA_GetRegAddr() 2626 __STATIC_INLINE void LL_ADC_SetClock(ADC_TypeDef *ADCx, uint32_t ClockSource) in LL_ADC_SetClock() argument 2628 MODIFY_REG(ADCx->CFGR2, ADC_CFGR2_CKMODE, ClockSource); in LL_ADC_SetClock() 2650 __STATIC_INLINE uint32_t LL_ADC_GetClock(ADC_TypeDef *ADCx) in LL_ADC_GetClock() argument 2652 return (uint32_t)(READ_BIT(ADCx->CFGR2, ADC_CFGR2_CKMODE)); in LL_ADC_GetClock() 2684 __STATIC_INLINE void LL_ADC_SetCalibrationFactor(ADC_TypeDef *ADCx, uint32_t CalibrationFactor) in LL_ADC_SetCalibrationFactor() argument 2686 MODIFY_REG(ADCx->CALFACT, in LL_ADC_SetCalibrationFactor() 2724 __STATIC_INLINE void LL_ADC_SetCalibrationFactor(ADC_TypeDef *ADCx, uint32_t SingleDiff, uint32_t C… in LL_ADC_SetCalibrationFactor() argument 2726 MODIFY_REG(ADCx->CALFACT, in LL_ADC_SetCalibrationFactor() [all …]
|
/hal_stm32-latest/stm32cube/stm32u0xx/drivers/include/ |
D | stm32u0xx_ll_adc.h | 1943 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(const ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument 1949 return (uint32_t) &(ADCx->DR); in LL_ADC_DMA_GetRegAddr() 2194 __STATIC_INLINE void LL_ADC_SetClock(ADC_TypeDef *ADCx, uint32_t ClockSource) in LL_ADC_SetClock() argument 2196 MODIFY_REG(ADCx->CFGR2, ADC_CFGR2_CKMODE, ClockSource); in LL_ADC_SetClock() 2218 __STATIC_INLINE uint32_t LL_ADC_GetClock(const ADC_TypeDef *ADCx) in LL_ADC_GetClock() argument 2220 return (uint32_t)(READ_BIT(ADCx->CFGR2, ADC_CFGR2_CKMODE)); in LL_ADC_GetClock() 2238 __STATIC_INLINE void LL_ADC_SetCalibrationFactor(ADC_TypeDef *ADCx, uint32_t CalibrationFactor) in LL_ADC_SetCalibrationFactor() argument 2240 MODIFY_REG(ADCx->CALFACT, in LL_ADC_SetCalibrationFactor() 2254 __STATIC_INLINE uint32_t LL_ADC_GetCalibrationFactor(const ADC_TypeDef *ADCx) in LL_ADC_GetCalibrationFactor() argument 2256 return (uint32_t)(READ_BIT(ADCx->CALFACT, ADC_CALFACT_CALFACT)); in LL_ADC_GetCalibrationFactor() [all …]
|
/hal_stm32-latest/stm32cube/stm32c0xx/drivers/include/ |
D | stm32c0xx_ll_adc.h | 1958 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument 1964 return (uint32_t) &(ADCx->DR); in LL_ADC_DMA_GetRegAddr() 2203 __STATIC_INLINE void LL_ADC_SetClock(ADC_TypeDef *ADCx, uint32_t ClockSource) in LL_ADC_SetClock() argument 2205 MODIFY_REG(ADCx->CFGR2, ADC_CFGR2_CKMODE, ClockSource); in LL_ADC_SetClock() 2227 __STATIC_INLINE uint32_t LL_ADC_GetClock(ADC_TypeDef *ADCx) in LL_ADC_GetClock() argument 2229 return (uint32_t)(READ_BIT(ADCx->CFGR2, ADC_CFGR2_CKMODE)); in LL_ADC_GetClock() 2247 __STATIC_INLINE void LL_ADC_SetCalibrationFactor(ADC_TypeDef *ADCx, uint32_t CalibrationFactor) in LL_ADC_SetCalibrationFactor() argument 2249 MODIFY_REG(ADCx->CALFACT, in LL_ADC_SetCalibrationFactor() 2263 __STATIC_INLINE uint32_t LL_ADC_GetCalibrationFactor(ADC_TypeDef *ADCx) in LL_ADC_GetCalibrationFactor() argument 2265 return (uint32_t)(READ_BIT(ADCx->CALFACT, ADC_CALFACT_CALFACT)); in LL_ADC_GetCalibrationFactor() [all …]
|
/hal_stm32-latest/stm32cube/stm32g0xx/drivers/include/ |
D | stm32g0xx_ll_adc.h | 1953 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(const ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument 1959 return (uint32_t) &(ADCx->DR); in LL_ADC_DMA_GetRegAddr() 2241 __STATIC_INLINE void LL_ADC_SetClock(ADC_TypeDef *ADCx, uint32_t ClockSource) in LL_ADC_SetClock() argument 2243 MODIFY_REG(ADCx->CFGR2, ADC_CFGR2_CKMODE, ClockSource); in LL_ADC_SetClock() 2265 __STATIC_INLINE uint32_t LL_ADC_GetClock(const ADC_TypeDef *ADCx) in LL_ADC_GetClock() argument 2267 return (uint32_t)(READ_BIT(ADCx->CFGR2, ADC_CFGR2_CKMODE)); in LL_ADC_GetClock() 2285 __STATIC_INLINE void LL_ADC_SetCalibrationFactor(ADC_TypeDef *ADCx, uint32_t CalibrationFactor) in LL_ADC_SetCalibrationFactor() argument 2287 MODIFY_REG(ADCx->CALFACT, in LL_ADC_SetCalibrationFactor() 2301 __STATIC_INLINE uint32_t LL_ADC_GetCalibrationFactor(const ADC_TypeDef *ADCx) in LL_ADC_GetCalibrationFactor() argument 2303 return (uint32_t)(READ_BIT(ADCx->CALFACT, ADC_CALFACT_CALFACT)); in LL_ADC_GetCalibrationFactor() [all …]
|
/hal_stm32-latest/stm32cube/stm32h7xx/drivers/include/ |
D | stm32h7xx_ll_adc.h | 2603 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(const ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument 2610 data_reg_addr = (uint32_t) & (ADCx->DR); in LL_ADC_DMA_GetRegAddr() 2615 data_reg_addr = (uint32_t) & ((__LL_ADC_COMMON_INSTANCE(ADCx))->CDR); in LL_ADC_DMA_GetRegAddr() 2859 __STATIC_INLINE void LL_ADC_SetCalibrationOffsetFactor(ADC_TypeDef *ADCx, uint32_t SingleDiff, uint… in LL_ADC_SetCalibrationOffsetFactor() argument 2862 MODIFY_REG(ADCx->CALFACT_RES13, in LL_ADC_SetCalibrationOffsetFactor() 2866 MODIFY_REG(ADCx->CALFACT, in LL_ADC_SetCalibrationOffsetFactor() 2890 __STATIC_INLINE uint32_t LL_ADC_GetCalibrationOffsetFactor(const ADC_TypeDef *ADCx, uint32_t Single… in LL_ADC_GetCalibrationOffsetFactor() argument 2897 …return (uint32_t)(READ_BIT(ADCx->CALFACT_RES13, (SingleDiff & ADC_SINGLEDIFF_CALIB_FACTOR_MASK)) >… in LL_ADC_GetCalibrationOffsetFactor() 2899 …return (uint32_t)(READ_BIT(ADCx->CALFACT, (SingleDiff & ADC_SINGLEDIFF_CALIB_FACTOR_MASK)) >> ((Si… in LL_ADC_GetCalibrationOffsetFactor() 2925 __STATIC_INLINE void LL_ADC_SetCalibrationLinearFactor(ADC_TypeDef *ADCx, uint32_t LinearityWord, u… in LL_ADC_SetCalibrationLinearFactor() argument [all …]
|
/hal_stm32-latest/stm32cube/stm32h5xx/drivers/include/ |
D | stm32h5xx_ll_adc.h | 3016 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(const ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument 3023 data_reg_addr = (uint32_t) &(ADCx->DR); in LL_ADC_DMA_GetRegAddr() 3028 data_reg_addr = (uint32_t) &((__LL_ADC_COMMON_INSTANCE(ADCx))->CDR); in LL_ADC_DMA_GetRegAddr() 3034 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(const ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument 3040 return (uint32_t) &(ADCx->DR); in LL_ADC_DMA_GetRegAddr() 3256 __STATIC_INLINE void LL_ADC_EnableChannelVDDcore(ADC_TypeDef *ADCx) in LL_ADC_EnableChannelVDDcore() argument 3258 SET_BIT(ADCx->OR, ADC_OR_OP0); in LL_ADC_EnableChannelVDDcore() 3268 __STATIC_INLINE void LL_ADC_EnableChannelVDDcore(ADC_TypeDef *ADCx) in LL_ADC_EnableChannelVDDcore() argument 3270 SET_BIT(ADCx->OR, ADC_OR_OP1); in LL_ADC_EnableChannelVDDcore() 3283 __STATIC_INLINE void LL_ADC_DisableChannelVDDcore(ADC_TypeDef *ADCx) in LL_ADC_DisableChannelVDDcore() argument [all …]
|
/hal_stm32-latest/stm32cube/stm32h7rsxx/drivers/include/ |
D | stm32h7rsxx_ll_adc.h | 2956 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(const ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument 2963 data_reg_addr = (uint32_t) &(ADCx->DR); in LL_ADC_DMA_GetRegAddr() 2968 data_reg_addr = (uint32_t) &((__LL_ADC_COMMON_INSTANCE(ADCx))->CDR); in LL_ADC_DMA_GetRegAddr() 2974 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(const ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument 2980 return (uint32_t) &(ADCx->DR); in LL_ADC_DMA_GetRegAddr() 3210 __STATIC_INLINE void LL_ADC_SetPathInternalCh(ADC_TypeDef *ADCx, uint32_t PathInternal) in LL_ADC_SetPathInternalCh() argument 3212 MODIFY_REG(ADCx->OR, ADC_OR_OP0, PathInternal); in LL_ADC_SetPathInternalCh() 3238 __STATIC_INLINE void LL_ADC_SetPathInternalChAdd(ADC_TypeDef *ADCx, uint32_t PathInternal) in LL_ADC_SetPathInternalChAdd() argument 3240 SET_BIT(ADCx->OR, PathInternal); in LL_ADC_SetPathInternalChAdd() 3266 __STATIC_INLINE void LL_ADC_SetPathInternalChRem(ADC_TypeDef *ADCx, uint32_t PathInternal) in LL_ADC_SetPathInternalChRem() argument [all …]
|
/hal_stm32-latest/stm32cube/stm32n6xx/drivers/include/ |
D | stm32n6xx_ll_adc.h | 2817 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(const ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument 2824 data_reg_addr = (uint32_t)(&(ADCx->DR)); in LL_ADC_DMA_GetRegAddr() 2829 data_reg_addr = (uint32_t)(&((__LL_ADC_COMMON_INSTANCE(ADCx))->CDR)); in LL_ADC_DMA_GetRegAddr() 2835 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(const ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument 2841 return (uint32_t)(&(ADCx->DR)); in LL_ADC_DMA_GetRegAddr() 3010 __STATIC_INLINE void LL_ADC_SetPathInternalCh(ADC_TypeDef *ADCx, uint32_t PathInternal) in LL_ADC_SetPathInternalCh() argument 3012 MODIFY_REG(ADCx->OR, ADC_OR_OP2, (PathInternal >> ADC_PATH_INTERNAL_POS)); in LL_ADC_SetPathInternalCh() 3038 __STATIC_INLINE void LL_ADC_SetPathInternalChAdd(ADC_TypeDef *ADCx, uint32_t PathInternal) in LL_ADC_SetPathInternalChAdd() argument 3040 SET_BIT(ADCx->OR, (PathInternal >> ADC_PATH_INTERNAL_POS)); in LL_ADC_SetPathInternalChAdd() 3066 __STATIC_INLINE void LL_ADC_SetPathInternalChRem(ADC_TypeDef *ADCx, uint32_t PathInternal) in LL_ADC_SetPathInternalChRem() argument [all …]
|
/hal_stm32-latest/stm32cube/stm32l0xx/drivers/include/ |
D | stm32l0xx_ll_adc.h | 1639 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument 1645 return (uint32_t) & (ADCx->DR); in LL_ADC_DMA_GetRegAddr() 1869 __STATIC_INLINE void LL_ADC_SetClock(ADC_TypeDef *ADCx, uint32_t ClockSource) in LL_ADC_SetClock() argument 1871 MODIFY_REG(ADCx->CFGR2, ADC_CFGR2_CKMODE, ClockSource); in LL_ADC_SetClock() 1893 __STATIC_INLINE uint32_t LL_ADC_GetClock(ADC_TypeDef *ADCx) in LL_ADC_GetClock() argument 1895 return (uint32_t)(READ_BIT(ADCx->CFGR2, ADC_CFGR2_CKMODE)); in LL_ADC_GetClock() 1913 __STATIC_INLINE void LL_ADC_SetCalibrationFactor(ADC_TypeDef *ADCx, uint32_t CalibrationFactor) in LL_ADC_SetCalibrationFactor() argument 1915 MODIFY_REG(ADCx->CALFACT, in LL_ADC_SetCalibrationFactor() 1929 __STATIC_INLINE uint32_t LL_ADC_GetCalibrationFactor(ADC_TypeDef *ADCx) in LL_ADC_GetCalibrationFactor() argument 1931 return (uint32_t)(READ_BIT(ADCx->CALFACT, ADC_CALFACT_CALFACT)); in LL_ADC_GetCalibrationFactor() [all …]
|
/hal_stm32-latest/stm32cube/stm32mp1xx/drivers/include/ |
D | stm32mp1xx_ll_adc.h | 2241 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument 2248 data_reg_addr = (uint32_t) &(ADCx->DR); in LL_ADC_DMA_GetRegAddr() 2253 data_reg_addr = (uint32_t) &((__LL_ADC_COMMON_INSTANCE(ADCx))->CDR); in LL_ADC_DMA_GetRegAddr() 2259 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument 2265 return (uint32_t) &(ADCx->DR); in LL_ADC_DMA_GetRegAddr() 2554 __STATIC_INLINE void LL_ADC_SetCalibrationOffsetFactor(ADC_TypeDef *ADCx, uint32_t SingleDiff, uint… in LL_ADC_SetCalibrationOffsetFactor() argument 2556 MODIFY_REG(ADCx->CALFACT, in LL_ADC_SetCalibrationOffsetFactor() 2579 __STATIC_INLINE uint32_t LL_ADC_GetCalibrationOffsetFactor(ADC_TypeDef *ADCx, uint32_t SingleDiff) in LL_ADC_GetCalibrationOffsetFactor() argument 2585 return (uint32_t)(READ_BIT(ADCx->CALFACT, in LL_ADC_GetCalibrationOffsetFactor() 2612 __STATIC_INLINE void LL_ADC_SetCalibrationLinearFactor(ADC_TypeDef *ADCx, uint32_t LinearityWord, u… in LL_ADC_SetCalibrationLinearFactor() argument [all …]
|
/hal_stm32-latest/stm32cube/stm32l4xx/drivers/include/ |
D | stm32l4xx_ll_adc.h | 3116 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(const ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument 3123 data_reg_addr = (uint32_t) &(ADCx->DR); in LL_ADC_DMA_GetRegAddr() 3128 data_reg_addr = (uint32_t) &((__LL_ADC_COMMON_INSTANCE(ADCx))->CDR); in LL_ADC_DMA_GetRegAddr() 3134 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(const ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument 3140 return (uint32_t) &(ADCx->DR); in LL_ADC_DMA_GetRegAddr() 3378 __STATIC_INLINE void LL_ADC_SetCalibrationFactor(ADC_TypeDef *ADCx, uint32_t SingleDiff, uint32_t C… in LL_ADC_SetCalibrationFactor() argument 3380 MODIFY_REG(ADCx->CALFACT, in LL_ADC_SetCalibrationFactor() 3403 __STATIC_INLINE uint32_t LL_ADC_GetCalibrationFactor(const ADC_TypeDef *ADCx, uint32_t SingleDiff) in LL_ADC_GetCalibrationFactor() argument 3409 return (uint32_t)(READ_BIT(ADCx->CALFACT, in LL_ADC_GetCalibrationFactor() 3432 __STATIC_INLINE void LL_ADC_SetResolution(ADC_TypeDef *ADCx, uint32_t Resolution) in LL_ADC_SetResolution() argument [all …]
|
/hal_stm32-latest/stm32cube/stm32l5xx/drivers/include/ |
D | stm32l5xx_ll_adc.h | 2888 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(const ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument 2895 data_reg_addr = (uint32_t) &(ADCx->DR); in LL_ADC_DMA_GetRegAddr() 2900 data_reg_addr = (uint32_t) &((__LL_ADC_COMMON_INSTANCE(ADCx))->CDR); in LL_ADC_DMA_GetRegAddr() 2906 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(const ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument 2912 return (uint32_t) &(ADCx->DR); in LL_ADC_DMA_GetRegAddr() 3168 __STATIC_INLINE void LL_ADC_SetCalibrationFactor(ADC_TypeDef *ADCx, uint32_t SingleDiff, uint32_t C… in LL_ADC_SetCalibrationFactor() argument 3170 MODIFY_REG(ADCx->CALFACT, in LL_ADC_SetCalibrationFactor() 3193 __STATIC_INLINE uint32_t LL_ADC_GetCalibrationFactor(const ADC_TypeDef *ADCx, uint32_t SingleDiff) in LL_ADC_GetCalibrationFactor() argument 3199 return (uint32_t)(READ_BIT(ADCx->CALFACT, in LL_ADC_GetCalibrationFactor() 3222 __STATIC_INLINE void LL_ADC_SetResolution(ADC_TypeDef *ADCx, uint32_t Resolution) in LL_ADC_SetResolution() argument [all …]
|
/hal_stm32-latest/stm32cube/stm32f0xx/drivers/include/ |
D | stm32f0xx_ll_adc.h | 1410 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument 1416 return (uint32_t)&(ADCx->DR); in LL_ADC_DMA_GetRegAddr() 1524 __STATIC_INLINE void LL_ADC_SetClock(ADC_TypeDef *ADCx, uint32_t ClockSource) in LL_ADC_SetClock() argument 1526 MODIFY_REG(ADCx->CFGR2, ADC_CFGR2_CKMODE, ClockSource); in LL_ADC_SetClock() 1540 __STATIC_INLINE uint32_t LL_ADC_GetClock(ADC_TypeDef *ADCx) in LL_ADC_GetClock() argument 1542 return (uint32_t)(READ_BIT(ADCx->CFGR2, ADC_CFGR2_CKMODE)); in LL_ADC_GetClock() 1562 __STATIC_INLINE void LL_ADC_SetResolution(ADC_TypeDef *ADCx, uint32_t Resolution) in LL_ADC_SetResolution() argument 1564 MODIFY_REG(ADCx->CFGR1, ADC_CFGR1_RES, Resolution); in LL_ADC_SetResolution() 1579 __STATIC_INLINE uint32_t LL_ADC_GetResolution(ADC_TypeDef *ADCx) in LL_ADC_GetResolution() argument 1581 return (uint32_t)(READ_BIT(ADCx->CFGR1, ADC_CFGR1_RES)); in LL_ADC_GetResolution() [all …]
|
/hal_stm32-latest/stm32cube/stm32g4xx/drivers/include/ |
D | stm32g4xx_ll_adc.h | 3608 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(const ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument 3615 data_reg_addr = (uint32_t) &(ADCx->DR); in LL_ADC_DMA_GetRegAddr() 3620 data_reg_addr = (uint32_t) &((__LL_ADC_COMMON_INSTANCE(ADCx))->CDR); in LL_ADC_DMA_GetRegAddr() 3626 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(const ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument 3632 return (uint32_t) &(ADCx->DR); in LL_ADC_DMA_GetRegAddr() 3870 __STATIC_INLINE void LL_ADC_SetCalibrationFactor(ADC_TypeDef *ADCx, uint32_t SingleDiff, uint32_t C… in LL_ADC_SetCalibrationFactor() argument 3872 MODIFY_REG(ADCx->CALFACT, in LL_ADC_SetCalibrationFactor() 3895 __STATIC_INLINE uint32_t LL_ADC_GetCalibrationFactor(const ADC_TypeDef *ADCx, uint32_t SingleDiff) in LL_ADC_GetCalibrationFactor() argument 3901 return (uint32_t)(READ_BIT(ADCx->CALFACT, in LL_ADC_GetCalibrationFactor() 3924 __STATIC_INLINE void LL_ADC_SetResolution(ADC_TypeDef *ADCx, uint32_t Resolution) in LL_ADC_SetResolution() argument [all …]
|
/hal_stm32-latest/stm32cube/stm32f3xx/drivers/include/ |
D | stm32f3xx_ll_adc.h | 2492 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument 2499 data_reg_addr = (uint32_t)&(ADCx->DR); in LL_ADC_DMA_GetRegAddr() 2504 data_reg_addr = (uint32_t)&((__LL_ADC_COMMON_INSTANCE(ADCx))->CDR); in LL_ADC_DMA_GetRegAddr() 2510 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument 2516 return (uint32_t)&(ADCx->DR); in LL_ADC_DMA_GetRegAddr() 2674 __STATIC_INLINE void LL_ADC_SetCalibrationFactor(ADC_TypeDef *ADCx, uint32_t SingleDiff, uint32_t C… in LL_ADC_SetCalibrationFactor() argument 2676 MODIFY_REG(ADCx->CALFACT, in LL_ADC_SetCalibrationFactor() 2697 __STATIC_INLINE uint32_t LL_ADC_GetCalibrationFactor(ADC_TypeDef *ADCx, uint32_t SingleDiff) in LL_ADC_GetCalibrationFactor() argument 2703 …return (uint32_t)(READ_BIT(ADCx->CALFACT, (SingleDiff & ADC_SINGLEDIFF_CALIB_FACTOR_MASK)) >> POSI… in LL_ADC_GetCalibrationFactor() 2723 __STATIC_INLINE void LL_ADC_SetResolution(ADC_TypeDef *ADCx, uint32_t Resolution) in LL_ADC_SetResolution() argument [all …]
|
/hal_stm32-latest/stm32cube/stm32l1xx/drivers/include/ |
D | stm32l1xx_ll_adc.h | 2147 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument 2150 return (uint32_t)&(ADCx->DR); in LL_ADC_DMA_GetRegAddr() 2270 __STATIC_INLINE void LL_ADC_SetResolution(ADC_TypeDef *ADCx, uint32_t Resolution) in LL_ADC_SetResolution() argument 2272 MODIFY_REG(ADCx->CR1, ADC_CR1_RES, Resolution); in LL_ADC_SetResolution() 2287 __STATIC_INLINE uint32_t LL_ADC_GetResolution(ADC_TypeDef *ADCx) in LL_ADC_GetResolution() argument 2289 return (uint32_t)(READ_BIT(ADCx->CR1, ADC_CR1_RES)); in LL_ADC_GetResolution() 2303 __STATIC_INLINE void LL_ADC_SetDataAlignment(ADC_TypeDef *ADCx, uint32_t DataAlignment) in LL_ADC_SetDataAlignment() argument 2305 MODIFY_REG(ADCx->CR2, ADC_CR2_ALIGN, DataAlignment); in LL_ADC_SetDataAlignment() 2318 __STATIC_INLINE uint32_t LL_ADC_GetDataAlignment(ADC_TypeDef *ADCx) in LL_ADC_GetDataAlignment() argument 2320 return (uint32_t)(READ_BIT(ADCx->CR2, ADC_CR2_ALIGN)); in LL_ADC_GetDataAlignment() [all …]
|
/hal_stm32-latest/stm32cube/stm32f2xx/drivers/include/ |
D | stm32f2xx_ll_adc.h | 1722 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument 1729 data_reg_addr = (uint32_t)&(ADCx->DR); in LL_ADC_DMA_GetRegAddr() 1734 data_reg_addr = (uint32_t)&((__LL_ADC_COMMON_INSTANCE(ADCx))->CDR); in LL_ADC_DMA_GetRegAddr() 1856 __STATIC_INLINE void LL_ADC_SetResolution(ADC_TypeDef *ADCx, uint32_t Resolution) in LL_ADC_SetResolution() argument 1858 MODIFY_REG(ADCx->CR1, ADC_CR1_RES, Resolution); in LL_ADC_SetResolution() 1873 __STATIC_INLINE uint32_t LL_ADC_GetResolution(ADC_TypeDef *ADCx) in LL_ADC_GetResolution() argument 1875 return (uint32_t)(READ_BIT(ADCx->CR1, ADC_CR1_RES)); in LL_ADC_GetResolution() 1889 __STATIC_INLINE void LL_ADC_SetDataAlignment(ADC_TypeDef *ADCx, uint32_t DataAlignment) in LL_ADC_SetDataAlignment() argument 1891 MODIFY_REG(ADCx->CR2, ADC_CR2_ALIGN, DataAlignment); in LL_ADC_SetDataAlignment() 1904 __STATIC_INLINE uint32_t LL_ADC_GetDataAlignment(ADC_TypeDef *ADCx) in LL_ADC_GetDataAlignment() argument [all …]
|
/hal_stm32-latest/stm32cube/stm32f7xx/drivers/include/ |
D | stm32f7xx_ll_adc.h | 1832 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument 1839 data_reg_addr = (uint32_t)&(ADCx->DR); in LL_ADC_DMA_GetRegAddr() 1844 data_reg_addr = (uint32_t)&((__LL_ADC_COMMON_INSTANCE(ADCx))->CDR); in LL_ADC_DMA_GetRegAddr() 1966 __STATIC_INLINE void LL_ADC_SetResolution(ADC_TypeDef *ADCx, uint32_t Resolution) in LL_ADC_SetResolution() argument 1968 MODIFY_REG(ADCx->CR1, ADC_CR1_RES, Resolution); in LL_ADC_SetResolution() 1983 __STATIC_INLINE uint32_t LL_ADC_GetResolution(ADC_TypeDef *ADCx) in LL_ADC_GetResolution() argument 1985 return (uint32_t)(READ_BIT(ADCx->CR1, ADC_CR1_RES)); in LL_ADC_GetResolution() 1999 __STATIC_INLINE void LL_ADC_SetDataAlignment(ADC_TypeDef *ADCx, uint32_t DataAlignment) in LL_ADC_SetDataAlignment() argument 2001 MODIFY_REG(ADCx->CR2, ADC_CR2_ALIGN, DataAlignment); in LL_ADC_SetDataAlignment() 2014 __STATIC_INLINE uint32_t LL_ADC_GetDataAlignment(ADC_TypeDef *ADCx) in LL_ADC_GetDataAlignment() argument [all …]
|
/hal_stm32-latest/stm32cube/stm32f1xx/drivers/include/ |
D | stm32f1xx_ll_adc.h | 1600 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument 1607 data_reg_addr = (uint32_t)&(ADCx->DR); in LL_ADC_DMA_GetRegAddr() 1618 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument 1621 return (uint32_t)&(ADCx->DR); in LL_ADC_DMA_GetRegAddr() 1701 __STATIC_INLINE void LL_ADC_SetDataAlignment(ADC_TypeDef *ADCx, uint32_t DataAlignment) in LL_ADC_SetDataAlignment() argument 1703 MODIFY_REG(ADCx->CR2, ADC_CR2_ALIGN, DataAlignment); in LL_ADC_SetDataAlignment() 1716 __STATIC_INLINE uint32_t LL_ADC_GetDataAlignment(ADC_TypeDef *ADCx) in LL_ADC_GetDataAlignment() argument 1718 return (uint32_t)(READ_BIT(ADCx->CR2, ADC_CR2_ALIGN)); in LL_ADC_GetDataAlignment() 1742 __STATIC_INLINE void LL_ADC_SetSequencersScanMode(ADC_TypeDef *ADCx, uint32_t ScanMode) in LL_ADC_SetSequencersScanMode() argument 1744 MODIFY_REG(ADCx->CR1, ADC_CR1_SCAN, ScanMode); in LL_ADC_SetSequencersScanMode() [all …]
|
/hal_stm32-latest/stm32cube/stm32f4xx/drivers/include/ |
D | stm32f4xx_ll_adc.h | 1862 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(const ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument 1869 data_reg_addr = (uint32_t) & (ADCx->DR); in LL_ADC_DMA_GetRegAddr() 1874 data_reg_addr = (uint32_t) & ((__LL_ADC_COMMON_INSTANCE(ADCx))->CDR); in LL_ADC_DMA_GetRegAddr() 1880 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument 1886 return (uint32_t) & (ADCx->DR); in LL_ADC_DMA_GetRegAddr() 2006 __STATIC_INLINE void LL_ADC_SetResolution(ADC_TypeDef *ADCx, uint32_t Resolution) in LL_ADC_SetResolution() argument 2008 MODIFY_REG(ADCx->CR1, ADC_CR1_RES, Resolution); in LL_ADC_SetResolution() 2023 __STATIC_INLINE uint32_t LL_ADC_GetResolution(const ADC_TypeDef *ADCx) in LL_ADC_GetResolution() argument 2025 return (uint32_t)(READ_BIT(ADCx->CR1, ADC_CR1_RES)); in LL_ADC_GetResolution() 2039 __STATIC_INLINE void LL_ADC_SetDataAlignment(ADC_TypeDef *ADCx, uint32_t DataAlignment) in LL_ADC_SetDataAlignment() argument [all …]
|
/hal_stm32-latest/stm32cube/stm32h7xx/drivers/src/ |
D | stm32h7xx_ll_adc.c | 504 ErrorStatus LL_ADC_DeInit(ADC_TypeDef *ADCx) in LL_ADC_DeInit() argument 511 assert_param(IS_ADC_ALL_INSTANCE(ADCx)); in LL_ADC_DeInit() 514 if (LL_ADC_IsEnabled(ADCx) == 1UL) in LL_ADC_DeInit() 517 if (LL_ADC_REG_IsConversionOngoing(ADCx) != 0UL) in LL_ADC_DeInit() 519 if (LL_ADC_REG_IsStopConversionOngoing(ADCx) == 0UL) in LL_ADC_DeInit() 521 LL_ADC_REG_StopConversion(ADCx); in LL_ADC_DeInit() 526 if (LL_ADC_INJ_IsConversionOngoing(ADCx) != 0UL) in LL_ADC_DeInit() 528 if (LL_ADC_INJ_IsStopConversionOngoing(ADCx) == 0UL) in LL_ADC_DeInit() 530 LL_ADC_INJ_StopConversion(ADCx); in LL_ADC_DeInit() 536 while ((LL_ADC_REG_IsStopConversionOngoing(ADCx) in LL_ADC_DeInit() [all …]
|