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

Loading...
Searching...
No Matches
cmp_interface.h
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 CMP_INTERFACE_H
39#define CMP_INTERFACE_H
40
41// Section: Included Files
42
43#include <stdbool.h>
44#include <stddef.h>
45
46// Section: Data Type Definitions
47
54 struct DAC_DC_INTERFACE
55{
56 void (*Enable)(void);
58
59 void (*Disable)(void);
61
62 void (*DataWrite)(size_t value);
64};
65
72 struct CMP_INTERFACE
73{
74 void (*Initialize)(void);
76
77 void (*Deinitialize)(void);
79
80 void (*Enable)(void);
82
83 void (*Disable)(void);
85
86 bool (*StatusGet)(void);
88
89 void (*EventCallbackRegister)(void (*handler)(void));
91
92
93 void (*Tasks)(void);
95
96 const struct DAC_DC_INTERFACE *cmp_dac_dc_interface;
98};
99
100#endif
DAC_DC_INTERFACE
Structure containing the function pointers of DAC driver in DC mode.
Definition cmp_interface.h:55
DAC_DC_INTERFACE::Enable
void(* Enable)(void)
Pointer to CMPx_DACEnable e.g. CMP1_DACEnable.
Definition cmp_interface.h:56
DAC_DC_INTERFACE::DataWrite
void(* DataWrite)(size_t value)
Pointer to CMPx_DACDataWrite e.g. CMP1_DACDataWrite.
Definition cmp_interface.h:62
DAC_DC_INTERFACE::Disable
void(* Disable)(void)
Pointer to CMPx_DACDisable e.g. CMP1_DACDisable.
Definition cmp_interface.h:59
CMP_INTERFACE
Structure containing the function pointers of CMP driver.
Definition cmp_interface.h:73
CMP_INTERFACE::Enable
void(* Enable)(void)
Pointer to CMPx_Enable e.g. CMP1_Enable.
Definition cmp_interface.h:80
CMP_INTERFACE::Tasks
void(* Tasks)(void)
Pointer to CMPx_Tasks e.g. CMP1_Tasks (Supported only in polling mode)
Definition cmp_interface.h:93
CMP_INTERFACE::StatusGet
bool(* StatusGet)(void)
Pointer to CMPx_StatusGet e.g. CMP1_StatusGet.
Definition cmp_interface.h:86
CMP_INTERFACE::cmp_dac_dc_interface
const struct DAC_DC_INTERFACE * cmp_dac_dc_interface
Pointer to DAC_DC_INTERFACE.
Definition cmp_interface.h:96
CMP_INTERFACE::Disable
void(* Disable)(void)
Pointer to CMPx_Disable e.g. CMP1_Disable.
Definition cmp_interface.h:83
CMP_INTERFACE::EventCallbackRegister
void(* EventCallbackRegister)(void(*handler)(void))
Pointer to CMPx_EventCallbackRegister e.g. CMP1_EventCallbackRegister.
Definition cmp_interface.h:89
CMP_INTERFACE::Deinitialize
void(* Deinitialize)(void)
Pointer to CMPx_Deinitialize e.g. CMP1_Deinitialize.
Definition cmp_interface.h:77
CMP_INTERFACE::Initialize
void(* Initialize)(void)
Pointer to CMPx_Initialize e.g. CMP1_Initialize.
Definition cmp_interface.h:74