RTEMS 6.1-rc5
|
Data Structures | |
struct | _flexio_mculcd_edma_handle |
FlexIO MCULCD eDMA transfer handle, users should not touch the content of the handle. More... | |
Macros | |
#define | FSL_FLEXIO_MCULCD_EDMA_DRIVER_VERSION (MAKE_VERSION(2, 0, 4)) |
FlexIO MCULCD EDMA driver version. | |
Typedefs | |
typedef struct _flexio_mculcd_edma_handle | flexio_mculcd_edma_handle_t |
typedef for flexio_mculcd_edma_handle_t in advance. | |
typedef void(* | flexio_mculcd_edma_transfer_callback_t) (FLEXIO_MCULCD_Type *base, flexio_mculcd_edma_handle_t *handle, status_t status, void *userData) |
FlexIO MCULCD master callback for transfer complete. | |
eDMA Transactional | |
status_t | FLEXIO_MCULCD_TransferCreateHandleEDMA (FLEXIO_MCULCD_Type *base, flexio_mculcd_edma_handle_t *handle, flexio_mculcd_edma_transfer_callback_t callback, void *userData, edma_handle_t *txDmaHandle, edma_handle_t *rxDmaHandle) |
Initializes the FLEXO MCULCD master eDMA handle. | |
status_t | FLEXIO_MCULCD_TransferEDMA (FLEXIO_MCULCD_Type *base, flexio_mculcd_edma_handle_t *handle, flexio_mculcd_transfer_t *xfer) |
Performs a non-blocking FlexIO MCULCD transfer using eDMA. | |
void | FLEXIO_MCULCD_TransferAbortEDMA (FLEXIO_MCULCD_Type *base, flexio_mculcd_edma_handle_t *handle) |
Aborts a FlexIO MCULCD transfer using eDMA. | |
status_t | FLEXIO_MCULCD_TransferGetCountEDMA (FLEXIO_MCULCD_Type *base, flexio_mculcd_edma_handle_t *handle, size_t *count) |
Gets the remaining bytes for FlexIO MCULCD eDMA transfer. | |
typedef void(* flexio_mculcd_edma_transfer_callback_t) (FLEXIO_MCULCD_Type *base, flexio_mculcd_edma_handle_t *handle, status_t status, void *userData) |
FlexIO MCULCD master callback for transfer complete.
When transfer finished, the callback function is called and returns the status
as kStatus_FLEXIO_MCULCD_Idle.
void FLEXIO_MCULCD_TransferAbortEDMA | ( | FLEXIO_MCULCD_Type * | base, |
flexio_mculcd_edma_handle_t * | handle | ||
) |
Aborts a FlexIO MCULCD transfer using eDMA.
base | pointer to FLEXIO_MCULCD_Type structure. |
handle | FlexIO MCULCD eDMA handle pointer. |
status_t FLEXIO_MCULCD_TransferCreateHandleEDMA | ( | FLEXIO_MCULCD_Type * | base, |
flexio_mculcd_edma_handle_t * | handle, | ||
flexio_mculcd_edma_transfer_callback_t | callback, | ||
void * | userData, | ||
edma_handle_t * | txDmaHandle, | ||
edma_handle_t * | rxDmaHandle | ||
) |
Initializes the FLEXO MCULCD master eDMA handle.
This function initializes the FLEXO MCULCD master eDMA handle which can be used for other FLEXO MCULCD transactional APIs. For a specified FLEXO MCULCD instance, call this API once to get the initialized handle.
base | Pointer to FLEXIO_MCULCD_Type structure. |
handle | Pointer to flexio_mculcd_edma_handle_t structure to store the transfer state. |
callback | MCULCD transfer complete callback, NULL means no callback. |
userData | callback function parameter. |
txDmaHandle | User requested eDMA handle for FlexIO MCULCD eDMA TX, the DMA request source of this handle should be the first of TX shifters. |
rxDmaHandle | User requested eDMA handle for FlexIO MCULCD eDMA RX, the DMA request source of this handle should be the last of RX shifters. |
kStatus_Success | Successfully create the handle. |
status_t FLEXIO_MCULCD_TransferEDMA | ( | FLEXIO_MCULCD_Type * | base, |
flexio_mculcd_edma_handle_t * | handle, | ||
flexio_mculcd_transfer_t * | xfer | ||
) |
Performs a non-blocking FlexIO MCULCD transfer using eDMA.
This function returns immediately after transfer initiates. To check whether the transfer is completed, user could:
base | pointer to FLEXIO_MCULCD_Type structure. |
handle | pointer to flexio_mculcd_edma_handle_t structure to store the transfer state. |
xfer | Pointer to FlexIO MCULCD transfer structure. |
kStatus_Success | Successfully start a transfer. |
kStatus_InvalidArgument | Input argument is invalid. |
kStatus_FLEXIO_MCULCD_Busy | FlexIO MCULCD is not idle, it is running another transfer. |
status_t FLEXIO_MCULCD_TransferGetCountEDMA | ( | FLEXIO_MCULCD_Type * | base, |
flexio_mculcd_edma_handle_t * | handle, | ||
size_t * | count | ||
) |
Gets the remaining bytes for FlexIO MCULCD eDMA transfer.
base | pointer to FLEXIO_MCULCD_Type structure. |
handle | FlexIO MCULCD eDMA handle pointer. |
count | Number of count transferred so far by the eDMA transaction. |
kStatus_Success | Get the transferred count Successfully. |
kStatus_NoTransferInProgress | No transfer in process. |