Bar Logo 3.8/7.6 kw Totem pole Demonstration Application (Part-No. (not specified))
 
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
55{
56 void (*Enable)(void);
58
59 void (*Disable)(void);
61
62 void (*DataWrite)(size_t value);
64};
65
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
98};
99
100#endif
Structure containing the function pointers of DAC driver in DC mode.
void(* Disable)(void)
Pointer to CMPx_DACDisable e.g. CMP1_DACDisable.
void(* Enable)(void)
Pointer to CMPx_DACEnable e.g. CMP1_DACEnable.
void(* DataWrite)(size_t value)
Pointer to CMPx_DACDataWrite e.g. CMP1_DACDataWrite.
Structure containing the function pointers of CMP driver.
bool(* StatusGet)(void)
Pointer to CMPx_StatusGet e.g. CMP1_StatusGet.
void(* EventCallbackRegister)(void(*handler)(void))
Pointer to CMPx_EventCallbackRegister e.g. CMP1_EventCallbackRegister.
void(* Disable)(void)
Pointer to CMPx_Disable e.g. CMP1_Disable.
void(* Initialize)(void)
Pointer to CMPx_Initialize e.g. CMP1_Initialize.
void(* Deinitialize)(void)
Pointer to CMPx_Deinitialize e.g. CMP1_Deinitialize.
const struct DAC_DC_INTERFACE * cmp_dac_dc_interface
Pointer to DAC_DC_INTERFACE.
void(* Enable)(void)
Pointer to CMPx_Enable e.g. CMP1_Enable.
void(* Tasks)(void)
Pointer to CMPx_Tasks e.g. CMP1_Tasks (Supported only in polling mode)