37 #if defined( ADC_COUNT ) && ( ADC_COUNT > 0 )
73 #if defined( _ADC_CTRL_LPFMODE_MASK )
78 adcLPFilterBypass = _ADC_CTRL_LPFMODE_BYPASS,
81 adcLPFilterRC = _ADC_CTRL_LPFMODE_RCFILT,
84 adcLPFilterDeCap = _ADC_CTRL_LPFMODE_DECAP
85 } ADC_LPFilter_TypeDef;
132 #if defined( _ADC_SINGLECTRL_PRSSEL_MASK )
137 #if defined( _ADC_SINGLECTRL_PRSSEL_PRSCH4 )
140 #if defined( _ADC_SINGLECTRL_PRSSEL_PRSCH5 )
143 #if defined( _ADC_SINGLECTRL_PRSSEL_PRSCH6 )
146 #if defined( _ADC_SINGLECTRL_PRSSEL_PRSCH7 )
149 #if defined( _ADC_SINGLECTRL_PRSSEL_PRSCH8 )
152 #if defined( _ADC_SINGLECTRL_PRSSEL_PRSCH9 )
155 #if defined( _ADC_SINGLECTRL_PRSSEL_PRSCH10 )
158 #if defined( _ADC_SINGLECTRL_PRSSEL_PRSCH11 )
161 #elif defined(_ADC_SINGLECTRLX_PRSSEL_MASK)
174 #if defined( _ADC_SINGLECTRLX_PRSSEL_PRSCH12 )
175 adcPRSSELCh12 = _ADC_SINGLECTRLX_PRSSEL_PRSCH12,
176 adcPRSSELCh13 = _ADC_SINGLECTRLX_PRSSEL_PRSCH13,
177 adcPRSSELCh14 = _ADC_SINGLECTRLX_PRSSEL_PRSCH14,
178 adcPRSSELCh15 = _ADC_SINGLECTRLX_PRSSEL_PRSCH15,
186 #if defined( _ADC_SCANCTRLX_VREFSEL_MASK )
187 #define ADC_CTRLX_VREFSEL_REG 0x80
200 #if defined( _ADC_SINGLECTRL_REF_5VDIFF )
202 adcRef5VDIFF = _ADC_SINGLECTRL_REF_5VDIFF,
205 #if defined( _ADC_SINGLECTRL_REF_5V )
219 #if defined( _ADC_SINGLECTRLX_VREFSEL_VBGR )
224 #if defined( _ADC_SINGLECTRLX_VREFSEL_VDDXWATT )
229 #if defined( _ADC_SINGLECTRLX_VREFSEL_VREFPWATT )
235 #if defined( _ADC_SINGLECTRLX_VREFSEL_VREFP )
240 #if defined( _ADC_SINGLECTRLX_VREFSEL_VENTROPY )
245 #if defined( _ADC_SINGLECTRLX_VREFSEL_VREFPNWATT )
251 #if defined( _ADC_SINGLECTRLX_VREFSEL_VREFPN )
260 #if !defined( _ADC_SINGLECTRL_REF_5VDIFF )
261 #define adcRef5VDIFF adcRef5V
276 #if defined( _ADC_SINGLECTRL_INPUTSEL_MASK )
281 adcSingleInputCh0 = _ADC_SINGLECTRL_INPUTSEL_CH0,
282 adcSingleInputCh1 = _ADC_SINGLECTRL_INPUTSEL_CH1,
283 adcSingleInputCh2 = _ADC_SINGLECTRL_INPUTSEL_CH2,
284 adcSingleInputCh3 = _ADC_SINGLECTRL_INPUTSEL_CH3,
285 adcSingleInputCh4 = _ADC_SINGLECTRL_INPUTSEL_CH4,
286 adcSingleInputCh5 = _ADC_SINGLECTRL_INPUTSEL_CH5,
287 adcSingleInputCh6 = _ADC_SINGLECTRL_INPUTSEL_CH6,
288 adcSingleInputCh7 = _ADC_SINGLECTRL_INPUTSEL_CH7,
289 adcSingleInputTemp = _ADC_SINGLECTRL_INPUTSEL_TEMP,
290 adcSingleInputVDDDiv3 = _ADC_SINGLECTRL_INPUTSEL_VDDDIV3,
291 adcSingleInputVDD = _ADC_SINGLECTRL_INPUTSEL_VDD,
292 adcSingleInputVSS = _ADC_SINGLECTRL_INPUTSEL_VSS,
293 adcSingleInputVrefDiv2 = _ADC_SINGLECTRL_INPUTSEL_VREFDIV2,
294 adcSingleInputDACOut0 = _ADC_SINGLECTRL_INPUTSEL_DAC0OUT0,
295 adcSingleInputDACOut1 = _ADC_SINGLECTRL_INPUTSEL_DAC0OUT1,
296 adcSingleInputATEST = 15,
299 adcSingleInputCh0Ch1 = _ADC_SINGLECTRL_INPUTSEL_CH0CH1,
300 adcSingleInputCh2Ch3 = _ADC_SINGLECTRL_INPUTSEL_CH2CH3,
301 adcSingleInputCh4Ch5 = _ADC_SINGLECTRL_INPUTSEL_CH4CH5,
302 adcSingleInputCh6Ch7 = _ADC_SINGLECTRL_INPUTSEL_CH6CH7,
303 adcSingleInputDiff0 = 4
304 } ADC_SingleInput_TypeDef;
308 #define adcSingleInpCh0 adcSingleInputCh0
309 #define adcSingleInpCh1 adcSingleInputCh1
310 #define adcSingleInpCh2 adcSingleInputCh2
311 #define adcSingleInpCh3 adcSingleInputCh3
312 #define adcSingleInpCh4 adcSingleInputCh4
313 #define adcSingleInpCh5 adcSingleInputCh5
314 #define adcSingleInpCh6 adcSingleInputCh6
315 #define adcSingleInpCh7 adcSingleInputCh7
316 #define adcSingleInpTemp adcSingleInputTemp
317 #define adcSingleInpVDDDiv3 adcSingleInputVDDDiv3
318 #define adcSingleInpVDD adcSingleInputVDD
319 #define adcSingleInpVSS adcSingleInputVSS
320 #define adcSingleInpVrefDiv2 adcSingleInputVrefDiv2
321 #define adcSingleInpDACOut0 adcSingleInputDACOut0
322 #define adcSingleInpDACOut1 adcSingleInputDACOut1
323 #define adcSingleInpATEST adcSingleInputATEST
324 #define adcSingleInpCh0Ch1 adcSingleInputCh0Ch1
325 #define adcSingleInpCh2Ch3 adcSingleInputCh2Ch3
326 #define adcSingleInpCh4Ch5 adcSingleInputCh4Ch5
327 #define adcSingleInpCh6Ch7 adcSingleInputCh6Ch7
328 #define adcSingleInpDiff0 adcSingleInputDiff0
332 #if defined( _ADC_SINGLECTRL_POSSEL_MASK )
512 #define adcPosSelIO0 adcPosSelIOVDD
513 #define adcPosSelVREGOUTPA adcPosSelPAVDD
514 #define adcPosSelAREG adcPosSelDVDD
515 #define adcPosSelPDBU adcPosSelDECOUPLE
520 #if defined( _ADC_SINGLECTRL_NEGSEL_MASK )
691 #if defined( _ADC_SCANINPUTSEL_MASK )
695 adcScanInputGroup0 = 0,
696 adcScanInputGroup1 = 1,
697 adcScanInputGroup2 = 2,
698 adcScanInputGroup3 = 3,
699 } ADC_ScanInputGroup_TypeDef;
702 #define ADC_SCANINPUTSEL_GROUP_NONE 0xFFU
703 #define ADC_SCANINPUTSEL_NONE ((ADC_SCANINPUTSEL_GROUP_NONE \
704 << _ADC_SCANINPUTSEL_INPUT0TO7SEL_SHIFT) \
705 | (ADC_SCANINPUTSEL_GROUP_NONE \
706 << _ADC_SCANINPUTSEL_INPUT8TO15SEL_SHIFT) \
707 | (ADC_SCANINPUTSEL_GROUP_NONE \
708 << _ADC_SCANINPUTSEL_INPUT16TO23SEL_SHIFT) \
709 | (ADC_SCANINPUTSEL_GROUP_NONE \
710 << _ADC_SCANINPUTSEL_INPUT24TO31SEL_SHIFT))
715 adcScanNegInput1 = 1,
716 adcScanNegInput3 = 3,
717 adcScanNegInput5 = 5,
718 adcScanNegInput7 = 7,
719 adcScanNegInput8 = 8,
720 adcScanNegInput10 = 10,
721 adcScanNegInput12 = 12,
722 adcScanNegInput14 = 14,
723 adcScanNegInputDefault = 0xFF,
724 } ADC_ScanNegInput_TypeDef;
751 #if defined( _ADC_CTRL_WARMUPMODE_FASTBG )
753 adcWarmupFastBG = _ADC_CTRL_WARMUPMODE_FASTBG,
756 #if defined( _ADC_CTRL_WARMUPMODE_KEEPSCANREFWARM )
758 adcWarmupKeepScanRefWarm = _ADC_CTRL_WARMUPMODE_KEEPSCANREFWARM,
761 #if defined( _ADC_CTRL_WARMUPMODE_KEEPINSTANDBY )
767 #if defined( _ADC_CTRL_WARMUPMODE_KEEPINSLOWACC )
780 #if defined( _ADC_CTRL_ADCCLKMODE_MASK )
804 #if defined( _ADC_CTRL_LPFMODE_MASK )
806 ADC_LPFilter_TypeDef lpfMode;
828 #if defined( _ADC_CTRL_ADCCLKMODE_MASK )
835 #if defined( _ADC_CTRL_LPFMODE_MASK ) && (!defined( _ADC_CTRL_ADCCLKMODE_MASK ))
836 #define ADC_INIT_DEFAULT \
841 _ADC_CTRL_TIMEBASE_DEFAULT, \
842 _ADC_CTRL_PRESC_DEFAULT, \
845 #elif (!defined( _ADC_CTRL_LPFMODE_MASK )) && (!defined( _ADC_CTRL_ADCCLKMODE_MASK ))
846 #define ADC_INIT_DEFAULT \
850 _ADC_CTRL_TIMEBASE_DEFAULT, \
851 _ADC_CTRL_PRESC_DEFAULT, \
854 #elif (!defined( _ADC_CTRL_LPFMODE_MASK )) && defined( _ADC_CTRL_ADCCLKMODE_MASK )
855 #define ADC_INIT_DEFAULT \
859 _ADC_CTRL_TIMEBASE_DEFAULT, \
860 _ADC_CTRL_PRESC_DEFAULT, \
902 #if defined( _ADC_SCANCTRL_INPUTMASK_MASK )
912 #if defined( _ADC_SCANINPUTSEL_MASK )
933 #if defined( _ADC_CTRL_SCANDMAWU_MASK )
937 #if defined( _ADC_SCANCTRLX_FIFOOFACT_MASK )
945 #if defined( _ADC_SCANCTRL_INPUTMASK_MASK )
946 #define ADC_INITSCAN_DEFAULT \
960 #if defined( _ADC_SCANINPUTSEL_MASK )
961 #define ADC_INITSCAN_DEFAULT \
969 ADC_SCANINPUTSEL_NONE, \
971 _ADC_SCANNEGSEL_RESETVALUE,\
1004 #if defined( _ADC_SINGLECTRL_INPUTSEL_MASK )
1009 ADC_SingleInput_TypeDef input;
1012 #if defined( _ADC_SINGLECTRL_POSSEL_MASK )
1017 #if defined( _ADC_SINGLECTRL_NEGSEL_MASK )
1035 #if defined( _ADC_CTRL_SINGLEDMAWU_MASK )
1040 #if defined( _ADC_SINGLECTRLX_FIFOOFACT_MASK )
1048 #if defined( _ADC_SINGLECTRL_INPUTSEL_MASK )
1049 #define ADC_INITSINGLE_DEFAULT \
1062 #define ADC_INITSINGLE_DEFAULT \
1068 adcPosSelAPORT0XCH0, \
1159 #if defined( _ADC_SCANDATAX_MASK )
1167 #if defined( _ADC_SCANINPUTSEL_MASK )
1170 ADC_ScanInputGroup_TypeDef inputGroup,
1173 ADC_ScanInputGroup_TypeDef inputGroup,
1175 ADC_ScanNegInput_TypeDef adcScanNegInput);
1287 return adc->
IF & ien;
1320 adc->
CMD = (uint32_t)cmd;
#define _ADC_SINGLECTRL_POSSEL_APORT1YCH15
__IM uint32_t SINGLEDATAP
#define _ADC_SINGLECTRL_NEGSEL_APORT3YCH23
#define _ADC_SINGLECTRL_POSSEL_APORT0XCH11
#define _ADC_SINGLECTRL_NEGSEL_APORT1XCH12
#define _ADC_SINGLECTRL_POSSEL_APORT4XCH7
#define _ADC_SINGLECTRL_NEGSEL_APORT1XCH10
#define _ADC_SINGLECTRL_NEGSEL_APORT1XCH0
#define _ADC_SINGLECTRL_POSSEL_APORT0XCH13
#define _ADC_SINGLECTRL_POSSEL_DEFAULT
#define _ADC_SINGLECTRL_NEGSEL_APORT4XCH29
#define _ADC_SINGLECTRL_POSSEL_APORT1XCH24
#define _ADC_SINGLECTRL_POSSEL_APORT0YCH14
#define _ADC_SINGLECTRL_NEGSEL_APORT2YCH12
#define _ADC_SINGLECTRL_NEGSEL_APORT0YCH4
#define _ADC_SINGLECTRL_NEGSEL_APORT4XCH7
#define _ADC_SINGLECTRL_NEGSEL_APORT4XCH3
#define _ADC_SINGLECTRL_NEGSEL_APORT1XCH4
#define _ADC_SINGLECTRL_NEGSEL_APORT3XCH16
#define _ADC_SINGLECTRL_AT_4CYCLES
#define _ADC_SINGLECTRL_POSSEL_APORT4XCH15
#define _ADC_SINGLECTRL_POSSEL_DAC0OUT1
#define _ADC_SINGLECTRL_NEGSEL_APORT2XCH7
#define _ADC_SINGLECTRLX_VREFSEL_VREFPN
#define _ADC_SINGLECTRL_NEGSEL_APORT1XCH26
#define _ADC_SINGLECTRL_NEGSEL_APORT3XCH28
#define _ADC_SINGLECTRLX_VREFSEL_VREFPWATT
ADC_PosSel_TypeDef posSel
#define _ADC_SINGLECTRL_REF_EXTSINGLE
#define _ADC_SINGLECTRL_POSSEL_APORT4XCH27
#define _ADC_SINGLECTRL_POSSEL_APORT2XCH9
#define _ADC_SINGLECTRL_POSSEL_APORT0YCH2
#define _ADC_SINGLECTRL_POSSEL_APORT2YCH28
#define _ADC_SINGLECTRL_NEGSEL_APORT0XCH10
#define _ADC_SINGLECTRL_NEGSEL_APORT4YCH18
#define _ADC_CTRL_OVSRSEL_X2
#define _ADC_SINGLECTRL_NEGSEL_APORT3YCH15
#define _ADC_SINGLECTRL_POSSEL_APORT1XCH16
#define _ADC_SINGLECTRL_NEGSEL_APORT2YCH24
#define _ADC_SINGLECTRL_NEGSEL_APORT2XCH13
#define _ADC_SINGLECTRL_NEGSEL_APORT4YCH26
#define ADC_CTRL_ASYNCCLKEN_ASNEEDED
#define ADC_CMD_SINGLESTART
#define _ADC_SINGLECTRL_NEGSEL_APORT4XCH1
#define _ADC_SINGLECTRL_NEGSEL_APORT3XCH18
#define _ADC_SINGLECTRL_POSSEL_APORT4XCH13
#define _ADC_SINGLECTRL_POSSEL_APORT3XCH20
#define _ADC_SINGLECTRL_NEGSEL_APORT4YCH24
__STATIC_INLINE uint32_t ADC_DataSinglePeek(ADC_TypeDef *adc)
Peek single conversion result.
#define _ADC_SINGLECTRL_NEGSEL_APORT4YCH30
#define _ADC_SINGLECTRL_POSSEL_DAC0OUT0
#define _ADC_SINGLECTRL_POSSEL_APORT2XCH17
#define _ADC_SINGLECTRL_NEGSEL_APORT0YCH7
#define _ADC_SINGLECTRL_POSSEL_APORT0XCH8
#define _ADC_SINGLECTRL_NEGSEL_APORT0YCH13
#define _ADC_SINGLECTRL_RES_OVS
#define _ADC_SINGLECTRL_NEGSEL_APORT0XCH3
#define _ADC_SINGLECTRL_NEGSEL_APORT0XCH2
#define _ADC_SINGLECTRL_NEGSEL_APORT2YCH18
#define _ADC_SINGLECTRL_NEGSEL_APORT1XCH6
#define _ADC_SINGLECTRL_NEGSEL_APORT1YCH3
#define _ADC_SINGLECTRL_POSSEL_APORT4XCH3
__STATIC_INLINE uint32_t ADC_DataScanPeek(ADC_TypeDef *adc)
Peek scan result.
#define _ADC_SINGLECTRL_POSSEL_APORT0XCH10
#define _ADC_SINGLECTRL_NEGSEL_APORT4XCH25
#define _ADC_SINGLECTRL_POSSEL_APORT1XCH22
#define _ADC_SINGLECTRL_POSSEL_APORT1YCH23
#define _ADC_SINGLECTRL_NEGSEL_APORT4XCH15
#define _ADC_SINGLECTRL_POSSEL_APORT3XCH28
ADC_EM2ClockConfig_TypeDef em2ClockConfig
#define _ADC_SINGLECTRLX_PRSSEL_PRSCH8
#define _ADC_SINGLECTRL_NEGSEL_APORT1YCH23
#define _ADC_CTRL_OVSRSEL_X512
#define _ADC_SINGLECTRL_NEGSEL_APORT1XCH20
#define _ADC_SINGLECTRL_NEGSEL_APORT4XCH21
void ADC_Reset(ADC_TypeDef *adc)
Reset ADC to same state as after a HW reset.
#define _ADC_SINGLECTRL_NEGSEL_APORT3YCH7
#define _ADC_SINGLECTRL_POSSEL_APORT3YCH21
#define _ADC_SINGLECTRL_POSSEL_APORT4YCH14
#define ADC_CTRL_ADCCLKMODE_ASYNC
#define _ADC_SINGLECTRL_POSSEL_APORT1YCH25
#define _ADC_SINGLECTRL_NEGSEL_APORT2XCH23
#define _ADC_SINGLECTRL_POSSEL_APORT2YCH6
#define _ADC_SINGLECTRLX_PRSSEL_PRSCH1
#define _ADC_SINGLECTRL_POSSEL_APORT2YCH12
#define _ADC_SINGLECTRL_NEGSEL_APORT1YCH13
#define _ADC_CTRL_WARMUPMODE_KEEPINSTANDBY
#define _ADC_CTRL_WARMUPMODE_NORMAL
#define _ADC_SINGLECTRL_REF_2V5
#define _ADC_CTRL_OVSRSEL_X64
ADC_AcqTime_TypeDef acqTime
#define _ADC_SINGLECTRL_NEGSEL_APORT0YCH8
#define _ADC_SINGLECTRL_POSSEL_APORT2XCH25
#define _ADC_SINGLECTRL_NEGSEL_APORT1YCH11
#define _ADC_SINGLECTRL_POSSEL_APORT1YCH21
#define _ADC_SINGLECTRL_AT_128CYCLES
#define _ADC_SINGLECTRLX_PRSSEL_PRSCH0
#define _ADC_SINGLECTRL_NEGSEL_APORT4YCH10
#define _ADC_SINGLECTRL_NEGSEL_APORT3YCH25
#define _ADC_CTRL_OVSRSEL_X128
#define _ADC_SINGLECTRL_POSSEL_APORT4YCH0
ADC_NegSel_TypeDef negSel
#define _ADC_SINGLECTRL_POSSEL_APORT2XCH11
#define _ADC_SINGLECTRL_POSSEL_APORT4YCH6
#define _ADC_SINGLECTRLX_PRSSEL_PRSCH11
#define _ADC_SINGLECTRL_NEGSEL_APORT4YCH22
#define _ADC_SINGLECTRL_NEGSEL_APORT1YCH19
#define _ADC_SINGLECTRL_POSSEL_APORT4XCH11
#define _ADC_SINGLECTRL_POSSEL_APORT4YCH22
#define _ADC_SINGLECTRL_POSSEL_APORT1YCH5
#define _ADC_SINGLECTRL_REF_VDD
__STATIC_INLINE void ADC_IntClear(ADC_TypeDef *adc, uint32_t flags)
Clear one or more pending ADC interrupts.
#define _ADC_SINGLECTRL_RES_12BIT
CMSIS Cortex-M Peripheral Access Layer for Silicon Laboratories microcontroller devices.
#define _ADC_SINGLECTRL_POSSEL_APORT1YCH3
#define _ADC_SINGLECTRL_POSSEL_APORT3YCH17
#define _ADC_SINGLECTRL_POSSEL_APORT2YCH4
#define _ADC_SINGLECTRL_POSSEL_APORT0YCH0
#define _ADC_SINGLECTRL_POSSEL_APORT3XCH14
#define _ADC_SINGLECTRLX_VREFSEL_VREFPNWATT
#define _ADC_SINGLECTRL_NEGSEL_APORT1YCH15
#define _ADC_SINGLECTRLX_VREFSEL_VREFP
#define _ADC_SINGLECTRL_NEGSEL_APORT2YCH26
#define _ADC_SINGLECTRL_POSSEL_APORT3YCH3
#define _ADC_SINGLECTRL_POSSEL_APORT3YCH13
#define _ADC_SINGLECTRL_POSSEL_APORT2XCH13
#define _ADC_SINGLECTRL_POSSEL_APORT0XCH5
__STATIC_INLINE uint32_t ADC_DataSingleGet(ADC_TypeDef *adc)
Get single conversion result.
#define _ADC_SINGLECTRL_POSSEL_APORT1YCH9
#define _ADC_SINGLECTRL_POSSEL_APORT3YCH19
#define _ADC_SINGLECTRL_POSSEL_APORT0YCH15
#define _ADC_CTRL_WARMUPMODE_KEEPINSLOWACC
#define _ADC_SINGLECTRL_NEGSEL_APORT2YCH0
#define _ADC_SINGLECTRL_POSSEL_APORT4XCH29
#define _ADC_SINGLECTRL_POSSEL_APORT2YCH16
#define _ADC_SINGLECTRL_NEGSEL_APORT3XCH24
#define _ADC_SINGLECTRL_NEGSEL_APORT0YCH12
#define _ADC_SINGLECTRL_POSSEL_APORT0XCH12
#define _ADC_SINGLECTRL_POSSEL_APORT0XCH2
#define _ADC_SINGLECTRL_NEGSEL_APORT1YCH31
#define _ADC_CTRL_OVSRSEL_X256
#define _ADC_SINGLECTRL_NEGSEL_APORT3YCH21
#define _ADC_SINGLECTRL_POSSEL_APORT1XCH20
#define _ADC_SINGLECTRL_POSSEL_APORT3XCH24
#define _ADC_SINGLECTRL_NEGSEL_APORT0YCH11
#define _ADC_SINGLECTRL_RES_6BIT
#define _ADC_SINGLECTRL_POSSEL_APORT1YCH1
#define _ADC_SINGLECTRLX_PRSSEL_PRSCH5
#define _ADC_SINGLECTRL_POSSEL_APORT3XCH22
#define _ADC_SINGLECTRL_POSSEL_APORT4YCH30
#define _ADC_SINGLECTRL_NEGSEL_TESTN
#define _ADC_SINGLECTRL_NEGSEL_APORT1YCH25
#define _ADC_SINGLECTRL_POSSEL_APORT0YCH11
#define _ADC_SINGLECTRL_NEGSEL_APORT0XCH11
#define _ADC_SINGLECTRL_POSSEL_APORT3YCH7
#define _ADC_SINGLECTRL_POSSEL_PDBU
ADC_PRSSEL_TypeDef prsSel
#define _ADC_SINGLECTRL_NEGSEL_APORT1XCH22
#define _ADC_SINGLECTRL_POSSEL_APORT0YCH8
#define _ADC_SINGLECTRL_NEGSEL_APORT0YCH0
#define _ADC_SINGLECTRL_NEGSEL_APORT0XCH7
#define _ADC_SINGLECTRL_POSSEL_APORT0XCH15
#define _ADC_SINGLECTRL_NEGSEL_APORT2XCH21
#define _ADC_SINGLECTRL_POSSEL_APORT2YCH30
#define _ADC_SINGLECTRL_REF_2XVDD
#define _ADC_SINGLECTRL_NEGSEL_APORT4XCH9
#define _ADC_CTRL_OVSRSEL_X8
#define _ADC_CTRL_OVSRSEL_X4096
#define _ADC_SINGLECTRL_POSSEL_APORT4YCH18
#define _ADC_SINGLECTRL_NEGSEL_APORT1YCH27
#define _ADC_SINGLECTRL_NEGSEL_APORT3YCH1
#define _ADC_SINGLECTRL_NEGSEL_APORT0YCH9
__STATIC_INLINE void ADC_IntSet(ADC_TypeDef *adc, uint32_t flags)
Set one or more pending ADC interrupts from SW.
#define _ADC_SINGLECTRL_NEGSEL_APORT4YCH4
#define _ADC_SINGLECTRL_POSSEL_VSS
#define _ADC_SINGLECTRL_NEGSEL_APORT0XCH8
#define _ADC_SINGLECTRL_POSSEL_APORT3YCH25
#define _ADC_SINGLECTRL_POSSEL_APORT4XCH31
#define _ADC_SINGLECTRLX_PRSSEL_PRSCH9
#define _ADC_SINGLECTRL_NEGSEL_APORT2XCH25
#define _ADC_SINGLECTRL_POSSEL_APORT2XCH15
#define _ADC_SINGLECTRL_NEGSEL_APORT1XCH18
#define _ADC_SINGLECTRL_NEGSEL_APORT3YCH17
#define _ADC_SINGLECTRL_NEGSEL_APORT4XCH27
#define _ADC_SINGLECTRL_AT_1CYCLE
#define ADC_CTRLX_VREFSEL_REG
#define _ADC_SINGLECTRL_NEGSEL_APORT3XCH20
#define _ADC_SINGLECTRL_POSSEL_APORT3YCH15
#define _ADC_SINGLECTRL_NEGSEL_APORT0XCH12
#define _ADC_SINGLECTRL_POSSEL_APORT3YCH1
#define _ADC_SINGLECTRL_AT_2CYCLES
#define _ADC_SINGLECTRL_NEGSEL_APORT2XCH29
#define _ADC_SINGLECTRL_POSSEL_APORT0YCH7
#define _ADC_SINGLECTRL_POSSEL_APORT2XCH29
#define _ADC_SINGLECTRL_NEGSEL_APORT2XCH19
#define _ADC_SINGLECTRL_POSSEL_VREGOUTPA
#define _ADC_SINGLECTRL_NEGSEL_APORT3XCH30
#define _ADC_SINGLECTRL_NEGSEL_APORT4YCH28
#define _ADC_SINGLECTRL_NEGSEL_APORT2XCH1
#define _ADC_SINGLECTRL_NEGSEL_APORT1YCH5
#define _ADC_SINGLECTRL_POSSEL_APORT4YCH24
#define _ADC_SINGLECTRL_POSSEL_APORT3YCH5
__STATIC_INLINE void ADC_IntEnable(ADC_TypeDef *adc, uint32_t flags)
Enable one or more ADC interrupts.
#define _ADC_SINGLECTRL_POSSEL_AVDD
void ADC_Init(ADC_TypeDef *adc, const ADC_Init_TypeDef *init)
Initialize ADC.
#define _ADC_SINGLECTRL_NEGSEL_APORT2YCH2
#define ADC_CMD_SCANSTART
#define _ADC_SINGLECTRL_POSSEL_APORT2YCH10
#define _ADC_SINGLECTRL_NEGSEL_APORT1XCH28
#define _ADC_SINGLECTRL_POSSEL_APORT2YCH20
#define _ADC_SINGLECTRL_POSSEL_APORT4XCH5
#define _ADC_SINGLECTRL_POSSEL_APORT4XCH19
#define _ADC_SINGLECTRL_POSSEL_APORT2XCH3
#define _ADC_SINGLECTRL_NEGSEL_APORT4YCH2
#define _ADC_SINGLECTRL_POSSEL_APORT4YCH4
#define _ADC_SINGLECTRL_NEGSEL_APORT0YCH3
#define _ADC_SINGLECTRL_NEGSEL_VSS
ADC_PRSSEL_TypeDef prsSel
#define _ADC_SINGLECTRL_POSSEL_APORT1XCH14
#define _ADC_SINGLECTRL_NEGSEL_APORT4YCH6
uint32_t ADC_DataIdScanGet(ADC_TypeDef *adc, uint32_t *scanId)
Get scan result and scan select ID.
#define _ADC_SINGLECTRL_POSSEL_APORT3XCH10
#define _ADC_SINGLECTRLX_PRSSEL_PRSCH6
#define _ADC_SINGLECTRL_NEGSEL_APORT2XCH3
#define _ADC_SINGLECTRL_POSSEL_APORT1XCH2
#define ADC_CTRL_ASYNCCLKEN_ALWAYSON
#define _ADC_SINGLECTRL_NEGSEL_APORT4XCH31
#define _ADC_SINGLECTRL_NEGSEL_APORT0YCH5
#define _ADC_SINGLECTRL_NEGSEL_APORT3XCH2
#define _ADC_SINGLECTRL_POSSEL_APORT1XCH28
#define _ADC_SINGLECTRL_POSSEL_APORT0XCH1
#define _ADC_SINGLECTRLX_PRSSEL_PRSCH10
#define _ADC_SINGLECTRL_POSSEL_APORT0YCH10
#define _ADC_SINGLECTRL_POSSEL_APORT2YCH2
void ADC_ScanInputClear(ADC_InitScan_TypeDef *scanInit)
Clear ADC scan input configuration.
#define _ADC_SINGLECTRL_POSSEL_APORT3YCH29
#define _ADC_SINGLECTRL_NEGSEL_APORT2XCH11
#define _ADC_SINGLECTRL_NEGSEL_APORT0XCH9
#define _ADC_SINGLECTRL_POSSEL_APORT1YCH29
uint8_t ADC_TimebaseCalc(uint32_t hfperFreq)
Calculate timebase value in order to get a timebase providing at least 1us.
#define _ADC_SINGLECTRL_NEGSEL_APORT3XCH22
#define _ADC_SINGLECTRL_POSSEL_APORT1XCH0
#define _ADC_SINGLECTRL_NEGSEL_APORT1XCH8
#define _ADC_SINGLECTRL_NEGSEL_APORT2YCH30
#define _ADC_SINGLECTRL_NEGSEL_APORT3YCH19
#define _ADC_SINGLECTRL_REF_2XEXTDIFF
#define _ADC_SINGLECTRL_POSSEL_APORT1YCH7
#define _ADC_CTRL_OVSRSEL_X2048
#define _ADC_SINGLECTRL_POSSEL_APORT1XCH12
#define _ADC_SINGLECTRL_NEGSEL_APORT3XCH4
#define _ADC_SINGLECTRL_AT_256CYCLES
#define _ADC_SINGLECTRL_NEGSEL_APORT1XCH30
#define _ADC_SINGLECTRLX_VREFSEL_VENTROPY
#define _ADC_SINGLECTRL_NEGSEL_APORT4YCH0
#define _ADC_SINGLECTRL_POSSEL_APORT4XCH9
#define _ADC_SINGLECTRL_NEGSEL_APORT1XCH14
#define _ADC_SINGLECTRL_POSSEL_APORT1YCH13
#define _ADC_SINGLECTRLX_VREFSEL_VBGR
#define _ADC_SINGLECTRL_POSSEL_APORT4YCH10
#define _ADC_SINGLECTRL_NEGSEL_APORT4YCH12
uint32_t ADC_ScanDifferentialInputAdd(ADC_InitScan_TypeDef *scanInit, ADC_ScanInputGroup_TypeDef inputGroup, ADC_PosSel_TypeDef posSel, ADC_ScanNegInput_TypeDef adcScanNegInput)
Initialize ADC scan differential input configuration.
#define _ADC_SINGLECTRL_NEGSEL_APORT3YCH13
#define _ADC_SINGLECTRL_NEGSEL_APORT0YCH1
#define _ADC_SINGLECTRL_POSSEL_APORT4YCH20
#define _ADC_SINGLECTRL_NEGSEL_APORT2XCH15
#define _ADC_CTRL_OVSRSEL_X32
#define _ADC_SINGLECTRL_NEGSEL_APORT1XCH16
#define _ADC_SINGLECTRL_POSSEL_APORT4XCH17
#define _ADC_SINGLECTRL_NEGSEL_APORT0XCH0
#define _ADC_SINGLECTRL_POSSEL_APORT0XCH4
#define _ADC_SINGLECTRL_NEGSEL_APORT0XCH13
#define _ADC_SINGLECTRL_POSSEL_APORT3XCH2
#define _ADC_SINGLECTRL_POSSEL_APORT1XCH8
#define _ADC_SINGLECTRL_POSSEL_AREG
ADC_Res_TypeDef resolution
#define _ADC_SINGLECTRL_POSSEL_APORT1XCH6
#define _ADC_SINGLECTRL_NEGSEL_APORT4XCH17
#define _ADC_SINGLECTRL_REF_1V25
ADC_EM2ClockConfig_TypeDef
#define _ADC_SINGLECTRL_POSSEL_APORT2XCH7
#define _ADC_SINGLECTRL_POSSEL_IO0
#define _ADC_SINGLECTRLX_VREFSEL_VDDXWATT
#define _ADC_SINGLECTRL_NEGSEL_APORT0XCH14
#define _ADC_SINGLECTRL_POSSEL_APORT4XCH23
__STATIC_INLINE void ADC_IntDisable(ADC_TypeDef *adc, uint32_t flags)
Disable one or more ADC interrupts.
#define _ADC_SINGLECTRL_POSSEL_APORT3XCH26
#define _ADC_SINGLECTRL_NEGSEL_APORT3YCH29
#define _ADC_SINGLECTRL_NEGSEL_DEFAULT
void ADC_InitSingle(ADC_TypeDef *adc, const ADC_InitSingle_TypeDef *init)
Initialize single ADC sample conversion.
#define _ADC_SINGLECTRL_NEGSEL_APORT1YCH17
#define _ADC_SINGLECTRL_POSSEL_APORT0YCH6
#define _ADC_SINGLECTRL_NEGSEL_APORT4XCH19
#define _ADC_SINGLECTRL_POSSEL_APORT3XCH18
#define _ADC_SINGLECTRL_POSSEL_APORT1YCH19
#define _ADC_SINGLECTRLX_PRSSEL_PRSCH7
#define _ADC_SINGLECTRL_POSSEL_APORT2XCH23
#define _ADC_SINGLECTRL_POSSEL_APORT0XCH9
#define _ADC_SINGLECTRL_POSSEL_APORT2XCH21
#define _ADC_SINGLECTRL_POSSEL_APORT2XCH19
#define _ADC_SINGLECTRL_POSSEL_APORT1XCH10
#define _ADC_SINGLECTRL_POSSEL_OPA2
#define _ADC_SINGLECTRL_POSSEL_APORT0YCH1
#define _ADC_SINGLECTRL_NEGSEL_APORT2XCH17
#define _ADC_SINGLECTRL_POSSEL_APORT2YCH26
#define _ADC_SINGLECTRL_POSSEL_APORT3YCH23
ADC_InitScanInput_TypeDef scanInputConfig
#define _ADC_CTRL_OVSRSEL_X16
#define _ADC_SINGLECTRL_NEGSEL_APORT0XCH4
#define _ADC_SINGLECTRL_NEGSEL_APORT2XCH9
#define _ADC_SINGLECTRL_NEGSEL_APORT4XCH11
#define _ADC_SINGLECTRL_POSSEL_APORT2XCH1
#define _ADC_CTRL_WARMUPMODE_KEEPADCWARM
#define _ADC_SINGLECTRL_NEGSEL_APORT3XCH10
#define _ADC_SINGLECTRL_AT_64CYCLES
#define _ADC_CTRL_OVSRSEL_X4
uint32_t ADC_ScanSingleEndedInputAdd(ADC_InitScan_TypeDef *scanInit, ADC_ScanInputGroup_TypeDef inputGroup, ADC_PosSel_TypeDef singleEndedSel)
Initialize ADC scan single-ended input configuration.
#define _ADC_SINGLECTRL_RES_8BIT
#define _ADC_SINGLECTRL_NEGSEL_APORT4XCH13
#define _ADC_SINGLECTRL_NEGSEL_APORT0YCH15
#define _ADC_SINGLECTRL_NEGSEL_APORT0YCH14
#define _ADC_SINGLECTRL_POSSEL_APORT3YCH31
#define _ADC_SINGLECTRL_NEGSEL_APORT0YCH6
#define _ADC_SINGLECTRL_NEGSEL_APORT2YCH20
#define _ADC_SINGLECTRL_NEGSEL_APORT0YCH2
#define _ADC_SINGLECTRL_POSSEL_APORT4XCH1
#define _ADC_SINGLECTRL_POSSEL_APORT2YCH8
#define _ADC_SINGLECTRL_POSSEL_APORT1XCH26
#define _ADC_SINGLECTRL_NEGSEL_APORT3YCH9
#define _ADC_SINGLECTRL_NEGSEL_APORT0YCH10
#define _ADC_SINGLECTRL_NEGSEL_APORT3YCH5
#define _ADC_SINGLECTRL_POSSEL_APORT0XCH0
#define _ADC_SINGLECTRL_POSSEL_APORT1XCH4
#define _ADC_SINGLECTRL_REF_5V
#define _ADC_SINGLECTRL_POSSEL_APORT3XCH4
#define _ADC_SINGLECTRL_POSSEL_APORT3XCH8
#define _ADC_SINGLECTRL_POSSEL_APORT4YCH8
#define _ADC_SINGLECTRL_NEGSEL_APORT4YCH20
#define _ADC_SINGLECTRL_NEGSEL_APORT2YCH22
#define _ADC_SINGLECTRL_POSSEL_APORT2YCH24
#define _ADC_SINGLECTRL_NEGSEL_APORT0XCH5
#define _ADC_SINGLECTRL_POSSEL_APORT0XCH3
#define _ADC_SINGLECTRL_NEGSEL_APORT3XCH6
#define _ADC_SINGLECTRL_POSSEL_APORT4XCH25
#define _ADC_SINGLECTRL_NEGSEL_APORT3YCH31
uint8_t ADC_PrescaleCalc(uint32_t adcFreq, uint32_t hfperFreq)
Calculate prescaler value used to determine ADC clock.
#define _ADC_SINGLECTRL_NEGSEL_APORT4YCH16
#define _ADC_SINGLECTRL_NEGSEL_APORT3XCH0
#define _ADC_SINGLECTRL_NEGSEL_APORT3XCH8
__STATIC_INLINE void ADC_Start(ADC_TypeDef *adc, ADC_Start_TypeDef cmd)
Start scan sequence and/or single conversion.
#define _ADC_SINGLECTRL_POSSEL_APORT2YCH14
#define _ADC_SINGLECTRL_POSSEL_APORT2YCH18
#define _ADC_SINGLECTRL_NEGSEL_APORT2YCH10
#define _ADC_SINGLECTRL_POSSEL_APORT1XCH18
#define _ADC_SINGLECTRL_POSSEL_APORT0YCH9
void ADC_InitScan(ADC_TypeDef *adc, const ADC_InitScan_TypeDef *init)
Initialize ADC scan sequence.
#define _ADC_SINGLECTRL_POSSEL_APORT4YCH26
#define _ADC_CTRL_OVSRSEL_X1024
#define _ADC_SINGLECTRL_POSSEL_APORT0YCH12
#define _ADC_SINGLECTRL_POSSEL_APORT3YCH27
#define _ADC_SINGLECTRL_POSSEL_APORT0YCH13
#define _ADC_SINGLECTRL_POSSEL_APORT1XCH30
__STATIC_INLINE uint32_t ADC_DataScanGet(ADC_TypeDef *adc)
Get scan result.
#define _ADC_SINGLECTRL_NEGSEL_APORT0XCH6
#define _ADC_SINGLECTRL_POSSEL_APORT3XCH16
#define _ADC_SINGLECTRL_POSSEL_APORT2YCH22
#define _ADC_SINGLECTRL_NEGSEL_APORT2YCH8
#define _ADC_SINGLECTRL_POSSEL_APORT1YCH31
#define _ADC_SINGLECTRL_POSSEL_SUBLSB
#define _ADC_SINGLECTRL_POSSEL_APORT2YCH0
#define _ADC_SINGLECTRL_POSSEL_APORT0XCH6
ADC_Ref_TypeDef reference
#define _ADC_SINGLECTRL_POSSEL_APORT0XCH14
#define _ADC_SINGLECTRL_POSSEL_APORT4YCH16
#define _ADC_SINGLECTRL_AT_32CYCLES
#define _ADC_SINGLECTRL_POSSEL_APORT0YCH4
#define _ADC_SINGLECTRL_NEGSEL_APORT3XCH14
#define _ADC_SINGLECTRL_POSSEL_APORT1YCH11
#define _ADC_SINGLECTRL_NEGSEL_APORT2YCH28
ADC_OvsRateSel_TypeDef ovsRateSel
#define _ADC_SINGLECTRL_NEGSEL_APORT2YCH4
#define _ADC_SINGLECTRLX_PRSSEL_PRSCH4
#define _ADC_SINGLECTRL_POSSEL_APORT4YCH2
#define _ADC_SINGLECTRL_NEGSEL_APORT2YCH6
#define _ADC_SINGLECTRL_POSSEL_OPA3
#define _ADC_SINGLECTRL_POSSEL_APORT1YCH17
#define _ADC_SINGLECTRL_NEGSEL_APORT1YCH7
#define _ADC_SINGLECTRL_AT_8CYCLES
#define _ADC_SINGLECTRL_POSSEL_APORT4YCH28
#define _ADC_SINGLECTRL_POSSEL_APORT2XCH5
#define _ADC_SINGLECTRLX_PRSSEL_PRSCH2
#define _ADC_SINGLECTRL_NEGSEL_APORT4XCH23
#define _ADC_SINGLECTRL_NEGSEL_APORT1XCH24
#define _ADC_SINGLECTRL_NEGSEL_APORT1YCH29
#define _ADC_SINGLECTRL_NEGSEL_APORT3YCH3
ADC_Ref_TypeDef reference
#define _ADC_SINGLECTRL_NEGSEL_APORT1YCH1
#define _ADC_SINGLECTRL_POSSEL_APORT0YCH5
#define _ADC_SINGLECTRL_NEGSEL_APORT2XCH31
__STATIC_INLINE uint32_t ADC_IntGet(ADC_TypeDef *adc)
Get pending ADC interrupt flags.
#define _ADC_SINGLECTRL_NEGSEL_APORT0XCH1
ADC_Res_TypeDef resolution
#define _ADC_SINGLECTRL_POSSEL_APORT3XCH12
#define _ADC_SINGLECTRL_NEGSEL_APORT1YCH21
#define _ADC_SINGLECTRL_POSSEL_APORT3XCH0
#define _ADC_SINGLECTRL_NEGSEL_APORT3YCH11
#define _ADC_SINGLECTRL_NEGSEL_APORT2XCH5
#define _ADC_SINGLECTRL_NEGSEL_APORT2XCH27
__STATIC_INLINE uint32_t ADC_IntGetEnabled(ADC_TypeDef *adc)
Get enabled and pending ADC interrupt flags. Useful for handling more interrupt sources in the same i...
#define _ADC_SINGLECTRL_POSSEL_APORT3XCH6
#define _ADC_SINGLECTRL_NEGSEL_APORT3YCH27
#define _ADC_SINGLECTRL_POSSEL_APORT2XCH31
#define _ADC_SINGLECTRL_POSSEL_APORT3YCH11
ADC_AcqTime_TypeDef acqTime
ADC_Warmup_TypeDef warmUpMode
#define _ADC_SINGLECTRL_NEGSEL_APORT2YCH16
#define _ADC_SINGLECTRL_POSSEL_APORT0YCH3
#define _ADC_SINGLECTRL_NEGSEL_APORT2YCH14
#define _ADC_SINGLECTRL_POSSEL_APORT0XCH7
#define _ADC_SINGLECTRL_NEGSEL_APORT1XCH2
#define _ADC_SINGLECTRL_NEGSEL_APORT4YCH14
#define _ADC_SINGLECTRL_POSSEL_TEMP
#define _ADC_SINGLECTRL_POSSEL_APORT4YCH12
#define _ADC_SINGLECTRLX_PRSSEL_PRSCH3
#define _ADC_SINGLECTRL_NEGSEL_APORT3XCH12
#define _ADC_SINGLECTRL_NEGSEL_APORT4XCH5
#define _ADC_SINGLECTRL_POSSEL_APORT2XCH27
#define _ADC_SINGLECTRL_AT_16CYCLES
#define _ADC_SINGLECTRL_POSSEL_APORT3XCH30
#define _ADC_SINGLECTRL_NEGSEL_APORT4YCH8
#define _ADC_SINGLECTRL_NEGSEL_APORT0XCH15
#define _ADC_SINGLECTRL_NEGSEL_APORT1YCH9
#define _ADC_SINGLECTRL_POSSEL_APORT1YCH27
#define _ADC_SINGLECTRL_POSSEL_APORT3YCH9
#define _ADC_SINGLECTRL_POSSEL_APORT4XCH21
#define _ADC_SINGLECTRL_NEGSEL_APORT3XCH26