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

Loading...
Searching...
No Matches
clc1.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 CLC1_H
39#define CLC1_H
40
41// Section: Included Files
42
43#include <xc.h>
44#include <stdint.h>
45#include <stdbool.h>
46#include "clc_interface.h"
47
48// Section: Data Type Definitions
49
60extern const struct CLC_INTERFACE CLC1;
61// Section: Driver Interface Functions
62
69void CLC1_Initialize(void);
70
77void CLC1_Deinitialize(void);
78
87bool CLC1_OutputStatusGet(void);
88
97 inline static void CLC1_Enable(void)
98{
99 CLC1CONLbits.LCEN = 1;
100}
101
110 inline static void CLC1_Disable(void)
111{
112 CLC1CONLbits.LCEN = 0;
113}
114
122void CLC1_PositiveEdgeCallbackRegister(void (*handler)(void));
123
132 void CLC1_PositiveEdgeCallback(void);
133
141void CLC1_NegativeEdgeCallbackRegister(void (*handler)(void));
142
151 void CLC1_NegativeEdgeCallback(void);
152
153
165void CLC1_Tasks(void);
166
167#endif // CLC1_H
CLC1_Deinitialize
void CLC1_Deinitialize(void)
Deinitializes the CLC1 to POR values.
Definition clc1.c:85
CLC1_PositiveEdgeCallback
void CLC1_PositiveEdgeCallback(void)
This is the default callback with weak attribute. The user can override and implement the default cal...
CLC1_Disable
static void CLC1_Disable(void)
This inline function disables the CLC1 module.
Definition clc1.h:110
CLC1_Enable
static void CLC1_Enable(void)
This inline function enables the CLC1 module.
Definition clc1.h:97
CLC1_Initialize
void CLC1_Initialize(void)
Initializes the CLC1 module.
Definition clc1.c:63
CLC1_Tasks
void CLC1_Tasks(void)
Implements the tasks for polled implementations where the hardware supports dedicated event for Posit...
Definition clc1.c:124
CLC1_NegativeEdgeCallbackRegister
void CLC1_NegativeEdgeCallbackRegister(void(*handler)(void))
This function can be used to override default callback and to define custom callback for CLC1 Negativ...
Definition clc1.c:109
CLC1_PositiveEdgeCallbackRegister
void CLC1_PositiveEdgeCallbackRegister(void(*handler)(void))
This function can be used to override default callback and to define custom callback for CLC1 Positiv...
Definition clc1.c:96
CLC1_NegativeEdgeCallback
void CLC1_NegativeEdgeCallback(void)
This is the default callback with weak attribute. The user can override and implement the default cal...
CLC1
const struct CLC_INTERFACE CLC1
Structure object of type CLC_INTERFACE with the custom name given by the user in the Melody Driver Us...
Definition clc1.c:51
CLC1_OutputStatusGet
bool CLC1_OutputStatusGet(void)
Returns output pin status of the CLC1 module.
Definition clc1.c:148
CLC_INTERFACE
Structure containing the function pointers of CLC driver.
Definition clc_interface.h:52