28#include "main_core_interface.h"
47#define MSIInterface_Initialize MAIN_CORE_Initialize
53#define MSIInterface_Deinitialize MAIN_CORE_Deinitialize
59#define MSIInterface_InterruptRequestGenerate MAIN_CORE_InterruptRequestGenerate
65#define MSIInterface_IsInterruptRequestAcknowledged MAIN_CORE_IsInterruptRequestAcknowledged
71#define MSIInterface_InterruptRequestComplete MAIN_CORE_InterruptRequestComplete
77#define MSIInterface_IsInterruptRequested MAIN_CORE_IsInterruptRequested
83#define MSIInterface_InterruptRequestAcknowledge MAIN_CORE_InterruptRequestAcknowledge
89#define MSIInterface_InterruptRequestAcknowledgeComplete MAIN_CORE_InterruptRequestAcknowledgeComplete
95#define MSIInterface_SystemStatusGet MAIN_CORE_SystemStatusGet
101#define MSIInterface_FIFORead MAIN_CORE_FIFORead
107#define MSIInterface_FIFOWrite MAIN_CORE_FIFOWrite
113#define MSIInterface_FIFOReadIsFull MAIN_CORE_FIFOReadIsFull
119#define MSIInterface_FIFOReadIsEmpty MAIN_CORE_FIFOReadIsEmpty
125#define MSIInterface_FIFOWriteIsFull MAIN_CORE_FIFOWriteIsFull
131#define MSIInterface_FIFOWriteIsEmpty MAIN_CORE_FIFOWriteIsEmpty
137#define MSIInterface_ProtocolWrite MAIN_CORE_ProtocolWrite
143#define MSIInterface_ProtocolRead MAIN_CORE_ProtocolRead
149#define MSIInterface_ProtocolIsFull MAIN_CORE_ProtocolIsFull
155#define MSIInterface_ProtocolIsEmpty MAIN_CORE_ProtocolIsEmpty
264 return(SI1FIFOCSbits.SRFFULL);
277 return(SI1FIFOCSbits.SRFEMPTY);
290 return(SI1FIFOCSbits.SWFFULL);
303 return(SI1FIFOCSbits.SWFEMPTY);
341 status = SI1MBXSbits.DTRDYA;
344 status = SI1MBXSbits.DTRDYB;
368 status = !SI1MBXSbits.DTRDYA;
371 status = !SI1MBXSbits.DTRDYB;
This is the generated driver types header file for the MAIN_CORE driver.
const struct MAIN_CORE_INTERFACE MSIInterface
Structure object of type MAIN_CORE_INTERFACE with the custom name given by the user in the Melody Dri...
MAIN_CORE_SYSTEM_STATUS
Defines the status enumeration for main_core.
static bool MAIN_CORE_FIFOReadIsEmpty(void)
This inline function checks whether the status of Read FIFO is Empty. Returns true if last read by Ma...
static bool MAIN_CORE_FIFOWriteIsFull(void)
This inline function checks whether the status of Write FIFO is Full. Returns true if last write by M...
uint16_t MAIN_CORE_FIFORead(uint16_t *pData, uint16_t wordCount)
This routine reads FIFO data sent from the Main Core.
bool MAIN_CORE_IsInterruptRequestAcknowledged(void)
This routine returns the status of interrupt request acknowledge from the MAIN_CORE.
uint16_t MAIN_CORE_FIFOWrite(uint16_t *pData, uint16_t wordCount)
This routine transfers FIFO data to Main Core.
bool MAIN_CORE_IsInterruptRequested(void)
This routine returns the status of interrupt request from the MAIN_CORE.
bool MAIN_CORE_ProtocolWrite(enum MAIN_CORE_PROTOCOLS protocolName, uint16_t *pData)
This routine writes data to mailbox.
bool MAIN_CORE_ProtocolRead(enum MAIN_CORE_PROTOCOLS protocolName, uint16_t *pData)
This routine reads data from mailbox.
enum MAIN_CORE_SYSTEM_STATUS MAIN_CORE_SystemStatusGet(void)
This routine returns Main system status.
void MAIN_CORE_Initialize(void)
This routine initializes the MSI driver. This routine must be called before any other MSI routine is ...
void MAIN_CORE_InterruptRequestAcknowledgeComplete(void)
This routine clears acknowledge for interrupt received from Main MSI.
static bool MAIN_CORE_ProtocolIsFull(enum MAIN_CORE_PROTOCOLS protocolName)
This inline function checks whether mailbox is full. Returns true if New data are ready to read....
void MAIN_CORE_InterruptRequestComplete(void)
This routine clears interrupt to MAIN_CORE.
MAIN_CORE_PROTOCOLS
Defines the list of Protocols configured for MAIN_CORE_driver.
void MAIN_CORE_Deinitialize(void)
Deinitializes MAIN_CORE to POR values.
static bool MAIN_CORE_FIFOWriteIsEmpty(void)
This inline function checks whether the status of Write FIFO is Empty. Returns true if last write by ...
static bool MAIN_CORE_ProtocolIsEmpty(enum MAIN_CORE_PROTOCOLS protocolName)
This inline function checks whether mailbox is empty. Returns true if Protocol is empty indicating ma...
void MAIN_CORE_InterruptRequestAcknowledge(void)
This routine acknowledges interrupt received from Main MSI.
static bool MAIN_CORE_FIFOReadIsFull(void)
This inline function checks whether the status of Read FIFO is full. last write by Secondary core to ...
void MAIN_CORE_InterruptRequestGenerate(void)
This routine generates interrupt to MAIN_CORE.
Structure containing the function pointers of MAIN_CORE driver.