8#ifndef _FSL_FLEXCAN_EDMA_H_
9#define _FSL_FLEXCAN_EDMA_H_
11#include "fsl_flexcan.h"
26#define FSL_FLEXCAN_EDMA_DRIVER_VERSION (MAKE_VERSION(2, 9, 2))
48#if (defined(FSL_FEATURE_FLEXCAN_HAS_ENHANCED_RX_FIFO) && FSL_FEATURE_FLEXCAN_HAS_ENHANCED_RX_FIFO)
49 flexcan_fd_frame_t *framefd;
57#if defined(__cplusplus)
146#if (defined(FSL_FEATURE_FLEXCAN_HAS_ENHANCED_RX_FIFO) && FSL_FEATURE_FLEXCAN_HAS_ENHANCED_RX_FIFO)
172static inline status_t FLEXCAN_TransferGetReceiveEnhancedFifoCountEMDA(
CAN_Type *base,
182#if defined(__cplusplus)
flexcan_edma_transfer_callback_t callback
Definition: fsl_flexcan_edma.h:43
void FLEXCAN_TransferCreateHandleEDMA(CAN_Type *base, flexcan_edma_handle_t *handle, flexcan_edma_transfer_callback_t callback, void *userData, edma_handle_t *rxFifoEdmaHandle)
Initializes the FlexCAN handle, which is used in transactional functions.
status_t FLEXCAN_TransferGetReceiveFifoCountEMDA(CAN_Type *base, flexcan_edma_handle_t *handle, size_t *count)
Gets the Legacy Rx Fifo transfer status during a interrupt non-blocking receive.
void FLEXCAN_TransferAbortReceiveFifoEDMA(CAN_Type *base, flexcan_edma_handle_t *handle)
Aborts the receive Legacy/Enhanced Rx FIFO process which used eDMA.
void * userData
Definition: fsl_flexcan_edma.h:44
void FLEXCAN_PrepareTransfConfiguration(CAN_Type *base, flexcan_fifo_transfer_t *pFifoXfer, edma_transfer_config_t *pEdmaConfig)
Prepares the eDMA transfer configuration for FLEXCAN Legacy RX FIFO.
status_t FLEXCAN_StartTransferDatafromRxFIFO(CAN_Type *base, flexcan_edma_handle_t *handle, edma_transfer_config_t *pEdmaConfig)
Start Transfer Data from the FLEXCAN Legacy Rx FIFO using eDMA.
edma_handle_t * rxFifoEdmaHandle
Definition: fsl_flexcan_edma.h:45
size_t frameNum
Definition: fsl_flexcan_edma.h:47
volatile uint8_t rxFifoState
Definition: fsl_flexcan_edma.h:46
void(* flexcan_edma_transfer_callback_t)(CAN_Type *base, flexcan_edma_handle_t *handle, status_t status, void *userData)
FlexCAN transfer callback function.
Definition: fsl_flexcan_edma.h:33
status_t FLEXCAN_TransferReceiveFifoEDMA(CAN_Type *base, flexcan_edma_handle_t *handle, flexcan_fifo_transfer_t *pFifoXfer)
Receives the CAN Message from the Legacy Rx FIFO using eDMA.
int32_t status_t
Type used for all status and error return values.
Definition: fsl_common.h:225
Definition: MIMXRT1052.h:4122
eDMA transfer handle structure
Definition: fsl_edma.h:244
eDMA transfer configuration
Definition: fsl_edma.h:169
FlexCAN eDMA handle.
Definition: fsl_flexcan_edma.h:42
FlexCAN Rx FIFO transfer.
Definition: fsl_flexcan.h:1016