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

Loading...
Searching...
No Matches
cmp1.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 CMP1_H
39#define CMP1_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 CMP_ISEC_SC;
60
65#define CMP_ISEC_SC_Initialize CMP1_Initialize
70#define CMP_ISEC_SC_Deinitialize CMP1_Deinitialize
75#define CMP_ISEC_SC_StatusGet CMP1_StatusGet
80#define CMP_ISEC_SC_Enable CMP1_Enable
85#define CMP_ISEC_SC_Disable CMP1_Disable
90#define CMP_ISEC_SC_DACEnable CMP1_DACEnable
95#define CMP_ISEC_SC_DACDisable CMP1_DACDisable
100#define CMP_ISEC_SC_DACDataWrite CMP1_DACDataWrite
105#define CMP_ISEC_SC_DACDisable CMP1_DACDisable
110#define CMP_ISEC_SC_EventCallbackRegister CMP1_EventCallbackRegister
115#define CMP_ISEC_SC_Tasks CMP1_Tasks
116
117// Section: CMP1 Module APIs
118
126void CMP1_Initialize(void);
127
134void CMP1_Deinitialize(void);
135
143bool CMP1_StatusGet(void);
144
151void CMP1_Enable(void);
152
159void CMP1_Disable(void);
160
167void CMP1_DACEnable(void);
168
175void CMP1_DACDisable(void);
176
183void CMP1_DACDataWrite(size_t value);
184
192void CMP1_EventCallbackRegister(void (*handler)(void));
193
203 void CMP1_EventCallback(void);
204
213void CMP1_Tasks(void);
214
215#endif //CMP1_H
216
CMP1_Enable
void CMP1_Enable(void)
Enables the common DAC module.
Definition cmp1.c:116
CMP1_EventCallback
void CMP1_EventCallback(void)
This is the default callback with weak attribute. The user can override and implement the default cal...
CMP1_StatusGet
bool CMP1_StatusGet(void)
Returns the comparator output status.
Definition cmp1.c:111
CMP1_Deinitialize
void CMP1_Deinitialize(void)
Deinitializes the CMP1 to POR values.
Definition cmp1.c:91
CMP1_Tasks
void CMP1_Tasks(void)
The Task function can be called in the main application using the High Speed Comparator,...
Definition cmp1.c:154
CMP_ISEC_SC
const struct CMP_INTERFACE CMP_ISEC_SC
Structure object of type CMP_INTERFACE with the custom name given by the user in the Melody Driver Us...
Definition cmp1.c:55
CMP1_Initialize
void CMP1_Initialize(void)
Initialize the CMP1 module.
Definition cmp1.c:69
CMP1_DACEnable
void CMP1_DACEnable(void)
Enables the individual DAC module.
Definition cmp1.c:126
CMP1_DACDisable
void CMP1_DACDisable(void)
Disables the individual DAC module.
Definition cmp1.c:131
CMP1_Disable
void CMP1_Disable(void)
Disables the common DAC module.
Definition cmp1.c:121
CMP1_EventCallbackRegister
void CMP1_EventCallbackRegister(void(*handler)(void))
This function can be used to override default callback and to define custom callback for CMP1 Event e...
Definition cmp1.c:141
CMP1_DACDataWrite
void CMP1_DACDataWrite(size_t value)
CMP DAC Data write to register.
Definition cmp1.c:136
CMP_INTERFACE
Structure containing the function pointers of CMP driver.
Definition cmp_interface.h:73