70 if( CMPx == ( CMPn_Type* )CMP0 )
79 if( CMPx == ( CMPn_Type* )CMP1 )
112 if( CMPx == ( CMPn_Type* )CMP0 )
121 if( CMPx == ( CMPn_Type* )CMP1 )
160 CMPx->CR_b.CMPnPOS = PositiveInputPin;
192 CMPx->CR_b.CMPnNEG = NegativeInputPin;
220 CMPx->CR_b.HYSnEN = ControlValue;
248 CMPx->CR_b.CMPnSPD = Speed;
281 CMPx->CR_b.NFCKn = SamplingClock;
311 CMPx->CR_b.CMPnPOL = Polarity;
348 CMPx->RCR_b.REFnEN = ControlValue;
349 CMPx->RCR_b.CMPnREF = RefVoltage;
374 CMPx->CR_b.CMPnEN = CMPn_CR_CMPnEN_Enable;
399 CMPx->CR_b.CMPnEN = CMPn_CR_CMPnEN_Disable;
429 case CMPn_SR_CMPnIFLAG_Msk:
431 | CMPn_SR_CMPnIFLAG_Msk
HAL_Status_Type HAL_COMP_ConfigInterruptPolarity(CMPn_Type *CMPx, CMPn_CR_CMPnPOL_Enum Polarity)
Select the interrupt trigger polarity.
uint32_t HAL_COMP_GetStatus(CMPn_Type *CMPx)
Get the Status Register.
HAL_Status_Type HAL_COMP_ConfigPositiveInput(CMPn_Type *CMPx, CMPn_CR_CMPnPOS_Enum PositiveInputPin)
Select the positive input pin of a comparator.
void HAL_SCU_Peripheral_EnableClock2(uint32_t u32PeriClk2, uint32_t u32Ind)
Set Each Peripheral Clock.
Contains all macro definitions and function prototypes support for cmpn firmware library on A31L12x.
HAL_Status_Type HAL_COMP_Deinit(CMPn_Type *CMPx)
Deinitialize the target peripheral.
HAL_Status_Type HAL_COMP_ClearStatus(CMPn_Type *CMPx, uint32_t mask)
Clear the Status Register.
HAL_Status_Type HAL_COMP_ConfigIntRef(CMPn_Type *CMPx, CMPn_RCR_REFnEN_Enum ControlValue, CMPn_RCR_CMPnREF_Enum RefVoltage)
Control the reference voltage generator and select the reference voltage.
HAL_Status_Type HAL_COMP_ConfigNegativeInput(CMPn_Type *CMPx, CMPn_CR_CMPnNEG_Enum NegativeInputPin)
Select the negative input pin of a comparator.
HAL_Status_Type HAL_COMP_Disable(CMPn_Type *CMPx)
Disable the comparator function.
HAL_Status_Type HAL_COMP_ConfigHysteresis(CMPn_Type *CMPx, CMPn_CR_HYSnEN_Enum ControlValue)
Control the hysteresis function.
HAL_Status_Type HAL_COMP_Enable(CMPn_Type *CMPx)
Enable the comparator function.
HAL_Status_Type HAL_COMP_ConfigNoiseFilter(CMPn_Type *CMPx, CMPn_CR_NFCKn_Enum SamplingClock)
Select the sampling clock of a noise filter.
void HAL_SCU_Peripheral_SetReset2(uint32_t u32EachPeri2)
Set/Reset Each Peripheral Block Reset of PPRST2 Register.
HAL_Status_Type HAL_COMP_Init(CMPn_Type *CMPx)
Initialize the target peripheral.
Contains all macro definitions and function prototypes support for scu firmware library on A31L12x.
HAL_Status_Type HAL_COMP_ConfigSpeed(CMPn_Type *CMPx, CMPn_CR_CMPnSPD_Enum Speed)
Select the speed of a comparator.