|  | Dual Active Bridge Development Board (Part-No. ) |
Content |  |  |  |  |  |

Loading...
Searching...
No Matches
cmp2.h
Go to the documentation of this file.
1
17/*
18© [2024] Microchip Technology Inc. and its subsidiaries.
19
20 Subject to your compliance with these terms, you may use Microchip
21 software and any derivatives exclusively with Microchip products.
22 You are responsible for complying with 3rd party license terms
23 applicable to your use of 3rd party software (including open source
24 software) that may accompany Microchip software. SOFTWARE IS ?AS IS.?
25 NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS
26 SOFTWARE, INCLUDING ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT,
27 MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT
28 WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,
29 INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY
30 KIND WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF
31 MICROCHIP HAS BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE
32 FORESEEABLE. TO THE FULLEST EXTENT ALLOWED BY LAW, MICROCHIP?S
33 TOTAL LIABILITY ON ALL CLAIMS RELATED TO THE SOFTWARE WILL NOT
34 EXCEED AMOUNT OF FEES, IF ANY, YOU PAID DIRECTLY TO MICROCHIP FOR
35 THIS SOFTWARE.
36*/
37
38#ifndef CMP2_H
39#define CMP2_H
40
41// Section: Included Files
42
43#include <stddef.h>
44#include <stdbool.h>
45#include "cmp_interface.h"
46
47// Section: Data Type Definitions
48
59extern const struct CMP_INTERFACE DAC_DEBUG;
60
65#define DAC_DEBUG_Initialize CMP2_Initialize
70#define DAC_DEBUG_Deinitialize CMP2_Deinitialize
75#define DAC_DEBUG_StatusGet CMP2_StatusGet
80#define DAC_DEBUG_Enable CMP2_Enable
85#define DAC_DEBUG_Disable CMP2_Disable
90#define DAC_DEBUG_DACEnable CMP2_DACEnable
95#define DAC_DEBUG_DACDisable CMP2_DACDisable
100#define DAC_DEBUG_DACDataWrite CMP2_DACDataWrite
105#define DAC_DEBUG_DACDisable CMP2_DACDisable
110#define DAC_DEBUG_EventCallbackRegister CMP2_EventCallbackRegister
115#define DAC_DEBUG_Tasks CMP2_Tasks
116
117// Section: CMP2 Module APIs
118
126void CMP2_Initialize(void);
127
134void CMP2_Deinitialize(void);
135
143bool CMP2_StatusGet(void);
144
151void CMP2_Enable(void);
152
159void CMP2_Disable(void);
160
167void CMP2_DACEnable(void);
168
175void CMP2_DACDisable(void);
176
183void CMP2_DACDataWrite(size_t value);
184
192void CMP2_EventCallbackRegister(void (*handler)(void));
193
203 void CMP2_EventCallback(void);
204
213void CMP2_Tasks(void);
214
215#endif //CMP2_H
216
CMP2_StatusGet
bool CMP2_StatusGet(void)
Returns the comparator output status.
Definition cmp2.c:111
CMP2_Disable
void CMP2_Disable(void)
Disables the common DAC module.
Definition cmp2.c:121
CMP2_Initialize
void CMP2_Initialize(void)
Initialize the CMP2 module.
Definition cmp2.c:69
CMP2_EventCallbackRegister
void CMP2_EventCallbackRegister(void(*handler)(void))
This function can be used to override default callback and to define custom callback for CMP2 Event e...
Definition cmp2.c:141
CMP2_Deinitialize
void CMP2_Deinitialize(void)
Deinitializes the CMP2 to POR values.
Definition cmp2.c:91
CMP2_DACEnable
void CMP2_DACEnable(void)
Enables the individual DAC module.
Definition cmp2.c:126
CMP2_EventCallback
void CMP2_EventCallback(void)
This is the default callback with weak attribute. The user can override and implement the default cal...
CMP2_DACDisable
void CMP2_DACDisable(void)
Disables the individual DAC module.
Definition cmp2.c:131
DAC_DEBUG
const struct CMP_INTERFACE DAC_DEBUG
Structure object of type CMP_INTERFACE with the custom name given by the user in the Melody Driver Us...
Definition cmp2.c:55
CMP2_DACDataWrite
void CMP2_DACDataWrite(size_t value)
CMP DAC Data write to register.
Definition cmp2.c:136
CMP2_Tasks
void CMP2_Tasks(void)
The Task function can be called in the main application using the High Speed Comparator,...
Definition cmp2.c:154
CMP2_Enable
void CMP2_Enable(void)
Enables the common DAC module.
Definition cmp2.c:116
CMP_INTERFACE
Structure containing the function pointers of CMP driver.
Definition cmp_interface.h:73