M480 BSP V3.05.005
The Board Support Package for M480 Series
Macros | Functions
qspi.h File Reference

M480 series QSPI driver header file. More...

Go to the source code of this file.

Macros

#define QSPI_MODE_0
 
#define QSPI_MODE_1
 
#define QSPI_MODE_2
 
#define QSPI_MODE_3
 
#define QSPI_SLAVE
 
#define QSPI_MASTER
 
#define QSPI_SS
 
#define QSPI_SS_ACTIVE_HIGH
 
#define QSPI_SS_ACTIVE_LOW
 
#define QSPI_UNIT_INT_MASK
 
#define QSPI_SSACT_INT_MASK
 
#define QSPI_SSINACT_INT_MASK
 
#define QSPI_SLVUR_INT_MASK
 
#define QSPI_SLVBE_INT_MASK
 
#define QSPI_TXUF_INT_MASK
 
#define QSPI_FIFO_TXTH_INT_MASK
 
#define QSPI_FIFO_RXTH_INT_MASK
 
#define QSPI_FIFO_RXOV_INT_MASK
 
#define QSPI_FIFO_RXTO_INT_MASK
 
#define QSPI_BUSY_MASK
 
#define QSPI_RX_EMPTY_MASK
 
#define QSPI_RX_FULL_MASK
 
#define QSPI_TX_EMPTY_MASK
 
#define QSPI_TX_FULL_MASK
 
#define QSPI_TXRX_RESET_MASK
 
#define QSPI_QSPIEN_STS_MASK
 
#define QSPI_SSLINE_STS_MASK
 
#define QSPI_CLR_UNIT_TRANS_INT_FLAG(qspi)
 Clear the unit transfer interrupt flag. More...
 
#define QSPI_TRIGGER_RX_PDMA(qspi)
 Trigger RX PDMA function. More...
 
#define QSPI_TRIGGER_TX_PDMA(qspi)
 Trigger TX PDMA function. More...
 
#define QSPI_TRIGGER_TX_RX_PDMA(qspi)
 Trigger TX and RX PDMA function. More...
 
#define QSPI_DISABLE_RX_PDMA(qspi)
 Disable RX PDMA transfer. More...
 
#define QSPI_DISABLE_TX_PDMA(qspi)
 Disable TX PDMA transfer. More...
 
#define QSPI_DISABLE_TX_RX_PDMA(qspi)
 Disable TX and RX PDMA transfer. More...
 
#define QSPI_GET_RX_FIFO_COUNT(qspi)
 Get the count of available data in RX FIFO. More...
 
#define QSPI_GET_RX_FIFO_EMPTY_FLAG(qspi)
 Get the RX FIFO empty flag. More...
 
#define QSPI_GET_TX_FIFO_EMPTY_FLAG(qspi)
 Get the TX FIFO empty flag. More...
 
#define QSPI_GET_TX_FIFO_FULL_FLAG(qspi)
 Get the TX FIFO full flag. More...
 
#define QSPI_READ_RX(qspi)
 Get the datum read from RX register. More...
 
#define QSPI_WRITE_TX(qspi, u32TxData)
 Write datum to TX register. More...
 
#define QSPI_SET_SS_HIGH(qspi)
 Set QSPIx_SS pin to high state. More...
 
#define QSPI_SET_SS_LOW(qspi)
 Set QSPIx_SS pin to low state. More...
 
#define QSPI_ENABLE_BYTE_REORDER(qspi)
 Enable Byte Reorder function. More...
 
#define QSPI_DISABLE_BYTE_REORDER(qspi)
 Disable Byte Reorder function. More...
 
#define QSPI_SET_SUSPEND_CYCLE(qspi, u32SuspCycle)
 Set the length of suspend interval. More...
 
#define QSPI_SET_LSB_FIRST(qspi)
 Set the QSPI transfer sequence with LSB first. More...
 
#define QSPI_SET_MSB_FIRST(qspi)
 Set the QSPI transfer sequence with MSB first. More...
 
#define QSPI_SET_DATA_WIDTH(qspi, u32Width)
 Set the data width of a QSPI transaction. More...
 
#define QSPI_IS_BUSY(qspi)
 Get the QSPI busy state. More...
 
#define QSPI_ENABLE(qspi)
 Enable QSPI controller. More...
 
#define QSPI_DISABLE(qspi)
 Disable QSPI controller. More...
 
#define QSPI_DISABLE_DUAL_MODE(qspi)
 Disable QSPI Dual IO function. More...
 
#define QSPI_ENABLE_DUAL_INPUT_MODE(qspi)
 Enable Dual IO function and set QSPI Dual IO direction to input. More...
 
#define QSPI_ENABLE_DUAL_OUTPUT_MODE(qspi)
 Enable Dual IO function and set QSPI Dual IO direction to output. More...
 
#define QSPI_DISABLE_QUAD_MODE(qspi)
 Disable QSPI Dual IO function. More...
 
#define QSPI_ENABLE_QUAD_INPUT_MODE(qspi)
 Set QSPI Quad IO direction to input. More...
 
#define QSPI_ENABLE_QUAD_OUTPUT_MODE(qspi)
 Set QSPI Quad IO direction to output. More...
 

Functions

uint32_t QSPI_Open (QSPI_T *qspi, uint32_t u32MasterSlave, uint32_t u32QSPIMode, uint32_t u32DataWidth, uint32_t u32BusClock)
 This function make QSPI module be ready to transfer. More...
 
void QSPI_Close (QSPI_T *qspi)
 Disable QSPI controller. More...
 
void QSPI_ClearRxFIFO (QSPI_T *qspi)
 Clear RX FIFO buffer. More...
 
void QSPI_ClearTxFIFO (QSPI_T *qspi)
 Clear TX FIFO buffer. More...
 
void QSPI_DisableAutoSS (QSPI_T *qspi)
 Disable the automatic slave selection function. More...
 
void QSPI_EnableAutoSS (QSPI_T *qspi, uint32_t u32SSPinMask, uint32_t u32ActiveLevel)
 Enable the automatic slave selection function. More...
 
uint32_t QSPI_SetBusClock (QSPI_T *qspi, uint32_t u32BusClock)
 Set the QSPI bus clock. More...
 
void QSPI_SetFIFO (QSPI_T *qspi, uint32_t u32TxThreshold, uint32_t u32RxThreshold)
 Configure FIFO threshold setting. More...
 
uint32_t QSPI_GetBusClock (QSPI_T *qspi)
 Get the actual frequency of QSPI bus clock. Only available in Master mode. More...
 
void QSPI_EnableInt (QSPI_T *qspi, uint32_t u32Mask)
 Enable interrupt function. More...
 
void QSPI_DisableInt (QSPI_T *qspi, uint32_t u32Mask)
 Disable interrupt function. More...
 
uint32_t QSPI_GetIntFlag (QSPI_T *qspi, uint32_t u32Mask)
 Get interrupt flag. More...
 
void QSPI_ClearIntFlag (QSPI_T *qspi, uint32_t u32Mask)
 Clear interrupt flag. More...
 
uint32_t QSPI_GetStatus (QSPI_T *qspi, uint32_t u32Mask)
 Get QSPI status. More...
 

Detailed Description

M480 series QSPI driver header file.

Version
V3.00

SPDX-License-Identifier: Apache-2.0

Definition in file qspi.h.