This is the generated driver header file for the SEC_CORE1 driver. More...
#include <xc.h>
#include <stdint.h>
#include <stdbool.h>
#include "sec_core_types.h"
#include "sec_core_interface.h"
Go to the source code of this file.
Functions | |
void | SEC_CORE1_Initialize (void) |
This routine initializes the MSI driver. This routine must be called before any other MSI routine is called. This routine should only be called once during system initialization. | |
void | SEC_CORE1_Deinitialize (void) |
Deinitializes SEC_CORE1 to POR values. | |
void | SEC_CORE1_Start (void) |
This routine enables secondary core. | |
void | SEC_CORE1_Program (void) |
This routine programs secondary. | |
void | SEC_CORE1_InterruptRequestGenerate (void) |
This routine generates interrupt to SEC_CORE1. | |
bool | SEC_CORE1_IsInterruptRequestAcknowledged (void) |
This routine returns the status of interrupt request acknowledge from the SEC_CORE1. | |
void | SEC_CORE1_InterruptRequestComplete (void) |
This routine clears interrupt to SEC_CORE1. | |
bool | SEC_CORE1_IsInterruptRequested (void) |
This routine returns the status of interrupt request from the SEC_CORE1. | |
void | SEC_CORE1_InterruptRequestAcknowledge (void) |
This routine acknowledges interrupt received from SEC_CORE1. | |
void | SEC_CORE1_InterruptRequestAcknowledgeComplete (void) |
This routine clears acknowledge for interrupt received from SEC_CORE1. | |
enum SEC_CORE_RESET_CAUSE | SEC_CORE1_GetResetCause (void) |
This routine returns the cause for SEC_CORE1 reset. | |
void | SEC_CORE1_ResetCauseClear (enum SEC_CORE_RESET_CAUSE resetCause) |
This routine clears the cause for SEC_CORE1 reset. | |
enum SEC_CORE_SYSTEM_STATUS | SEC_CORE1_SystemStatusGet (void) |
This routine returns Secondary system status. | |
uint16_t | SEC_CORE1_FIFORead (uint16_t *pData, uint16_t wordCount) |
This routine reads FIFO data sent from the SEC_CORE1. | |
uint16_t | SEC_CORE1_FIFOWrite (uint16_t *pData, uint16_t wordCount) |
This routine transfers FIFO data to SEC_CORE1. | |
static void | SEC_CORE1_WriteFIFOEnable (void) |
This inline function Enables the Write FIFO. | |
static void | SEC_CORE1_WriteFIFODisable (void) |
This inline function Disables the Write FIFO. | |
static void | SEC_CORE1_ReadFIFOEnable (void) |
This inline function Enables the Read FIFO. | |
static void | SEC_CORE1_ReadFIFODisable (void) |
This inline function Disables the Read FIFO. | |
static bool | SEC_CORE1_FIFOReadIsFull (void) |
This inline function checks whether the status of Read FIFO is full. last write by Secondary core to Read FIFO (RFDATA) was into the last free location. | |
static bool | SEC_CORE1_FIFOReadIsEmpty (void) |
This inline function checks whether the status of Read FIFO is Empty. Returns true if last read by Main core from Read FIFO (RFDATA) emptied the FIFO of all valid data or FIFO is disabled (and initialized to the empty state) | |
static bool | SEC_CORE1_FIFOWriteIsFull (void) |
This inline function checks whether the status of Write FIFO is Full. Returns true if last write by Main core to Write FIFO (WFDATA) was into the last free location. | |
static bool | SEC_CORE1_FIFOWriteIsEmpty (void) |
This inline function checks whether the status of Write FIFO is Empty. Returns true if last write by Main core to Write FIFO (WFDATA) was into the last free location. | |
bool | SEC_CORE1_ProtocolWrite (enum SEC_CORE_PROTOCOLS protocolName, uint16_t *pData) |
This routine writes data to mailbox. | |
bool | SEC_CORE1_ProtocolRead (enum SEC_CORE_PROTOCOLS protocolName, uint16_t *pData) |
This routine reads data from mailbox. | |
static bool | SEC_CORE1_ProtocolIsFull (enum SEC_CORE_PROTOCOLS protocolName) |
This inline function checks whether mailbox is full. Returns true if new data are ready to read. Returns false when no data are available to be read by secondary. | |
static bool | SEC_CORE1_ProtocolIsEmpty (enum SEC_CORE_PROTOCOLS protocolName) |
This inline function checks whether mailbox is empty. Returns true if Protocol is empty indicating mailbox is ready to write by secondary. Returns false indicating write operation cannot be performed by secondary. | |
Variables | |
const struct SEC_CORE_INTERFACE | MSIInterface |
Structure object of type SEC_CORE_INTERFACE with the custom name given by the user in the Melody Driver User interface. The default name e.g. Secondary1 can be changed by the user in the SEC_CORE user interface. This allows defining a structure with application specific name using the 'Custom Name' field. Application specific name allows the API Portability. | |
SEC_CORE1 Generated Driver Header File
Definition in file sec_core1.h.