Bar Logo Dual Active Bridge Development Board (Part-No. )
 
Content
     
Loading...
Searching...
No Matches

This is the generated driver source file for CMP3 driver. More...

#include <xc.h>
#include "../cmp3.h"
+ Include dependency graph for cmp3.c:

Go to the source code of this file.

Functions

void CMP3_Initialize (void)
 Initialize the CMP3 module.
 
void CMP3_Deinitialize (void)
 Deinitializes the CMP3 to POR values.
 
bool CMP3_StatusGet (void)
 Returns the comparator output status.
 
void CMP3_Enable (void)
 Enables the common DAC module.
 
void CMP3_Disable (void)
 Disables the common DAC module.
 
void CMP3_DACEnable (void)
 Enables the individual DAC module.
 
void CMP3_DACDisable (void)
 Disables the individual DAC module.
 
void CMP3_DACDataWrite (size_t value)
 CMP DAC Data write to register.
 
void CMP3_EventCallbackRegister (void(*handler)(void))
 This function can be used to override default callback and to define custom callback for CMP3 Event event.
 
void __attribute__ ((weak))
 
void CMP3_Tasks (void)
 The Task function can be called in the main application using the High Speed Comparator, when interrupts are not used. This would thus introduce the polling mode feature of the Analog Comparator.
 

Variables

static void(* CMP3_EventHandler )(void) = NULL
 
const struct DAC_DC_INTERFACE dac3_dc_interface
 
const struct CMP_INTERFACE CMP_IPRI_SC
 Structure object of type CMP_INTERFACE with the custom name given by the user in the Melody Driver User interface. The default name e.g. CMP_DAC1 can be changed by the user in the CMP user interface. This allows defining a structure with application specific name using the 'Custom Name' field. Application specific name allows the API Portability.
 

Detailed Description

CMP3 Generated Driver Source File

Definition in file cmp3.c.

Function Documentation

◆ __attribute__()

void __attribute__ ( (weak)  )

Definition at line 149 of file cmp3.c.

Variable Documentation

◆ CMP3_EventHandler

void(* CMP3_EventHandler) (void) ( void  ) = NULL
static

Definition at line 46 of file cmp3.c.

◆ dac3_dc_interface

const struct DAC_DC_INTERFACE dac3_dc_interface
Initial value:
= {
.Enable = &CMP3_DACEnable,
.Disable = &CMP3_DACDisable,
.DataWrite = &CMP3_DACDataWrite,
}
void CMP3_DACDataWrite(size_t value)
CMP DAC Data write to register.
Definition cmp3.c:136
void CMP3_DACEnable(void)
Enables the individual DAC module.
Definition cmp3.c:126
void CMP3_DACDisable(void)
Disables the individual DAC module.
Definition cmp3.c:131

Definition at line 49 of file cmp3.c.