Bar Logo 3.8/7.6 kw Totem pole Demonstration Application (Part-No. (not specified))
 
Content
     
Loading...
Searching...
No Matches
sec_core_interface.h
1
15/*
16© [2024] Microchip Technology Inc. and its subsidiaries.
17
18 Subject to your compliance with these terms, you may use Microchip
19 software and any derivatives exclusively with Microchip products.
20 You are responsible for complying with 3rd party license terms
21 applicable to your use of 3rd party software (including open source
22 software) that may accompany Microchip software. SOFTWARE IS ?AS IS.?
23 NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS
24 SOFTWARE, INCLUDING ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT,
25 MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT
26 WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,
27 INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY
28 KIND WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF
29 MICROCHIP HAS BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE
30 FORESEEABLE. TO THE FULLEST EXTENT ALLOWED BY LAW, MICROCHIP?S
31 TOTAL LIABILITY ON ALL CLAIMS RELATED TO THE SOFTWARE WILL NOT
32 EXCEED AMOUNT OF FEES, IF ANY, YOU PAID DIRECTLY TO MICROCHIP FOR
33 THIS SOFTWARE.
34*/
35
36#ifndef SEC_CORE_INTERFACE_H
37#define SEC_CORE_INTERFACE_H
38
39// Section: Included Files
40#include <stddef.h>
41#include <stdint.h>
42#include <stdbool.h>
43#include "sec_core_types.h"
44
45// Section: Data Type Definitions
46
53{
54 void (*Initialize)(void);
56
57 void (*Deinitialize)(void);
59
60 void (*Program)(void);
62
63 void (*Start)(void);
65
68
71
74
75 bool (*IsInterruptRequested)(void);
77
80
83
86
87 void (*ResetCauseClear)(enum SEC_CORE_RESET_CAUSE resetCause);
89
92
93 void (*WriteFIFOEnable)(void);
95
96 void (*WriteFIFODisable)(void);
98
99 void (*ReadFIFOEnable)(void);
101
102 void (*ReadFIFODisable)(void);
104
105 uint16_t (*FIFORead)(uint16_t *pData, uint16_t wordCount);
107
108 uint16_t (*FIFOWrite)(uint16_t *pData, uint16_t wordCount);
110
111 bool (*FIFOReadIsFull)(void);
113
114 bool (*FIFOReadIsEmpty)(void);
116
117 bool (*FIFOWriteIsFull)(void);
119
120 bool (*FIFOWriteIsEmpty)(void);
122
123 bool (*ProtocolRead)(enum SEC_CORE_PROTOCOLS protocolName, uint16_t *pData);
125
126 bool (*ProtocolWrite)(enum SEC_CORE_PROTOCOLS protocolName, uint16_t *pData);
128
129 bool (*ProtocolIsFull)(enum SEC_CORE_PROTOCOLS protocolName);
131
132 bool (*ProtocolIsEmpty)(enum SEC_CORE_PROTOCOLS protocolName);
134
135 void (*ProtocolCallbackRegister)(enum SEC_CORE_PROTOCOLS protocolName, void (*handler)(void));
137
138 void (*ReadFIFODataReadyCallbackRegister)(void (*handler)(void));
140
141 void (*WriteFIFOEmptyCallbackRegister)(void (*handler)(void));
143
144 void (*FIFOOverFLowUnderFlowCallbackRegister)(void (*handler)(void));
146
147 void (*SecondaryInitiatedCallbackRegister)(void (*handler)(void));
149
150 void (*SecondaryBreakCallbackRegister)(void (*handler)(void));
152
153 void (*SecondaryResetCallbackRegister)(void (*handler)(void));
155
156};
157
158#endif // SEC_CORE_INTERFACE_H
159
This is the generated driver types header file for the SEC_CORE driver.
SEC_CORE_RESET_CAUSE
Defines the sec_core reset cause enumeration.
SEC_CORE_SYSTEM_STATUS
Defines the status enumeration for sec_core.
SEC_CORE_PROTOCOLS
Defines the list of Protocols configured for SEC_CORE_driver.
Structure containing the function pointers of SEC_CORE driver.
void(* SecondaryBreakCallbackRegister)(void(*handler)(void))
Pointer to SEC_COREx_SecondaryBreakCallbackRegister e.g. SEC_CORE1_SecondaryBreakCallbackRegister.
void(* ReadFIFODataReadyCallbackRegister)(void(*handler)(void))
Pointer to SEC_COREx_ReadFIFODataReadyCallbackRegister e.g. SEC_CORE1_ReadFIFODataReadyCallbackRegist...
bool(* IsInterruptRequestAcknowledged)(void)
Pointer to SEC_COREx_IsInterruptRequestAcknowledged e.g. SEC_CORE1_IsInterruptRequestAcknowledged.
void(* ProtocolCallbackRegister)(enum SEC_CORE_PROTOCOLS protocolName, void(*handler)(void))
Pointer to SEC_COREx_ProtocolCallbackRegister e.g. SEC_CORE1_ProtocolCallbackRegister.
bool(* IsInterruptRequested)(void)
Pointer to SEC_COREx_IsInterruptRequested e.g. SEC_CORE1_IsInterruptRequested.
bool(* FIFOWriteIsFull)(void)
Pointer to SEC_COREx_FIFOWriteIsFull e.g. SEC_CORE1_FIFOWriteIsFull.
void(* ReadFIFODisable)(void)
Pointer to SEC_COREx_ReadFIFODisable e.g. SEC_CORE1_ReadFIFODisable.
void(* WriteFIFODisable)(void)
Pointer to SEC_COREx_WriteFIFODisable e.g. SEC_CORE1_WriteFIFODisable.
void(* InterruptRequestGenerate)(void)
Pointer to SEC_COREx_InterruptRequestGenerate e.g. SEC_CORE1_InterruptRequestGenerate.
void(* SecondaryResetCallbackRegister)(void(*handler)(void))
Pointer to SEC_COREx_SecondaryResetCallbackRegister e.g. SEC_CORE1_SecondaryResetCallbackRegister.
void(* Program)(void)
Pointer to SEC_COREx_Program e.g. SEC_CORE1_Program.
uint16_t(* FIFORead)(uint16_t *pData, uint16_t wordCount)
Pointer to SEC_COREx_FIFORead e.g. SEC_CORE1_FIFORead.
void(* Start)(void)
Pointer to SEC_COREx_Start e.g. SEC_CORE1_Start.
void(* ReadFIFOEnable)(void)
Pointer to SEC_COREx_ReadFIFOEnable e.g. SEC_CORE1_ReadFIFOEnable.
void(* InterruptRequestComplete)(void)
Pointer to SEC_COREx_InterruptRequestComplete e.g. SEC_CORE1_InterruptRequestComplete.
void(* WriteFIFOEmptyCallbackRegister)(void(*handler)(void))
Pointer to SEC_COREx_WriteFIFOEmptyCallbackRegister e.g. SEC_CORE1_WriteFIFOEmptyCallbackRegister.
void(* FIFOOverFLowUnderFlowCallbackRegister)(void(*handler)(void))
Pointer to SEC_COREx_FIFOOverFLowUnderFlowCallbackRegister e.g. SEC_CORE1_FIFOOverFLowUnderFlowCallba...
bool(* ProtocolWrite)(enum SEC_CORE_PROTOCOLS protocolName, uint16_t *pData)
Pointer to SEC_COREx_ProtocolRead e.g. SEC_CORE1_ProtocolRead.
bool(* FIFOReadIsEmpty)(void)
Pointer to SEC_COREx_FIFOReadIsEmpty e.g. SEC_CORE1_FIFOReadIsEmpty.
enum SEC_CORE_SYSTEM_STATUS(* SystemStatusGet)(void)
Pointer to SEC_COREx_SystemStatusGet e.g. SEC_CORE1_SystemStatusGet.
bool(* ProtocolIsFull)(enum SEC_CORE_PROTOCOLS protocolName)
Pointer to SEC_COREx_ProtocolIsFull e.g. SEC_CORE1_ProtocolIsFull.
bool(* ProtocolRead)(enum SEC_CORE_PROTOCOLS protocolName, uint16_t *pData)
Pointer to SEC_COREx_ProtocolRead e.g. SEC_CORE1_ProtocolRead.
bool(* FIFOReadIsFull)(void)
Pointer to SEC_COREx_FIFOReadIsFull e.g. SEC_CORE1_FIFOReadIsFull.
void(* Deinitialize)(void)
Pointer to SEC_COREx_Deinitialize e.g. SEC_CORE1_Deinitialize.
bool(* FIFOWriteIsEmpty)(void)
Pointer to SEC_COREx_FIFOWriteIsEmpty e.g. SEC_CORE1_FIFOWriteIsEmpty.
void(* WriteFIFOEnable)(void)
Pointer to SEC_COREx_WriteFIFOEnable e.g. SEC_CORE1_WriteFIFOEnable.
enum SEC_CORE_RESET_CAUSE(* GetResetCause)(void)
Pointer to SEC_COREx_GetResetCause e.g. SEC_CORE1_GetResetCause.
void(* SecondaryInitiatedCallbackRegister)(void(*handler)(void))
Pointer to SEC_COREx_SecondaryInitiatedCallbackRegister e.g. SEC_CORE1_SecondaryInitiatedCallbackRegi...
void(* InterruptRequestAcknowledgeComplete)(void)
Pointer to SEC_COREx_InterruptRequestAcknowledgeComplete e.g. SEC_CORE1_InterruptRequestAcknowledgeCo...
uint16_t(* FIFOWrite)(uint16_t *pData, uint16_t wordCount)
Pointer to SEC_COREx_FIFOWrite e.g. SEC_CORE1_FIFOWrite.
void(* InterruptRequestAcknowledge)(void)
Pointer to SEC_COREx_InterruptRequestAcknowledge e.g. SEC_CORE1_InterruptRequestAcknowledge.
void(* ResetCauseClear)(enum SEC_CORE_RESET_CAUSE resetCause)
Pointer to SEC_COREx_ResetCauseClear e.g. SEC_CORE1_ResetCauseClear.
bool(* ProtocolIsEmpty)(enum SEC_CORE_PROTOCOLS protocolName)
Pointer to SEC_COREx_ProtocolIsEmpty e.g. SEC_CORE1_ProtocolIsEmpty.
void(* Initialize)(void)
Pointer to SEC_COREx_Initialize e.g. SEC_CORE1_Initialize.