This is the generated driver header file for the CMP2 driver. More...
#include <stddef.h>
#include <stdbool.h>
#include "cmp_interface.h"
Go to the source code of this file.
Macros | |
#define | DAC_DEBUG_Initialize CMP2_Initialize |
This macro defines the Custom Name for CMP2_Initialize API. | |
#define | DAC_DEBUG_Deinitialize CMP2_Deinitialize |
This macro defines the Custom Name for CMP2_Deinitialize API. | |
#define | DAC_DEBUG_StatusGet CMP2_StatusGet |
This macro defines the Custom Name for CMP2_StatusGet API. | |
#define | DAC_DEBUG_Enable CMP2_Enable |
This macro defines the Custom Name for CMP2_Enable API. | |
#define | DAC_DEBUG_Disable CMP2_Disable |
This macro defines the Custom Name for CMP2_Disable API. | |
#define | DAC_DEBUG_DACEnable CMP2_DACEnable |
This macro defines the Custom Name for CMP2_DACEnable API. | |
#define | DAC_DEBUG_DACDisable CMP2_DACDisable |
This macro defines the Custom Name for CMP2_DACDisable API. | |
#define | DAC_DEBUG_DACDataWrite CMP2_DACDataWrite |
This macro defines the Custom Name for CMP2_DACDataWrite API. | |
#define | DAC_DEBUG_DACDisable CMP2_DACDisable |
This macro defines the Custom Name for CMP2_DACDisable API. | |
#define | DAC_DEBUG_EventCallbackRegister CMP2_EventCallbackRegister |
This macro defines the Custom Name for CMP2_EventCallbackRegister API. | |
#define | DAC_DEBUG_Tasks CMP2_Tasks |
This macro defines the Custom Name for CMP2_Tasks API. | |
Functions | |
void | CMP2_Initialize (void) |
Initialize the CMP2 module. | |
void | CMP2_Deinitialize (void) |
Deinitializes the CMP2 to POR values. | |
bool | CMP2_StatusGet (void) |
Returns the comparator output status. | |
void | CMP2_Enable (void) |
Enables the common DAC module. | |
void | CMP2_Disable (void) |
Disables the common DAC module. | |
void | CMP2_DACEnable (void) |
Enables the individual DAC module. | |
void | CMP2_DACDisable (void) |
Disables the individual DAC module. | |
void | CMP2_DACDataWrite (size_t value) |
CMP DAC Data write to register. | |
void | CMP2_EventCallbackRegister (void(*handler)(void)) |
This function can be used to override default callback and to define custom callback for CMP2 Event event. | |
void | CMP2_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 CMP2_EventCallbackRegister. | |
void | CMP2_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 | |
const struct CMP_INTERFACE | DAC_DEBUG |
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. | |
CMP2 Generated Driver Header File
Definition in file cmp2.h.