8#ifndef _FSL_FLEXSPI_DMA_H_
9#define _FSL_FLEXSPI_DMA_H_
11#include "fsl_flexspi.h"
26#define FSL_FLEXSPI_DMA_DRIVER_VERSION (MAKE_VERSION(2, 2, 1))
62#if defined(__cplusplus)
85 dma_handle_t *txDmaHandle,
86 dma_handle_t *rxDmaHandle);
138#if defined(__cplusplus)
uint8_t count
Definition: fsl_flexspi_dma.h:53
void(* flexspi_dma_callback_t)(FLEXSPI_Type *base, flexspi_dma_handle_t *handle, status_t status, void *userData)
FLEXSPI dma transfer callback function for finish and error.
Definition: fsl_flexspi_dma.h:32
uint32_t state
Definition: fsl_flexspi_dma.h:54
dma_handle_t * rxDmaHandle
Definition: fsl_flexspi_dma.h:49
size_t transferSize
Definition: fsl_flexspi_dma.h:50
uint8_t nbytes
Definition: fsl_flexspi_dma.h:52
dma_handle_t * txDmaHandle
Definition: fsl_flexspi_dma.h:48
status_t FLEXSPI_TransferDMA(FLEXSPI_Type *base, flexspi_dma_handle_t *handle, flexspi_transfer_t *xfer)
Transfers FLEXSPI data using an dma non-blocking method.
enum _flexspi_dma_ntransfer_size flexspi_dma_transfer_nsize_t
dma transfer configuration
void * userData
Definition: fsl_flexspi_dma.h:56
void FLEXSPI_TransferUpdateSizeDMA(FLEXSPI_Type *base, flexspi_dma_handle_t *handle, flexspi_dma_transfer_nsize_t nsize)
Update FLEXSPI DMA transfer source data transfer size(SSIZE) and destination data transfer size(DSIZE...
flexspi_dma_callback_t completionCallback
Definition: fsl_flexspi_dma.h:55
void FLEXSPI_TransferAbortDMA(FLEXSPI_Type *base, flexspi_dma_handle_t *handle)
Aborts the transfer data using dma.
_flexspi_dma_ntransfer_size
dma transfer configuration
Definition: fsl_flexspi_dma.h:39
status_t FLEXSPI_TransferGetTransferCountDMA(FLEXSPI_Type *base, flexspi_dma_handle_t *handle, size_t *count)
Gets the transferred counts of transfer.
void FLEXSPI_TransferCreateHandleDMA(FLEXSPI_Type *base, flexspi_dma_handle_t *handle, flexspi_dma_callback_t callback, void *userData, dma_handle_t *txDmaHandle, dma_handle_t *rxDmaHandle)
Initializes the FLEXSPI handle for transfer which is used in transactional functions and set the call...
flexspi_dma_transfer_nsize_t nsize
Definition: fsl_flexspi_dma.h:51
@ kFLEXPSI_DMAnSize1Bytes
Definition: fsl_flexspi_dma.h:40
@ kFLEXPSI_DMAnSize4Bytes
Definition: fsl_flexspi_dma.h:42
@ kFLEXPSI_DMAnSize2Bytes
Definition: fsl_flexspi_dma.h:41
int32_t status_t
Type used for all status and error return values.
Definition: fsl_common.h:225
Definition: MIMXRT1052.h:21299
FLEXSPI DMA transfer handle, users should not touch the content of the handle.
Definition: fsl_flexspi_dma.h:47
Transfer structure for FLEXSPI.
Definition: fsl_flexspi.h:317