High Speed Analog Comparator with Slope Compensation DAC driver using dsPIC MCUs. More...
Files | |
file | cmp1.h |
This is the generated driver header file for the CMP1 driver. | |
file | cmp3.h |
This is the generated driver header file for the CMP3 driver. | |
file | cmp1.c |
This is the generated driver source file for CMP1 driver. | |
file | cmp3.c |
This is the generated driver source file for CMP3 driver. | |
Data Structures | |
struct | DAC_DC_INTERFACE |
Structure containing the function pointers of DAC driver in DC mode. More... | |
struct | CMP_INTERFACE |
Structure containing the function pointers of CMP driver. More... | |
Macros | |
#define | CMP_DAC1_SEC_Initialize CMP1_Initialize |
This macro defines the Custom Name for CMP1_Initialize API. | |
#define | CMP_DAC1_SEC_Deinitialize CMP1_Deinitialize |
This macro defines the Custom Name for CMP1_Deinitialize API. | |
#define | CMP_DAC1_SEC_StatusGet CMP1_StatusGet |
This macro defines the Custom Name for CMP1_StatusGet API. | |
#define | CMP_DAC1_SEC_Enable CMP1_Enable |
This macro defines the Custom Name for CMP1_Enable API. | |
#define | CMP_DAC1_SEC_Disable CMP1_Disable |
This macro defines the Custom Name for CMP1_Disable API. | |
#define | CMP_DAC1_SEC_DACEnable CMP1_DACEnable |
This macro defines the Custom Name for CMP1_DACEnable API. | |
#define | CMP_DAC1_SEC_DACDisable CMP1_DACDisable |
This macro defines the Custom Name for CMP1_DACDisable API. | |
#define | CMP_DAC1_SEC_DACDisable CMP1_DACDisable |
This macro defines the Custom Name for CMP1_DACDisable API. | |
#define | CMP_DAC1_SEC_DACDataWrite CMP1_DACDataWrite |
This macro defines the Custom Name for CMP1_DACDataWrite API. | |
#define | CMP_DAC1_SEC_EventCallbackRegister CMP1_EventCallbackRegister |
This macro defines the Custom Name for CMP1_EventCallbackRegister API. | |
#define | CMP_DAC1_SEC_Tasks CMP1_Tasks |
This macro defines the Custom Name for CMP1_Tasks API. | |
#define | CMP_DAC3_PCT_Initialize CMP3_Initialize |
This macro defines the Custom Name for CMP3_Initialize API. | |
#define | CMP_DAC3_PCT_Deinitialize CMP3_Deinitialize |
This macro defines the Custom Name for CMP3_Deinitialize API. | |
#define | CMP_DAC3_PCT_StatusGet CMP3_StatusGet |
This macro defines the Custom Name for CMP3_StatusGet API. | |
#define | CMP_DAC3_PCT_Enable CMP3_Enable |
This macro defines the Custom Name for CMP3_Enable API. | |
#define | CMP_DAC3_PCT_Disable CMP3_Disable |
This macro defines the Custom Name for CMP3_Disable API. | |
#define | CMP_DAC3_PCT_DACEnable CMP3_DACEnable |
This macro defines the Custom Name for CMP3_DACEnable API. | |
#define | CMP_DAC3_PCT_DACDisable CMP3_DACDisable |
This macro defines the Custom Name for CMP3_DACDisable API. | |
#define | CMP_DAC3_PCT_DACDisable CMP3_DACDisable |
This macro defines the Custom Name for CMP3_DACDisable API. | |
#define | CMP_DAC3_PCT_DACDataWrite CMP3_DACDataWrite |
This macro defines the Custom Name for CMP3_DACDataWrite API. | |
#define | CMP_DAC3_PCT_EventCallbackRegister CMP3_EventCallbackRegister |
This macro defines the Custom Name for CMP3_EventCallbackRegister API. | |
Functions | |
void | CMP1_Initialize (void) |
Initialize the CMP1 module. | |
void | CMP1_Deinitialize (void) |
Deinitializes the CMP1 to POR values. | |
bool | CMP1_StatusGet (void) |
Returns the comparator output status. | |
void | CMP1_Enable (void) |
Enables the common DAC module. | |
void | CMP1_Disable (void) |
Disables the common DAC module. | |
void | CMP1_DACEnable (void) |
Enables the individual DAC module. | |
void | CMP1_DACDisable (void) |
Disables the individual DAC module. | |
void | CMP1_DACDataWrite (size_t value) |
CMP DAC Data write to register. | |
void | CMP1_EventCallbackRegister (void(*handler)(void)) |
This function can be used to override default callback and to define custom callback for CMP1 Event event. | |
void | CMP1_EventCallback (void) |
This is the default callback with weak attribute. The user can override and implement the default callback without weak attribute or can register a custom callback function using CMP1_EventCallbackRegister. | |
void | CMP1_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. | |
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 | CMP3_EventCallback (void) |
This is the default callback with weak attribute. The user can override and implement the default callback without weak attribute or can register a custom callback function using CMP3_EventCallbackRegister. | |
Variables | |
const struct CMP_INTERFACE | CMP_DAC1_SEC |
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. | |
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. | |
#define CMP_DAC1_SEC_DACDataWrite CMP1_DACDataWrite |
#define CMP_DAC1_SEC_DACDisable CMP1_DACDisable |
#define CMP_DAC1_SEC_DACDisable CMP1_DACDisable |
#define CMP_DAC1_SEC_DACEnable CMP1_DACEnable |
#define CMP_DAC1_SEC_Deinitialize CMP1_Deinitialize |
#define CMP_DAC1_SEC_Disable CMP1_Disable |
#define CMP_DAC1_SEC_Enable CMP1_Enable |
#define CMP_DAC1_SEC_EventCallbackRegister CMP1_EventCallbackRegister |
#define CMP_DAC1_SEC_Initialize CMP1_Initialize |
#define CMP_DAC1_SEC_StatusGet CMP1_StatusGet |
#define CMP_DAC1_SEC_Tasks CMP1_Tasks |
#define CMP_DAC3_PCT_DACDataWrite CMP3_DACDataWrite |
#define CMP_DAC3_PCT_DACDisable CMP3_DACDisable |
#define CMP_DAC3_PCT_DACDisable CMP3_DACDisable |
#define CMP_DAC3_PCT_DACEnable CMP3_DACEnable |
#define CMP_DAC3_PCT_Deinitialize CMP3_Deinitialize |
#define CMP_DAC3_PCT_Disable CMP3_Disable |
#define CMP_DAC3_PCT_Enable CMP3_Enable |
#define CMP_DAC3_PCT_EventCallbackRegister CMP3_EventCallbackRegister |
#define CMP_DAC3_PCT_Initialize CMP3_Initialize |
#define CMP_DAC3_PCT_StatusGet CMP3_StatusGet |
void CMP1_DACDataWrite | ( | size_t | value | ) |
void CMP1_EventCallback | ( | void | ) |
none |
void CMP1_EventCallbackRegister | ( | void(* | handler )(void) | ) |
void CMP1_Initialize | ( | void | ) |
bool CMP1_StatusGet | ( | void | ) |
void CMP3_DACDataWrite | ( | size_t | value | ) |
void CMP3_EventCallback | ( | void | ) |
none |
void CMP3_EventCallbackRegister | ( | void(* | handler )(void) | ) |
void CMP3_Initialize | ( | void | ) |
bool CMP3_StatusGet | ( | void | ) |
|
extern |
|
extern |