37 #if defined(ACMP_COUNT) && (ACMP_COUNT > 0)
104 #if defined(_ACMP_INPUTSEL_CSRESSEL_RES4)
116 #if defined(_ACMP_CTRL_HYSTSEL_MASK)
126 #if defined(_ACMP_HYSTERESIS0_HYST_MASK)
146 #if defined(_ACMP_CTRL_WARMTIME_MASK)
152 acmpWarmTime4 = _ACMP_CTRL_WARMTIME_4CYCLES,
154 acmpWarmTime8 = _ACMP_CTRL_WARMTIME_8CYCLES,
156 acmpWarmTime16 = _ACMP_CTRL_WARMTIME_16CYCLES,
158 acmpWarmTime32 = _ACMP_CTRL_WARMTIME_32CYCLES,
160 acmpWarmTime64 = _ACMP_CTRL_WARMTIME_64CYCLES,
162 acmpWarmTime128 = _ACMP_CTRL_WARMTIME_128CYCLES,
164 acmpWarmTime256 = _ACMP_CTRL_WARMTIME_256CYCLES,
166 acmpWarmTime512 = _ACMP_CTRL_WARMTIME_512CYCLES
167 } ACMP_WarmTime_TypeDef;
170 #if defined(_ACMP_CTRL_INPUTRANGE_MASK)
182 #if defined(_ACMP_CTRL_PWRSEL_MASK)
195 #if defined(_ACMP_CTRL_ACCURACY_MASK)
206 #if defined(_ACMP_INPUTSEL_VASEL_MASK)
263 #if defined(_ACMP_INPUTSEL_VBSEL_MASK)
275 #if defined(_ACMP_INPUTSEL_VLPSEL_MASK)
286 #if defined(_ACMP_INPUTSEL_POSSEL_APORT0XCH0)
450 #if defined(_ACMP_INPUTSEL_POSSEL_DACOUT0)
451 acmpInputDACOUT0 = _ACMP_INPUTSEL_POSSEL_DACOUT0,
453 #if defined(_ACMP_INPUTSEL_POSSEL_DACOUT1)
454 acmpInputDACOUT1 = _ACMP_INPUTSEL_POSSEL_DACOUT1,
468 acmpChannel0 = _ACMP_INPUTSEL_NEGSEL_CH0,
470 acmpChannel1 = _ACMP_INPUTSEL_NEGSEL_CH1,
472 acmpChannel2 = _ACMP_INPUTSEL_NEGSEL_CH2,
474 acmpChannel3 = _ACMP_INPUTSEL_NEGSEL_CH3,
476 acmpChannel4 = _ACMP_INPUTSEL_NEGSEL_CH4,
478 acmpChannel5 = _ACMP_INPUTSEL_NEGSEL_CH5,
480 acmpChannel6 = _ACMP_INPUTSEL_NEGSEL_CH6,
482 acmpChannel7 = _ACMP_INPUTSEL_NEGSEL_CH7,
484 acmpChannel1V25 = _ACMP_INPUTSEL_NEGSEL_1V25,
486 acmpChannel2V5 = _ACMP_INPUTSEL_NEGSEL_2V5,
490 #if defined(_ACMP_INPUTSEL_NEGSEL_DAC0CH0)
492 acmpChannelDAC0Ch0 = _ACMP_INPUTSEL_NEGSEL_DAC0CH0,
495 #if defined(_ACMP_INPUTSEL_NEGSEL_DAC0CH1)
497 acmpChannelDAC0Ch1 = _ACMP_INPUTSEL_NEGSEL_DAC0CH1,
500 #if defined(_ACMP_INPUTSEL_NEGSEL_CAPSENSE)
502 acmpChannelCapSense = _ACMP_INPUTSEL_NEGSEL_CAPSENSE,
507 #if defined(_ACMP_EXTIFCTRL_MASK)
515 acmpExternalInputAPORT0X = _ACMP_EXTIFCTRL_APORTSEL_APORT0X,
516 acmpExternalInputAPORT0Y = _ACMP_EXTIFCTRL_APORTSEL_APORT0Y,
517 acmpExternalInputAPORT1X = _ACMP_EXTIFCTRL_APORTSEL_APORT1X,
518 acmpExternalInputAPORT1Y = _ACMP_EXTIFCTRL_APORTSEL_APORT1Y,
519 acmpExternalInputAPORT1XY = _ACMP_EXTIFCTRL_APORTSEL_APORT1XY,
520 acmpExternalInputAPORT2X = _ACMP_EXTIFCTRL_APORTSEL_APORT2X,
521 acmpExternalInputAPORT2Y = _ACMP_EXTIFCTRL_APORTSEL_APORT2Y,
522 acmpExternalInputAPORT2YX = _ACMP_EXTIFCTRL_APORTSEL_APORT2YX,
523 acmpExternalInputAPORT3X = _ACMP_EXTIFCTRL_APORTSEL_APORT3X,
524 acmpExternalInputAPORT3Y = _ACMP_EXTIFCTRL_APORTSEL_APORT3Y,
525 acmpExternalInputAPORT3XY = _ACMP_EXTIFCTRL_APORTSEL_APORT3XY,
526 acmpExternalInputAPORT4X = _ACMP_EXTIFCTRL_APORTSEL_APORT4X,
527 acmpExternalInputAPORT4Y = _ACMP_EXTIFCTRL_APORTSEL_APORT4Y,
528 acmpExternalInputAPORT4YX = _ACMP_EXTIFCTRL_APORTSEL_APORT4YX,
529 } ACMP_ExternalInput_Typedef;
543 #if defined(_ACMP_CTRL_HALFBIAS_MASK)
553 #if defined(_ACMP_CTRL_WARMTIME_MASK)
556 ACMP_WarmTime_TypeDef warmTime;
559 #if defined(_ACMP_CTRL_HYSTSEL_MASK)
574 #if defined(_ACMP_INPUTSEL_LPREF_MASK)
577 bool lowPowerReferenceEnabled;
580 #if defined(_ACMP_INPUTSEL_VDDLEVEL_MASK)
609 #if defined(_ACMP_HYSTERESIS0_HYST_MASK)
610 #define ACMP_CAPSENSE_INIT_DEFAULT \
614 acmpHysteresisLevel8, \
615 acmpHysteresisLevel8, \
621 #elif defined(_ACMP_CTRL_WARMTIME_MASK)
622 #define ACMP_CAPSENSE_INIT_DEFAULT \
628 acmpHysteresisLevel5, \
635 #define ACMP_CAPSENSE_INIT_DEFAULT \
640 acmpHysteresisLevel5, \
655 #if defined(_ACMP_CTRL_HALFBIAS_MASK)
671 #if defined(_ACMP_CTRL_INPUTRANGE_MASK)
677 #if defined(_ACMP_CTRL_ACCURACY_MASK)
684 #if defined(_ACMP_CTRL_PWRSEL_MASK)
689 #if defined(_ACMP_CTRL_WARMTIME_MASK)
692 ACMP_WarmTime_TypeDef warmTime;
695 #if defined(_ACMP_CTRL_HYSTSEL_MASK)
706 #if defined(_ACMP_INPUTSEL_VLPSEL_MASK)
715 #if defined(_ACMP_INPUTSEL_LPREF_MASK)
718 bool lowPowerReferenceEnabled;
721 #if defined(_ACMP_INPUTSEL_VDDLEVEL_MASK)
732 #if defined(_ACMP_HYSTERESIS0_HYST_MASK)
733 #define ACMP_INIT_DEFAULT \
739 acmpInputRangeFull, \
741 acmpPowerSourceAvdd, \
742 acmpHysteresisLevel5, \
743 acmpHysteresisLevel5, \
748 #elif defined(_ACMP_CTRL_WARMTIME_MASK)
749 #define ACMP_INIT_DEFAULT \
757 acmpHysteresisLevel5, \
764 #define ACMP_INIT_DEFAULT \
771 acmpHysteresisLevel5, \
779 #if defined(_ACMP_INPUTSEL_VASEL_MASK)
805 #define ACMP_VACONFIG_DEFAULT \
813 #if defined(_ACMP_INPUTSEL_VBSEL_MASK)
839 #define ACMP_VBCONFIG_DEFAULT \
856 #if defined(_ACMP_EXTIFCTRL_MASK)
857 void ACMP_ExternalInputSelect(
ACMP_TypeDef *acmp, ACMP_ExternalInput_Typedef aport);
862 #if defined(_ACMP_INPUTSEL_VASEL_MASK)
865 #if defined(_ACMP_INPUTSEL_VBSEL_MASK)
901 acmp->
IEN &= ~(flags);
977 return acmp->
IF & tmp;
#define _ACMP_INPUTSEL_VASEL_APORT2YCH6
#define _ACMP_CTRL_INPUTRANGE_LTVDDDIV2
#define _ACMP_HYSTERESIS0_HYST_HYST2
ACMP_HysteresisLevel_TypeDef hysteresisLevel_1
#define _ACMP_INPUTSEL_POSSEL_APORT3XCH14
#define _ACMP_INPUTSEL_VASEL_APORT2YCH30
__STATIC_INLINE void ACMP_IntClear(ACMP_TypeDef *acmp, uint32_t flags)
Clear one or more pending ACMP interrupts.
ACMP_CapsenseResistor_TypeDef
void ACMP_VASetup(ACMP_TypeDef *acmp, const ACMP_VAConfig_TypeDef *vaconfig)
Setup the VA Source.
#define _ACMP_INPUTSEL_POSSEL_APORT4XCH5
#define _ACMP_INPUTSEL_POSSEL_APORT2XCH15
#define _ACMP_INPUTSEL_POSSEL_APORT3YCH5
#define _ACMP_INPUTSEL_POSSEL_APORT3YCH31
ACMP_CapsenseResistor_TypeDef resistor
#define _ACMP_INPUTSEL_VASEL_APORT1YCH21
#define _ACMP_INPUTSEL_POSSEL_APORT0XCH11
#define _ACMP_INPUTSEL_VASEL_APORT1YCH11
void ACMP_Disable(ACMP_TypeDef *acmp)
Disables the ACMP.
#define _ACMP_INPUTSEL_POSSEL_APORT3XCH0
#define _ACMP_INPUTSEL_VASEL_APORT1XCH20
#define _ACMP_INPUTSEL_POSSEL_APORT1YCH29
#define _ACMP_INPUTSEL_POSSEL_APORT0XCH0
#define _ACMP_INPUTSEL_POSSEL_APORT3XCH30
#define _ACMP_INPUTSEL_VASEL_APORT1YCH27
#define _ACMP_HYSTERESIS0_HYST_HYST10
#define _ACMP_HYSTERESIS0_HYST_HYST9
#define _ACMP_INPUTSEL_VASEL_APORT1XCH10
#define _ACMP_INPUTSEL_POSSEL_APORT0YCH9
#define _ACMP_INPUTSEL_POSSEL_APORT4XCH19
#define _ACMP_INPUTSEL_CSRESSEL_RES4
#define _ACMP_INPUTSEL_POSSEL_APORT0YCH11
#define _ACMP_INPUTSEL_POSSEL_VSS
#define _ACMP_INPUTSEL_CSRESSEL_RES6
__STATIC_INLINE uint32_t ACMP_IntGet(ACMP_TypeDef *acmp)
Get pending ACMP interrupt flags.
#define _ACMP_CTRL_ACCURACY_LOW
#define _ACMP_CTRL_PWRSEL_AVDD
#define _ACMP_INPUTSEL_VASEL_APORT1XCH2
#define _ACMP_INPUTSEL_POSSEL_APORT1XCH4
#define _ACMP_INPUTSEL_POSSEL_APORT1YCH21
#define _ACMP_INPUTSEL_VASEL_APORT1XCH4
#define _ACMP_INPUTSEL_POSSEL_APORT3YCH23
#define _ACMP_INPUTSEL_POSSEL_APORT3YCH11
void ACMP_VBSetup(ACMP_TypeDef *acmp, const ACMP_VBConfig_TypeDef *vbconfig)
Setup the VB Source.
#define _ACMP_INPUTSEL_POSSEL_APORT1XCH28
#define _ACMP_INPUTSEL_POSSEL_APORT1XCH6
#define _ACMP_INPUTSEL_VASEL_APORT1YCH31
#define _ACMP_INPUTSEL_NEGSEL_VDD
#define _ACMP_INPUTSEL_POSSEL_APORT0XCH6
#define _ACMP_INPUTSEL_POSSEL_APORT1XCH26
#define _ACMP_INPUTSEL_POSSEL_APORT3XCH6
#define _ACMP_INPUTSEL_POSSEL_APORT1YCH15
#define _ACMP_INPUTSEL_POSSEL_APORT0YCH10
#define _ACMP_INPUTSEL_CSRESSEL_RES1
#define _ACMP_INPUTSEL_POSSEL_APORT1XCH0
#define _ACMP_INPUTSEL_POSSEL_APORT0XCH8
#define _ACMP_INPUTSEL_POSSEL_APORT2YCH2
#define _ACMP_INPUTSEL_POSSEL_APORT4YCH24
#define _ACMP_INPUTSEL_VASEL_APORT1XCH30
#define _ACMP_CTRL_INPUTRANGE_GTVDDDIV2
#define _ACMP_HYSTERESIS0_HYST_HYST8
ACMP_InputRange_TypeDef inputRange
#define _ACMP_INPUTSEL_POSSEL_APORT2XCH21
#define _ACMP_INPUTSEL_POSSEL_APORT1YCH17
__STATIC_INLINE uint32_t ACMP_IntGetEnabled(ACMP_TypeDef *acmp)
Get enabled and pending ACMP interrupt flags. Useful for handling more interrupt sources in the same ...
#define _ACMP_INPUTSEL_POSSEL_APORT0YCH6
void ACMP_CapsenseChannelSet(ACMP_TypeDef *acmp, ACMP_Channel_TypeDef channel)
Sets the ACMP channel used for capacative sensing.
#define _ACMP_INPUTSEL_POSSEL_APORT0YCH15
ACMP_VLPInput_Typedef vlpInput
#define _ACMP_INPUTSEL_POSSEL_APORT4XCH31
#define _ACMP_INPUTSEL_POSSEL_APORT2XCH17
bool interruptOnRisingEdge
ACMP_PowerSource_TypeDef powerSource
#define _ACMP_INPUTSEL_VASEL_APORT1XCH0
#define _ACMP_INPUTSEL_VASEL_APORT2YCH24
#define _ACMP_INPUTSEL_POSSEL_APORT4YCH10
#define _ACMP_INPUTSEL_VASEL_APORT1XCH12
#define _ACMP_INPUTSEL_POSSEL_APORT1XCH2
#define _ACMP_INPUTSEL_POSSEL_APORT3YCH25
#define _ACMP_INPUTSEL_POSSEL_APORT0XCH15
#define _ACMP_INPUTSEL_POSSEL_APORT2XCH19
#define _ACMP_INPUTSEL_VASEL_APORT1YCH7
CMSIS Cortex-M Peripheral Access Layer for Silicon Laboratories microcontroller devices.
#define _ACMP_INPUTSEL_POSSEL_APORT4YCH16
#define _ACMP_INPUTSEL_POSSEL_APORT4YCH0
#define _ACMP_INPUTSEL_VLPSEL_VBDIV
#define _ACMP_INPUTSEL_POSSEL_APORT0YCH3
#define _ACMP_INPUTSEL_VASEL_APORT2YCH4
#define _ACMP_INPUTSEL_POSSEL_APORT2YCH6
#define _ACMP_INPUTSEL_POSSEL_APORT2XCH31
__STATIC_INLINE void ACMP_IntSet(ACMP_TypeDef *acmp, uint32_t flags)
Set one or more pending ACMP interrupts from SW.
#define _ACMP_INPUTSEL_VBSEL_2V5
#define _ACMP_INPUTSEL_CSRESSEL_RES3
void ACMP_Enable(ACMP_TypeDef *acmp)
Enables the ACMP.
#define _ACMP_INPUTSEL_POSSEL_APORT2YCH18
#define _ACMP_INPUTSEL_VASEL_APORT1YCH5
#define _ACMP_INPUTSEL_VASEL_VDD
#define _ACMP_HYSTERESIS0_HYST_HYST6
ACMP_VBInput_TypeDef input
#define _ACMP_INPUTSEL_POSSEL_APORT0XCH7
#define _ACMP_INPUTSEL_POSSEL_APORT3YCH15
#define _ACMP_INPUTSEL_POSSEL_APORT2YCH22
#define _ACMP_CTRL_ACCURACY_HIGH
#define _ACMP_INPUTSEL_VASEL_APORT1XCH14
#define _ACMP_CTRL_INPUTRANGE_FULL
#define _ACMP_INPUTSEL_POSSEL_APORT4XCH27
#define _ACMP_INPUTSEL_CSRESSEL_RES5
#define _ACMP_INPUTSEL_POSSEL_APORT4XCH21
#define _ACMP_HYSTERESIS0_HYST_HYST13
#define _ACMP_INPUTSEL_VASEL_APORT1YCH1
#define _ACMP_INPUTSEL_VASEL_APORT2YCH16
#define _ACMP_INPUTSEL_VASEL_APORT2YCH18
#define _ACMP_INPUTSEL_POSSEL_APORT0YCH13
#define _ACMP_INPUTSEL_POSSEL_APORT1YCH27
#define _ACMP_INPUTSEL_VLPSEL_VADIV
#define _ACMP_INPUTSEL_POSSEL_APORT4XCH13
#define _ACMP_INPUTSEL_POSSEL_APORT2YCH4
#define _ACMP_INPUTSEL_POSSEL_APORT1YCH7
#define _ACMP_INPUTSEL_POSSEL_APORT1YCH5
#define _ACMP_INPUTSEL_POSSEL_APORT3XCH12
#define _ACMP_INPUTSEL_CSRESSEL_RES2
#define _ACMP_INPUTSEL_VASEL_APORT1YCH25
#define _ACMP_INPUTSEL_POSSEL_APORT2YCH30
#define _ACMP_INPUTSEL_POSSEL_APORT1YCH9
#define _ACMP_INPUTSEL_CSRESSEL_RES7
#define _ACMP_INPUTSEL_POSSEL_APORT1YCH25
#define _ACMP_INPUTSEL_POSSEL_APORT2YCH24
#define _ACMP_INPUTSEL_POSSEL_APORT0YCH14
#define _ACMP_INPUTSEL_POSSEL_APORT2XCH5
ACMP_VAInput_TypeDef input
#define _ACMP_INPUTSEL_POSSEL_APORT3YCH19
#define _ACMP_INPUTSEL_POSSEL_APORT4YCH14
#define _ACMP_INPUTSEL_VASEL_APORT1XCH18
#define _ACMP_INPUTSEL_VASEL_APORT2YCH8
#define _ACMP_INPUTSEL_POSSEL_APORT1YCH3
#define _ACMP_INPUTSEL_VASEL_APORT1YCH3
#define _ACMP_HYSTERESIS0_HYST_HYST0
#define _ACMP_INPUTSEL_POSSEL_APORT2YCH26
#define _ACMP_INPUTSEL_POSSEL_APORT4YCH6
#define _ACMP_INPUTSEL_POSSEL_VADIV
#define _ACMP_INPUTSEL_POSSEL_APORT4YCH22
#define _ACMP_INPUTSEL_POSSEL_APORT1YCH31
#define _ACMP_INPUTSEL_POSSEL_APORT4XCH1
#define _ACMP_INPUTSEL_VASEL_APORT1YCH19
#define _ACMP_INPUTSEL_POSSEL_APORT2YCH16
#define _ACMP_INPUTSEL_VASEL_APORT2YCH28
#define _ACMP_INPUTSEL_POSSEL_APORT2YCH8
void ACMP_ChannelSet(ACMP_TypeDef *acmp, ACMP_Channel_TypeDef negSel, ACMP_Channel_TypeDef posSel)
Sets which channels should be used in ACMP comparisons.
#define _ACMP_INPUTSEL_POSSEL_APORT3XCH22
#define _ACMP_INPUTSEL_POSSEL_APORT3XCH18
#define _ACMP_HYSTERESIS0_HYST_HYST12
void ACMP_CapsenseInit(ACMP_TypeDef *acmp, const ACMP_CapsenseInit_TypeDef *init)
Sets up the ACMP for use in capacative sense applications.
#define _ACMP_INPUTSEL_POSSEL_APORT1XCH18
#define _ACMP_INPUTSEL_POSSEL_APORT1XCH16
#define _ACMP_INPUTSEL_VASEL_APORT2YCH26
#define _ACMP_INPUTSEL_POSSEL_APORT0XCH13
#define _ACMP_INPUTSEL_POSSEL_APORT1XCH24
ACMP_HysteresisLevel_TypeDef hysteresisLevel_0
void ACMP_Reset(ACMP_TypeDef *acmp)
Reset ACMP to same state as after a HW reset.
#define _ACMP_INPUTSEL_POSSEL_APORT2YCH12
#define _ACMP_INPUTSEL_POSSEL_APORT4XCH3
#define _ACMP_CTRL_PWRSEL_IOVDD0
#define _ACMP_INPUTSEL_POSSEL_APORT3XCH20
#define _ACMP_INPUTSEL_POSSEL_APORT3YCH27
#define _ACMP_INPUTSEL_POSSEL_APORT3XCH8
#define _ACMP_INPUTSEL_POSSEL_APORT0YCH2
#define _ACMP_INPUTSEL_VASEL_APORT1XCH8
#define _ACMP_INPUTSEL_POSSEL_APORT2XCH29
ACMP_HysteresisLevel_TypeDef hysteresisLevel_1
#define _ACMP_INPUTSEL_POSSEL_APORT0YCH8
#define _ACMP_INPUTSEL_POSSEL_APORT4XCH17
#define _ACMP_INPUTSEL_VASEL_APORT2YCH20
#define _ACMP_INPUTSEL_POSSEL_APORT1YCH11
#define _ACMP_INPUTSEL_POSSEL_APORT2YCH0
#define _ACMP_CTRL_PWRSEL_VREGVDD
#define _ACMP_INPUTSEL_POSSEL_APORT1XCH8
#define _ACMP_INPUTSEL_POSSEL_APORT3XCH16
__STATIC_INLINE void ACMP_IntEnable(ACMP_TypeDef *acmp, uint32_t flags)
Enable one or more ACMP interrupts.
#define _ACMP_INPUTSEL_POSSEL_APORT0XCH2
#define _ACMP_INPUTSEL_POSSEL_VBDIV
#define _ACMP_INPUTSEL_POSSEL_APORT0XCH5
#define _ACMP_INPUTSEL_VASEL_APORT2YCH14
#define _ACMP_INPUTSEL_POSSEL_APORT0XCH9
#define _ACMP_INPUTSEL_POSSEL_APORT3YCH21
__STATIC_INLINE void ACMP_IntDisable(ACMP_TypeDef *acmp, uint32_t flags)
Disable one or more ACMP interrupts.
#define _ACMP_INPUTSEL_POSSEL_APORT1YCH1
#define _ACMP_INPUTSEL_POSSEL_APORT3YCH9
#define _ACMP_INPUTSEL_POSSEL_APORT2XCH23
#define _ACMP_INPUTSEL_VBSEL_1V25
ACMP_Accuracy_TypeDef accuracy
#define _ACMP_INPUTSEL_POSSEL_APORT0YCH7
#define _ACMP_INPUTSEL_POSSEL_APORT0XCH1
#define _ACMP_INPUTSEL_POSSEL_APORT3XCH10
#define _ACMP_INPUTSEL_POSSEL_APORT4XCH11
#define _ACMP_INPUTSEL_CSRESSEL_RES0
#define _ACMP_INPUTSEL_POSSEL_APORT2XCH25
#define _ACMP_INPUTSEL_VASEL_APORT1XCH24
#define _ACMP_INPUTSEL_POSSEL_APORT0YCH1
#define _ACMP_INPUTSEL_POSSEL_APORT1XCH14
#define _ACMP_INPUTSEL_POSSEL_APORT2YCH14
#define _ACMP_HYSTERESIS0_HYST_HYST1
#define _ACMP_INPUTSEL_POSSEL_APORT0XCH3
#define _ACMP_INPUTSEL_POSSEL_APORT1XCH20
#define _ACMP_INPUTSEL_POSSEL_APORT2XCH13
#define _ACMP_HYSTERESIS0_HYST_HYST7
#define _ACMP_INPUTSEL_POSSEL_APORT1YCH23
#define _ACMP_INPUTSEL_VASEL_APORT2YCH0
#define _ACMP_INPUTSEL_VASEL_APORT1YCH17
#define _ACMP_INPUTSEL_POSSEL_APORT2XCH9
#define _ACMP_CTRL_PWRSEL_IOVDD1
#define _ACMP_INPUTSEL_POSSEL_APORT4XCH9
#define _ACMP_INPUTSEL_VASEL_APORT1YCH15
#define _ACMP_INPUTSEL_POSSEL_APORT1YCH19
#define _ACMP_INPUTSEL_POSSEL_APORT4XCH25
#define _ACMP_INPUTSEL_VASEL_APORT1YCH29
#define _ACMP_INPUTSEL_POSSEL_APORT0XCH12
#define _ACMP_INPUTSEL_POSSEL_APORT1YCH13
#define _ACMP_INPUTSEL_POSSEL_APORT2YCH20
#define _ACMP_INPUTSEL_VASEL_APORT1XCH28
#define _ACMP_INPUTSEL_POSSEL_APORT3XCH28
#define _ACMP_INPUTSEL_POSSEL_APORT3YCH17
#define _ACMP_HYSTERESIS0_HYST_HYST5
#define _ACMP_INPUTSEL_POSSEL_APORT0YCH0
#define _ACMP_INPUTSEL_VASEL_APORT1XCH22
#define _ACMP_INPUTSEL_POSSEL_APORT0YCH4
#define _ACMP_INPUTSEL_POSSEL_APORT1XCH10
#define _ACMP_INPUTSEL_VASEL_APORT2YCH12
bool interruptOnFallingEdge
#define _ACMP_INPUTSEL_POSSEL_APORT1XCH30
#define _ACMP_INPUTSEL_VASEL_APORT2YCH22
ACMP_HysteresisLevel_TypeDef hysteresisLevel_0
#define _ACMP_INPUTSEL_VASEL_APORT2YCH2
#define _ACMP_INPUTSEL_POSSEL_APORT4XCH29
#define _ACMP_INPUTSEL_POSSEL_APORT0XCH10
#define _ACMP_INPUTSEL_POSSEL_APORT0YCH5
#define _ACMP_INPUTSEL_POSSEL_APORT2YCH28
#define _ACMP_HYSTERESIS0_HYST_HYST11
#define _ACMP_INPUTSEL_POSSEL_APORT4YCH12
#define _ACMP_INPUTSEL_POSSEL_APORT0XCH4
#define _ACMP_INPUTSEL_POSSEL_APORT2XCH27
#define _ACMP_INPUTSEL_POSSEL_APORT3XCH26
#define _ACMP_INPUTSEL_POSSEL_APORT1XCH12
#define _ACMP_INPUTSEL_POSSEL_APORT3YCH7
#define _ACMP_INPUTSEL_VASEL_APORT1XCH6
#define _ACMP_INPUTSEL_POSSEL_APORT2XCH7
#define _ACMP_INPUTSEL_POSSEL_APORT3XCH2
#define _ACMP_INPUTSEL_POSSEL_APORT3YCH1
#define _ACMP_INPUTSEL_POSSEL_APORT4YCH30
#define _ACMP_INPUTSEL_POSSEL_APORT2XCH3
#define _ACMP_INPUTSEL_POSSEL_APORT4XCH15
#define _ACMP_INPUTSEL_VASEL_APORT1YCH23
#define _ACMP_INPUTSEL_VASEL_APORT1XCH26
#define _ACMP_HYSTERESIS0_HYST_HYST15
void ACMP_Init(ACMP_TypeDef *acmp, const ACMP_Init_TypeDef *init)
Initialize ACMP.
#define _ACMP_INPUTSEL_POSSEL_APORT4YCH8
#define _ACMP_INPUTSEL_POSSEL_APORT2XCH1
#define _ACMP_INPUTSEL_POSSEL_APORT0XCH14
#define _ACMP_INPUTSEL_VASEL_APORT1YCH9
#define _ACMP_INPUTSEL_POSSEL_APORT1XCH22
#define _ACMP_INPUTSEL_POSSEL_APORT4YCH28
#define _ACMP_HYSTERESIS0_HYST_HYST3
#define _ACMP_INPUTSEL_POSSEL_APORT3YCH13
#define _ACMP_INPUTSEL_POSSEL_APORT2YCH10
#define _ACMP_INPUTSEL_POSSEL_APORT4YCH4
#define _ACMP_INPUTSEL_POSSEL_VDD
#define _ACMP_HYSTERESIS0_HYST_HYST4
ACMP_HysteresisLevel_TypeDef
#define _ACMP_INPUTSEL_POSSEL_APORT4XCH7
void ACMP_GPIOSetup(ACMP_TypeDef *acmp, uint32_t location, bool enable, bool invert)
Sets up GPIO output from the ACMP.
#define _ACMP_INPUTSEL_VASEL_APORT1YCH13
#define _ACMP_INPUTSEL_POSSEL_APORT3YCH3
#define _ACMP_INPUTSEL_VASEL_APORT1XCH16
#define _ACMP_INPUTSEL_POSSEL_APORT3YCH29
#define _ACMP_HYSTERESIS0_HYST_HYST14
#define _ACMP_INPUTSEL_POSSEL_APORT3XCH4
#define _ACMP_INPUTSEL_POSSEL_APORT4XCH23
#define _ACMP_INPUTSEL_POSSEL_APORT4YCH18
#define _ACMP_INPUTSEL_POSSEL_APORT4YCH2
#define _ACMP_INPUTSEL_POSSEL_APORT2XCH11
#define _ACMP_INPUTSEL_POSSEL_VLP
#define _ACMP_INPUTSEL_POSSEL_APORT4YCH26
#define _ACMP_INPUTSEL_POSSEL_APORT0YCH12
#define _ACMP_INPUTSEL_POSSEL_APORT4YCH20
#define _ACMP_INPUTSEL_POSSEL_APORT3XCH24
#define _ACMP_INPUTSEL_VASEL_APORT2YCH10