88 DACCTRL1Lbits.DACON = 1;
93 DACCTRL1Lbits.DACON = 0;
113 return (DAC2CONLbits.CMPSTAT);
118 DACCTRL1Lbits.DACON = 1;
123 DACCTRL1Lbits.DACON = 0;
128 DAC2CONLbits.DACEN = 1;
133 DAC2CONLbits.DACEN = 0;
138 DAC2DATHbits.DACDATH = value;
156 if(IFS4bits.CMP2IF == 1)
161 (*CMP2_EventHandler)();
void __attribute__((weak))
static void(* CMP2_EventHandler)(void)
const struct DAC_DC_INTERFACE dac2_dc_interface
bool CMP2_StatusGet(void)
Returns the comparator output status.
void CMP2_Disable(void)
Disables the common DAC module.
void CMP2_Initialize(void)
Initialize the CMP2 module.
void CMP2_EventCallbackRegister(void(*handler)(void))
This function can be used to override default callback and to define custom callback for CMP2 Event e...
void CMP2_Deinitialize(void)
Deinitializes the CMP2 to POR values.
void CMP2_DACEnable(void)
Enables the individual DAC module.
void CMP2_EventCallback(void)
This is the default callback with weak attribute. The user can override and implement the default cal...
void CMP2_DACDisable(void)
Disables the individual DAC module.
const struct CMP_INTERFACE DAC_DEBUG
Structure object of type CMP_INTERFACE with the custom name given by the user in the Melody Driver Us...
void CMP2_DACDataWrite(size_t value)
CMP DAC Data write to register.
void CMP2_Tasks(void)
The Task function can be called in the main application using the High Speed Comparator,...
void CMP2_Enable(void)
Enables the common DAC module.
Structure containing the function pointers of DAC driver in DC mode.
void(* Enable)(void)
Pointer to CMPx_DACEnable e.g. CMP1_DACEnable.
Structure containing the function pointers of CMP driver.
void(* Initialize)(void)
Pointer to CMPx_Initialize e.g. CMP1_Initialize.