The MCUXpresso SDK provides a peripheral driver for the Quad Serial Peripheral Interface (QSPI) module of MCUXpresso SDK devices.
Refer to the driver examples codes located at <SDK_ROOT>/boards/<BOARD>/driver_examples/qspi
Refer to the driver examples codes located at <SDK_ROOT>/boards/<BOARD>/driver_examples/qspi
|
enum | qspi_transfer_mode_t {
kQSPI_TransferModeSingle,
kQSPI_TransferModeDual,
kQSPI_TransferModeQuad
} |
| QSPI transfer mode. More...
|
|
enum | qspi_data_pin_t {
kQSPI_DataPinSingle,
kQSPI_DataPinDual,
kQSPI_DataPinQuad
} |
| QSPI data pin. More...
|
|
enum | qspi_addr_pin_t {
kQSPI_AddrPinSingle,
kQSPI_AddrPinAsData
} |
| QSPI address pin. More...
|
|
enum | qspi_clock_phase_t {
kQSPI_ClockPhaseRising,
kQSPI_ClockPhaseFalling
} |
| QSPI clock phase. More...
|
|
enum | qspi_clock_polarity_t {
kQSPI_ClockPolarityLow,
kQSPI_ClockPolarityHigh
} |
| QSPI clock polarity. More...
|
|
enum | qspi_capture_edge_t {
kQSPI_CaptureEdgeFirst,
kQSPI_CaptureEdgeSecond
} |
| QSPI capture clock edge. More...
|
|
enum | qspi_transfer_length_t {
kQSPI_TransferLength1Byte,
kQSPI_TransferLength4Bytes
} |
| QSPI transfer length. More...
|
|
enum | qspi_clock_prescaler_t {
kQSPI_ClockDiv1 = 0x1,
kQSPI_ClockDiv2 = 0x2,
kQSPI_ClockDiv3 = 0x3,
kQSPI_ClockDiv4 = 0x4,
kQSPI_ClockDiv5 = 0x5,
kQSPI_ClockDiv6 = 0x6,
kQSPI_ClockDiv7 = 0x7,
kQSPI_ClockDiv8 = 0x8,
kQSPI_ClockDiv9 = 0x9,
kQSPI_ClockDiv10 = 0xA,
kQSPI_ClockDiv11 = 0xB,
kQSPI_ClockDiv12 = 0xC,
kQSPI_ClockDiv13 = 0xD,
kQSPI_ClockDiv14 = 0xE,
kQSPI_ClockDiv15 = 0xF,
kQSPI_ClockDiv16 = 0x18,
kQSPI_ClockDiv18 = 0x19,
kQSPI_ClockDiv20 = 0x1A,
kQSPI_ClockDiv22 = 0x1B,
kQSPI_ClockDiv24 = 0x1C,
kQSPI_ClockDiv26 = 0x1D,
kQSPI_ClockDiv28 = 0x1E,
kQSPI_ClockDiv30 = 0x1F
} |
| QSPI clock prescaler. More...
|
|
enum | qspi_transfer_direction_t {
kQSPI_Read,
kQSPI_Write
} |
| QSPI read or write type. More...
|
|
enum | {
kQSPI_TransferReady = QSPI_CNTL_XFER_RDY_MASK,
kQSPI_ReadFifoEmpty = QSPI_CNTL_RFIFO_EMPTY_MASK,
kQSPI_ReadFifoFull = QSPI_CNTL_RFIFO_FULL_MASK,
kQSPI_WriteFifoEmpty = QSPI_CNTL_WFIFO_EMPTY_MASK,
kQSPI_WriteFifoFull = QSPI_CNTL_WFIFO_FULL_MASK,
kQSPI_ReadFifoUnderflow = QSPI_CNTL_RFIFO_UNDRFLW_MASK,
kQSPI_ReadFifoOverflow = QSPI_CNTL_RFIFO_OVRFLW_MASK,
kQSPI_WriteFifoUnderflow = QSPI_CNTL_WFIFO_UNDRFLW_MASK,
kQSPI_WriteFifoOverflow = QSPI_CNTL_WFIFO_OVERFLW_MASK
} |
| QSPI status bit,. More...
|
|
enum | {
kQSPI_InterruptTransferDone = QSPI_ISR_XFER_DONE_IS_MASK,
kQSPI_InterruptTransferReady = QSPI_ISR_XFER_RDY_IS_MASK,
kQSPI_InterruptReadFifoDmaBurst = QSPI_ISR_XFER_RDY_IS_MASK,
kQSPI_InterruptWriteFifoDmaBurst,
kQSPI_InterruptReadFifoEmpty = QSPI_ISR_RFIFO_EMPTY_IS_MASK,
kQSPI_InterruptReadFifoFull = QSPI_ISR_RFIFO_FULL_IS_MASK,
kQSPI_InterruptWriteFifoEmpty = QSPI_ISR_WFIFO_EMPTY_IS_MASK,
kQSPI_InterruptWriteFifoFull = QSPI_ISR_WFIFO_FULL_IS_MASK,
kQSPI_InterruptReadFifoUnderflow = QSPI_ISR_RFIFO_UNDRFLW_IS_MASK,
kQSPI_InterruptReadFifoOverflow = QSPI_ISR_RFIFO_OVRFLW_IS_MASK,
kQSPI_InterruptWriteFifoUnderflow = QSPI_ISR_WFIFO_UNDRFLW_IS_MASK,
kQSPI_InterruptWriteFifoOverflow = QSPI_ISR_WFIFO_OVRFLW_IS_MASK
} |
| QSPI interrupt status bit,. More...
|
|
enum | {
kQSPI_InterruptTransferDoneMask = QSPI_IMR_XFER_DONE_IM_MASK,
kQSPI_InterruptTransferReadyMask = QSPI_IMR_XFER_RDY_IM_MASK,
kQSPI_InterruptReadFifoDmaBurstMask,
kQSPI_InterruptWriteFifoDmaBurstMask,
kQSPI_InterruptReadFifoEmptyMask = QSPI_IMR_RFIFO_EMPTY_IM_MASK,
kQSPI_InterruptReadFifoFullMask = QSPI_IMR_RFIFO_FULL_IM_MASK,
kQSPI_InterruptWriteFifoEmptyMask = QSPI_IMR_WFIFO_EMPTY_IM_MASK,
kQSPI_InterruptWriteFifoFullMask = QSPI_IMR_WFIFO_FULL_IM_MASK,
kQSPI_InterruptReadFifoUnderflowMask,
kQSPI_InterruptReadFifoOverflowMask,
kQSPI_InterruptWriteFifoUnderflowMask,
kQSPI_InterruptWriteFifoOverflowMask
} |
| QSPI interrupt mask status bit,. More...
|
|
enum | qspi_dma_transfer_direction_t {
kQSPI_DmaRead,
kQSPI_DmaWrite
} |
| QSPI dma read/write type. More...
|
|
enum | qspi_dma_burst_len_t {
kQSPI_BurstLen1,
kQSPI_BurstLen4,
kQSPI_BurstLen8,
kQSPI_BurstLen0
} |
| QSPI dma read/write burst type. More...
|
|
enum | qspi_instruction_count_t {
kQSPI_InstructionCnt0Byte,
kQSPI_InstructionCnt1Byte,
kQSPI_InstructionCnt2Byte
} |
| QSPI Instruction Count. More...
|
|
enum | qspi_address_count_t {
kQSPI_AddressCnt0Byte,
kQSPI_AddressCnt1Byte,
kQSPI_AddressCnt2Byte,
kQSPI_AddressCnt3Byte,
kQSPI_AddressCnt4Byte
} |
| QSPI Address Count. More...
|
|
enum | qspi_read_mode_count_t {
kQSPI_ReadModeCnt0Byte,
kQSPI_ReadModeCnt1Byte,
kQSPI_ReadModeCnt2Byte
} |
| QSPI Read Mode Count. More...
|
|
enum | qspi_dummy_count_t {
kQSPI_DummyCnt0Byte,
kQSPI_DummyCnt1Byte,
kQSPI_DummyCnt2Byte,
kQSPI_DummyCnt3Byte
} |
| QSPI Dummy Count. More...
|
|
|
status_t | QSPI_FlushFIFO (QSPI_Type *base) |
| Flush Write and Read FIFOs. More...
|
|
static void | QSPI_SetDatePin (QSPI_Type *base, qspi_data_pin_t dataPin) |
| Set QSPI serial interface transfer mode. More...
|
|
static void | QSPI_SetAddressPin (QSPI_Type *base, qspi_addr_pin_t addrPin) |
| Set QSPI serial interface transfer mode. More...
|
|
void | QSPI_SetHeaderCount (QSPI_Type *base, qspi_header_count_config_t *config) |
| Set QSPI serial interface header count . More...
|
|
static void | QSPI_SetInstructionCnt (QSPI_Type *base, qspi_instruction_count_t count) |
| Set number of bytes in INSTR register to shift out to the serial interface. More...
|
|
static void | QSPI_SetAddressCnt (QSPI_Type *base, qspi_address_count_t count) |
| Set number of bytes in ADDR register to shift out to the serial interface. More...
|
|
static void | QSPI_SetReadModeCnt (QSPI_Type *base, qspi_read_mode_count_t count) |
| Set number of bytes in RM register to shift out to the serial interface. More...
|
|
static void | QSPI_SetDummyCnt (QSPI_Type *base, qspi_dummy_count_t count) |
| Set number of bytes as dummy to shift out to the serial interface. More...
|
|
static void | QSPI_SetInstruction (QSPI_Type *base, uint32_t instruction) |
| Set QSPI serial interface instruction. More...
|
|
static void | QSPI_SetAddress (QSPI_Type *base, uint32_t address) |
| Set QSPI serial interface address. More...
|
|
static void | QSPI_SetReadMode (QSPI_Type *base, uint32_t mode) |
| Set QSPI serial interface read mode. More...
|
|
static void | QSPI_SetDataInCnt (QSPI_Type *base, uint32_t count) |
| Set number of bytes of data to shift in from the serial interface. More...
|
|
static void | QSPI_UpdateTansferLength (QSPI_Type *base, qspi_transfer_length_t length) |
| Update the number of bytes in each serial interface I/O transfer. More...
|
|
void | QSPI_SetSSEnable (QSPI_Type *base, bool enable) |
| Activate or de-activate serial select output. More...
|
|
void | QSPI_StartTransfer (QSPI_Type *base, qspi_transfer_direction_t direction) |
| Start the specified QSPI transfer. More...
|
|
void | QSPI_StopTransfer (QSPI_Type *base) |
| Stop QSPI transfer. More...
|
|
void | QSPI_WriteByte (QSPI_Type *base, uint8_t data) |
| Write a byte to QSPI serial interface. More...
|
|
uint8_t | QSPI_ReadByte (QSPI_Type *base) |
| Read a byte from QSPI serial interface. More...
|
|
void | QSPI_WriteWord (QSPI_Type *base, uint32_t word) |
| Write a word to QSPI serial interface. More...
|
|
uint32_t | QSPI_ReadWord (QSPI_Type *base) |
| Read a word from QSPI serial interface. More...
|
|
void | QSPI_SetDmaTransferConfig (QSPI_Type *base, qspi_dma_transfer_direction_t direction, qspi_dma_burst_len_t length) |
| Set DMA tansfer related configuration. More...
|
|
void | QSPI_WriteBlocking (QSPI_Type *base, uint32_t *buffer, size_t size) |
| Sends a buffer of data bytes using a blocking method. More...
|
|
void | QSPI_ReadBlocking (QSPI_Type *base, uint32_t *buffer, size_t size) |
| Receives a buffer of data bytes using a blocking method. More...
|
|