S32 SDK
lpspi_shared_function.c File Reference
#include <assert.h>
#include "lpspi_hw_access.h"

Go to the source code of this file.

Functions

void LPSPI_DRV_IRQHandler (uint32_t instance)
 The function LPSPI_DRV_IRQHandler passes IRQ control to either the master or slave driver. More...
 
void LPSPI_DRV_FillupTxBuffer (uint32_t instance)
 Fill up the TX FIFO with data. This function fills up the TX FIFO with data based on the bytes/frame. This is not a public API as it is called from other driver functions. More...
 
void LPSPI_DRV_ReadRXBuffer (uint32_t instance)
 Read all data from RX FIFO This function will read all data from RX FIFO and will transfer this infromation in RX software bufeer. This is not a public API as it is called from other driver functions. More...
 
void LPSPI_DRV_DisableTEIEInterrupts (uint32_t instance)
 Disable the TEIE interrupts at the end of a transfer. Disable the interrupts and clear the status for transmit/receive errors. More...
 

Variables

LPSPI_Typeg_lpspiBase [LPSPI_INSTANCE_COUNT] = LPSPI_BASE_PTRS
 Table of base pointers for SPI instances. More...
 
IRQn_Type g_lpspiIrqId [LPSPI_INSTANCE_COUNT] = LPSPI_IRQS
 Table to save LPSPI IRQ enumeration numbers defined in the CMSIS header file. More...
 
lpspi_state_tg_lpspiStatePtr [LPSPI_INSTANCE_COUNT] = FEATURE_LPSPI_STATE_STRUCTURES_NULL