Home
last modified time | relevance | path

Searched refs:ADCx (Results 1 – 25 of 49) sorted by relevance

12

/hal_stm32-3.6.0/stm32cube/stm32wbaxx/drivers/include/
Dstm32wbaxx_ll_adc.h1831 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(const ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument
1837 return (uint32_t) &(ADCx->DR); in LL_ADC_DMA_GetRegAddr()
2056 __STATIC_INLINE void LL_ADC_SetCalibrationFactor(ADC_TypeDef *ADCx, uint32_t CalibrationFactor) in LL_ADC_SetCalibrationFactor() argument
2058 MODIFY_REG(ADCx->CALFACT, in LL_ADC_SetCalibrationFactor()
2072 __STATIC_INLINE uint32_t LL_ADC_GetCalibrationFactor(const ADC_TypeDef *ADCx) in LL_ADC_GetCalibrationFactor() argument
2074 return (uint32_t)(READ_BIT(ADCx->CALFACT, ADC_CALFACT_CALFACT)); in LL_ADC_GetCalibrationFactor()
2094 __STATIC_INLINE void LL_ADC_SetResolution(ADC_TypeDef *ADCx, uint32_t Resolution) in LL_ADC_SetResolution() argument
2096 MODIFY_REG(ADCx->CFGR1, ADC_CFGR1_RES, Resolution); in LL_ADC_SetResolution()
2111 __STATIC_INLINE uint32_t LL_ADC_GetResolution(const ADC_TypeDef *ADCx) in LL_ADC_GetResolution() argument
2113 return (uint32_t)(READ_BIT(ADCx->CFGR1, ADC_CFGR1_RES)); in LL_ADC_GetResolution()
[all …]
/hal_stm32-3.6.0/stm32cube/stm32wlxx/drivers/include/
Dstm32wlxx_ll_adc.h1675 __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-3.6.0/stm32cube/stm32u5xx/drivers/include/
Dstm32u5xx_ll_adc.h2936 __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-3.6.0/stm32cube/stm32wbxx/drivers/include/
Dstm32wbxx_ll_adc.h2359 __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-3.6.0/stm32cube/stm32g0xx/drivers/include/
Dstm32g0xx_ll_adc.h1877 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument
1883 return (uint32_t) &(ADCx->DR); in LL_ADC_DMA_GetRegAddr()
2165 __STATIC_INLINE void LL_ADC_SetClock(ADC_TypeDef *ADCx, uint32_t ClockSource) in LL_ADC_SetClock() argument
2167 MODIFY_REG(ADCx->CFGR2, ADC_CFGR2_CKMODE, ClockSource); in LL_ADC_SetClock()
2189 __STATIC_INLINE uint32_t LL_ADC_GetClock(ADC_TypeDef *ADCx) in LL_ADC_GetClock() argument
2191 return (uint32_t)(READ_BIT(ADCx->CFGR2, ADC_CFGR2_CKMODE)); in LL_ADC_GetClock()
2209 __STATIC_INLINE void LL_ADC_SetCalibrationFactor(ADC_TypeDef *ADCx, uint32_t CalibrationFactor) in LL_ADC_SetCalibrationFactor() argument
2211 MODIFY_REG(ADCx->CALFACT, in LL_ADC_SetCalibrationFactor()
2225 __STATIC_INLINE uint32_t LL_ADC_GetCalibrationFactor(ADC_TypeDef *ADCx) in LL_ADC_GetCalibrationFactor() argument
2227 return (uint32_t)(READ_BIT(ADCx->CALFACT, ADC_CALFACT_CALFACT)); in LL_ADC_GetCalibrationFactor()
[all …]
/hal_stm32-3.6.0/stm32cube/stm32c0xx/drivers/include/
Dstm32c0xx_ll_adc.h1632 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument
1638 return (uint32_t) &(ADCx->DR); in LL_ADC_DMA_GetRegAddr()
1876 __STATIC_INLINE void LL_ADC_SetClock(ADC_TypeDef *ADCx, uint32_t ClockSource) in LL_ADC_SetClock() argument
1878 MODIFY_REG(ADCx->CFGR2, ADC_CFGR2_CKMODE, ClockSource); in LL_ADC_SetClock()
1900 __STATIC_INLINE uint32_t LL_ADC_GetClock(ADC_TypeDef *ADCx) in LL_ADC_GetClock() argument
1902 return (uint32_t)(READ_BIT(ADCx->CFGR2, ADC_CFGR2_CKMODE)); in LL_ADC_GetClock()
1920 __STATIC_INLINE void LL_ADC_SetCalibrationFactor(ADC_TypeDef *ADCx, uint32_t CalibrationFactor) in LL_ADC_SetCalibrationFactor() argument
1922 MODIFY_REG(ADCx->CALFACT, in LL_ADC_SetCalibrationFactor()
1936 __STATIC_INLINE uint32_t LL_ADC_GetCalibrationFactor(ADC_TypeDef *ADCx) in LL_ADC_GetCalibrationFactor() argument
1938 return (uint32_t)(READ_BIT(ADCx->CALFACT, ADC_CALFACT_CALFACT)); in LL_ADC_GetCalibrationFactor()
[all …]
/hal_stm32-3.6.0/stm32cube/stm32h7xx/drivers/include/
Dstm32h7xx_ll_adc.h2596 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument
2603 data_reg_addr = (uint32_t) & (ADCx->DR); in LL_ADC_DMA_GetRegAddr()
2608 data_reg_addr = (uint32_t) & ((__LL_ADC_COMMON_INSTANCE(ADCx))->CDR); in LL_ADC_DMA_GetRegAddr()
2852 __STATIC_INLINE void LL_ADC_SetCalibrationOffsetFactor(ADC_TypeDef *ADCx, uint32_t SingleDiff, uint… in LL_ADC_SetCalibrationOffsetFactor() argument
2855 MODIFY_REG(ADCx->CALFACT_RES13, in LL_ADC_SetCalibrationOffsetFactor()
2859 MODIFY_REG(ADCx->CALFACT, in LL_ADC_SetCalibrationOffsetFactor()
2883 __STATIC_INLINE uint32_t LL_ADC_GetCalibrationOffsetFactor(ADC_TypeDef *ADCx, uint32_t SingleDiff) in LL_ADC_GetCalibrationOffsetFactor() argument
2890 …return (uint32_t)(READ_BIT(ADCx->CALFACT_RES13, (SingleDiff & ADC_SINGLEDIFF_CALIB_FACTOR_MASK)) >… in LL_ADC_GetCalibrationOffsetFactor()
2892 …return (uint32_t)(READ_BIT(ADCx->CALFACT, (SingleDiff & ADC_SINGLEDIFF_CALIB_FACTOR_MASK)) >> ((Si… in LL_ADC_GetCalibrationOffsetFactor()
2918 __STATIC_INLINE void LL_ADC_SetCalibrationLinearFactor(ADC_TypeDef *ADCx, uint32_t LinearityWord, u… in LL_ADC_SetCalibrationLinearFactor() argument
[all …]
/hal_stm32-3.6.0/stm32cube/stm32h5xx/drivers/include/
Dstm32h5xx_ll_adc.h3003 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(const ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument
3010 data_reg_addr = (uint32_t) &(ADCx->DR); in LL_ADC_DMA_GetRegAddr()
3015 data_reg_addr = (uint32_t) &((__LL_ADC_COMMON_INSTANCE(ADCx))->CDR); in LL_ADC_DMA_GetRegAddr()
3021 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(const ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument
3027 return (uint32_t) &(ADCx->DR); in LL_ADC_DMA_GetRegAddr()
3243 __STATIC_INLINE void LL_ADC_EnableChannelVDDcore(ADC_TypeDef *ADCx) in LL_ADC_EnableChannelVDDcore() argument
3245 SET_BIT(ADCx->OR, ADC_OR_OP0); in LL_ADC_EnableChannelVDDcore()
3255 __STATIC_INLINE void LL_ADC_EnableChannelVDDcore(ADC_TypeDef *ADCx) in LL_ADC_EnableChannelVDDcore() argument
3257 SET_BIT(ADCx->OR, ADC_OR_OP1); in LL_ADC_EnableChannelVDDcore()
3270 __STATIC_INLINE void LL_ADC_DisableChannelVDDcore(ADC_TypeDef *ADCx) in LL_ADC_DisableChannelVDDcore() argument
[all …]
/hal_stm32-3.6.0/stm32cube/stm32l0xx/drivers/include/
Dstm32l0xx_ll_adc.h1639 __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-3.6.0/stm32cube/stm32mp1xx/drivers/include/
Dstm32mp1xx_ll_adc.h2241 __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-3.6.0/stm32cube/stm32l4xx/drivers/include/
Dstm32l4xx_ll_adc.h3116 __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-3.6.0/stm32cube/stm32l5xx/drivers/include/
Dstm32l5xx_ll_adc.h2888 __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-3.6.0/stm32cube/stm32f0xx/drivers/include/
Dstm32f0xx_ll_adc.h1410 __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-3.6.0/stm32cube/stm32g4xx/drivers/include/
Dstm32g4xx_ll_adc.h2662 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument
2669 data_reg_addr = (uint32_t) &(ADCx->DR); in LL_ADC_DMA_GetRegAddr()
2674 data_reg_addr = (uint32_t) &((__LL_ADC_COMMON_INSTANCE(ADCx))->CDR); in LL_ADC_DMA_GetRegAddr()
2680 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument
2686 return (uint32_t) &(ADCx->DR); in LL_ADC_DMA_GetRegAddr()
2921 __STATIC_INLINE void LL_ADC_SetCalibrationFactor(ADC_TypeDef *ADCx, uint32_t SingleDiff, uint32_t C… in LL_ADC_SetCalibrationFactor() argument
2923 MODIFY_REG(ADCx->CALFACT, in LL_ADC_SetCalibrationFactor()
2944 __STATIC_INLINE uint32_t LL_ADC_GetCalibrationFactor(ADC_TypeDef *ADCx, uint32_t SingleDiff) in LL_ADC_GetCalibrationFactor() argument
2950 return (uint32_t)(READ_BIT(ADCx->CALFACT, in LL_ADC_GetCalibrationFactor()
2972 __STATIC_INLINE void LL_ADC_SetResolution(ADC_TypeDef *ADCx, uint32_t Resolution) in LL_ADC_SetResolution() argument
[all …]
/hal_stm32-3.6.0/stm32cube/stm32f3xx/drivers/include/
Dstm32f3xx_ll_adc.h2492 __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-3.6.0/stm32cube/stm32l1xx/drivers/include/
Dstm32l1xx_ll_adc.h2147 __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-3.6.0/stm32cube/stm32f7xx/drivers/include/
Dstm32f7xx_ll_adc.h1832 __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-3.6.0/stm32cube/stm32f2xx/drivers/include/
Dstm32f2xx_ll_adc.h1723 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(ADC_TypeDef *ADCx, uint32_t Register) in LL_ADC_DMA_GetRegAddr() argument
1730 data_reg_addr = (uint32_t)&(ADCx->DR); in LL_ADC_DMA_GetRegAddr()
1735 data_reg_addr = (uint32_t)&((__LL_ADC_COMMON_INSTANCE(ADCx))->CDR); in LL_ADC_DMA_GetRegAddr()
1857 __STATIC_INLINE void LL_ADC_SetResolution(ADC_TypeDef *ADCx, uint32_t Resolution) in LL_ADC_SetResolution() argument
1859 MODIFY_REG(ADCx->CR1, ADC_CR1_RES, Resolution); in LL_ADC_SetResolution()
1874 __STATIC_INLINE uint32_t LL_ADC_GetResolution(ADC_TypeDef *ADCx) in LL_ADC_GetResolution() argument
1876 return (uint32_t)(READ_BIT(ADCx->CR1, ADC_CR1_RES)); in LL_ADC_GetResolution()
1890 __STATIC_INLINE void LL_ADC_SetDataAlignment(ADC_TypeDef *ADCx, uint32_t DataAlignment) in LL_ADC_SetDataAlignment() argument
1892 MODIFY_REG(ADCx->CR2, ADC_CR2_ALIGN, DataAlignment); in LL_ADC_SetDataAlignment()
1905 __STATIC_INLINE uint32_t LL_ADC_GetDataAlignment(ADC_TypeDef *ADCx) in LL_ADC_GetDataAlignment() argument
[all …]
/hal_stm32-3.6.0/stm32cube/stm32f1xx/drivers/include/
Dstm32f1xx_ll_adc.h1600 __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-3.6.0/stm32cube/stm32f4xx/drivers/include/
Dstm32f4xx_ll_adc.h1862 __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(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
1883 return (uint32_t)&(ADCx->DR); in LL_ADC_DMA_GetRegAddr()
2003 __STATIC_INLINE void LL_ADC_SetResolution(ADC_TypeDef *ADCx, uint32_t Resolution) in LL_ADC_SetResolution() argument
2005 MODIFY_REG(ADCx->CR1, ADC_CR1_RES, Resolution); in LL_ADC_SetResolution()
2020 __STATIC_INLINE uint32_t LL_ADC_GetResolution(ADC_TypeDef *ADCx) in LL_ADC_GetResolution() argument
2022 return (uint32_t)(READ_BIT(ADCx->CR1, ADC_CR1_RES)); in LL_ADC_GetResolution()
2036 __STATIC_INLINE void LL_ADC_SetDataAlignment(ADC_TypeDef *ADCx, uint32_t DataAlignment) in LL_ADC_SetDataAlignment() argument
[all …]
/hal_stm32-3.6.0/stm32cube/stm32h7xx/drivers/src/
Dstm32h7xx_ll_adc.c504 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()
519 LL_ADC_REG_SetTriggerSource(ADCx, LL_ADC_REG_TRIG_SOFTWARE); in LL_ADC_DeInit()
522 if (LL_ADC_REG_IsConversionOngoing(ADCx) != 0UL) in LL_ADC_DeInit()
524 if (LL_ADC_REG_IsStopConversionOngoing(ADCx) == 0UL) in LL_ADC_DeInit()
526 LL_ADC_REG_StopConversion(ADCx); in LL_ADC_DeInit()
533 LL_ADC_INJ_SetTriggerSource(ADCx, LL_ADC_INJ_TRIG_SOFTWARE); in LL_ADC_DeInit()
536 if (LL_ADC_INJ_IsConversionOngoing(ADCx) != 0UL) in LL_ADC_DeInit()
538 if (LL_ADC_INJ_IsStopConversionOngoing(ADCx) == 0UL) in LL_ADC_DeInit()
[all …]
/hal_stm32-3.6.0/stm32cube/stm32wbxx/drivers/src/
Dstm32wbxx_ll_adc.c455 ErrorStatus LL_ADC_DeInit(ADC_TypeDef *ADCx) in LL_ADC_DeInit() argument
462 assert_param(IS_ADC_ALL_INSTANCE(ADCx)); in LL_ADC_DeInit()
465 if (LL_ADC_IsEnabled(ADCx) == 1UL) in LL_ADC_DeInit()
470 LL_ADC_REG_SetTriggerSource(ADCx, LL_ADC_REG_TRIG_SOFTWARE); in LL_ADC_DeInit()
473 if (LL_ADC_REG_IsConversionOngoing(ADCx) != 0UL) in LL_ADC_DeInit()
475 if (LL_ADC_REG_IsStopConversionOngoing(ADCx) == 0UL) in LL_ADC_DeInit()
477 LL_ADC_REG_StopConversion(ADCx); in LL_ADC_DeInit()
485 LL_ADC_INJ_SetTriggerSource(ADCx, LL_ADC_INJ_TRIG_SOFTWARE); in LL_ADC_DeInit()
488 if (LL_ADC_INJ_IsConversionOngoing(ADCx) != 0UL) in LL_ADC_DeInit()
490 if (LL_ADC_INJ_IsStopConversionOngoing(ADCx) == 0UL) in LL_ADC_DeInit()
[all …]
/hal_stm32-3.6.0/stm32cube/stm32f3xx/drivers/src/
Dstm32f3xx_ll_adc.c752 ErrorStatus LL_ADC_DeInit(ADC_TypeDef *ADCx) in LL_ADC_DeInit() argument
759 assert_param(IS_ADC_ALL_INSTANCE(ADCx)); in LL_ADC_DeInit()
762 if(LL_ADC_IsEnabled(ADCx) == 1U) in LL_ADC_DeInit()
767 LL_ADC_REG_SetTriggerSource(ADCx, LL_ADC_REG_TRIG_SOFTWARE); in LL_ADC_DeInit()
770 if(LL_ADC_REG_IsConversionOngoing(ADCx) != 0U) in LL_ADC_DeInit()
772 if(LL_ADC_REG_IsStopConversionOngoing(ADCx) == 0U) in LL_ADC_DeInit()
774 LL_ADC_REG_StopConversion(ADCx); in LL_ADC_DeInit()
781 LL_ADC_INJ_SetTriggerSource(ADCx, LL_ADC_INJ_TRIG_SOFTWARE); in LL_ADC_DeInit()
784 if(LL_ADC_INJ_IsConversionOngoing(ADCx) != 0U) in LL_ADC_DeInit()
786 if(LL_ADC_INJ_IsStopConversionOngoing(ADCx) == 0U) in LL_ADC_DeInit()
[all …]
/hal_stm32-3.6.0/stm32cube/stm32mp1xx/drivers/src/
Dstm32mp1xx_ll_adc.c470 ErrorStatus LL_ADC_DeInit(ADC_TypeDef *ADCx) in LL_ADC_DeInit() argument
477 assert_param(IS_ADC_ALL_INSTANCE(ADCx)); in LL_ADC_DeInit()
480 if (LL_ADC_IsEnabled(ADCx) == 1UL) in LL_ADC_DeInit()
485 LL_ADC_REG_SetTriggerSource(ADCx, LL_ADC_REG_TRIG_SOFTWARE); in LL_ADC_DeInit()
488 if (LL_ADC_REG_IsConversionOngoing(ADCx) != 0UL) in LL_ADC_DeInit()
490 if (LL_ADC_REG_IsStopConversionOngoing(ADCx) == 0UL) in LL_ADC_DeInit()
492 LL_ADC_REG_StopConversion(ADCx); in LL_ADC_DeInit()
499 LL_ADC_INJ_SetTriggerSource(ADCx, LL_ADC_INJ_TRIG_SOFTWARE); in LL_ADC_DeInit()
502 if (LL_ADC_INJ_IsConversionOngoing(ADCx) != 0UL) in LL_ADC_DeInit()
504 if (LL_ADC_INJ_IsStopConversionOngoing(ADCx) == 0UL) in LL_ADC_DeInit()
[all …]
/hal_stm32-3.6.0/stm32cube/stm32l5xx/drivers/src/
Dstm32l5xx_ll_adc.c456 ErrorStatus LL_ADC_DeInit(ADC_TypeDef *ADCx) in LL_ADC_DeInit() argument
463 assert_param(IS_ADC_ALL_INSTANCE(ADCx)); in LL_ADC_DeInit()
466 if (LL_ADC_IsEnabled(ADCx) == 1UL) in LL_ADC_DeInit()
471 LL_ADC_REG_SetTriggerSource(ADCx, LL_ADC_REG_TRIG_SOFTWARE); in LL_ADC_DeInit()
474 if (LL_ADC_REG_IsConversionOngoing(ADCx) != 0UL) in LL_ADC_DeInit()
476 if (LL_ADC_REG_IsStopConversionOngoing(ADCx) == 0UL) in LL_ADC_DeInit()
478 LL_ADC_REG_StopConversion(ADCx); in LL_ADC_DeInit()
485 LL_ADC_INJ_SetTriggerSource(ADCx, LL_ADC_INJ_TRIG_SOFTWARE); in LL_ADC_DeInit()
488 if (LL_ADC_INJ_IsConversionOngoing(ADCx) != 0UL) in LL_ADC_DeInit()
490 if (LL_ADC_INJ_IsStopConversionOngoing(ADCx) == 0UL) in LL_ADC_DeInit()
[all …]

12