Bar Logo 4kW dsPIC33C PSFB DC-DC DA (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 __attribute__ ((interrupt, no_auto_psv))
 

Variables

static void(* CMP3_EventHandler )(void) = NULL
 
const struct DAC_DC_INTERFACE dac3_dc_interface
 
const struct CMP_INTERFACE CMP_DAC3_PCT
 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__() [1/2]

void __attribute__ ( (interrupt, no_auto_psv) )

Definition at line 160 of file cmp3.c.

◆ __attribute__() [2/2]

void __attribute__ ( (weak) )

Definition at line 155 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:142
void CMP3_DACEnable(void)
Enables the individual DAC module.
Definition cmp3.c:132
void CMP3_DACDisable(void)
Disables the individual DAC module.
Definition cmp3.c:137

Definition at line 49 of file cmp3.c.