88 DACCTRL1Lbits.DACON = 1;
93 DACCTRL1Lbits.DACON = 0;
113 return (DAC1CONLbits.CMPSTAT);
118 DACCTRL1Lbits.DACON = 1;
123 DACCTRL1Lbits.DACON = 0;
128 DAC1CONLbits.DACEN = 1;
133 DAC1CONLbits.DACEN = 0;
138 DAC1DATHbits.DACDATH = value;
156 if(IFS4bits.CMP1IF == 1)
161 (*CMP1_EventHandler)();
const struct CMP_INTERFACE CMP_DAC1
Structure object of type CMP_INTERFACE with the custom name given by the user in the Melody Driver Us...
void CMP1_Enable(void)
Enables the common DAC module.
void CMP1_EventCallback(void)
This is the default callback with weak attribute. The user can override and implement the default cal...
bool CMP1_StatusGet(void)
Returns the comparator output status.
void CMP1_Deinitialize(void)
Deinitializes the CMP1 to POR values.
void CMP1_Tasks(void)
The Task function can be called in the main application using the High Speed Comparator,...
void CMP1_Initialize(void)
Initialize the CMP1 module.
void CMP1_DACEnable(void)
Enables the individual DAC module.
void CMP1_DACDisable(void)
Disables the individual DAC module.
void CMP1_Disable(void)
Disables the common DAC module.
void CMP1_EventCallbackRegister(void(*handler)(void))
This function can be used to override default callback and to define custom callback for CMP1 Event e...
void CMP1_DACDataWrite(size_t value)
CMP DAC Data write to register.
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.
This is the generated driver header file for the CMP1 driver.
const struct DAC_DC_INTERFACE dac1_dc_interface
static void(* CMP1_EventHandler)(void)