8#ifndef _FSL_LPI2C_EDMA_H_
9#define _FSL_LPI2C_EDMA_H_
21#define FSL_LPI2C_EDMA_DRIVER_VERSION (MAKE_VERSION(2, 4, 1))
73#if defined(__cplusplus)
154#if defined(__cplusplus)
int32_t status_t
Type used for all status and error return values.
Definition: fsl_common.h:225
bool isBusy
Definition: fsl_lpi2c_edma.h:55
lpi2c_master_edma_transfer_callback_t completionCallback
Definition: fsl_lpi2c_edma.h:60
status_t LPI2C_MasterTransferAbortEDMA(LPI2C_Type *base, lpi2c_master_edma_handle_t *handle)
Terminates a non-blocking LPI2C master transmission early.
Definition: fsl_lpi2c_edma.c:489
status_t LPI2C_MasterTransferEDMA(LPI2C_Type *base, lpi2c_master_edma_handle_t *handle, lpi2c_master_transfer_t *transfer)
Performs a non-blocking DMA-based transaction on the I2C bus.
Definition: fsl_lpi2c_edma.c:230
uint8_t nbytes
Definition: fsl_lpi2c_edma.h:56
edma_tcd_t tcds[3]
Definition: fsl_lpi2c_edma.h:64
void LPI2C_MasterCreateEDMAHandle(LPI2C_Type *base, lpi2c_master_edma_handle_t *handle, edma_handle_t *rxDmaHandle, edma_handle_t *txDmaHandle, lpi2c_master_edma_transfer_callback_t callback, void *userData)
Create a new handle for the LPI2C master DMA APIs.
Definition: fsl_lpi2c_edma.c:105
LPI2C_Type * base
Definition: fsl_lpi2c_edma.h:54
status_t LPI2C_MasterTransferGetCountEDMA(LPI2C_Type *base, lpi2c_master_edma_handle_t *handle, size_t *count)
Returns number of bytes transferred so far.
Definition: fsl_lpi2c_edma.c:439
void * userData
Definition: fsl_lpi2c_edma.h:61
lpi2c_master_transfer_t transfer
Definition: fsl_lpi2c_edma.h:59
edma_handle_t * tx
Definition: fsl_lpi2c_edma.h:63
edma_handle_t * rx
Definition: fsl_lpi2c_edma.h:62
uint16_t commandBuffer[10]
Definition: fsl_lpi2c_edma.h:57
void(* lpi2c_master_edma_transfer_callback_t)(LPI2C_Type *base, lpi2c_master_edma_handle_t *handle, status_t completionStatus, void *userData)
Master DMA completion callback function pointer type.
Definition: fsl_lpi2c_edma.h:43
Definition: MIMXRT1052.h:29282
eDMA transfer handle structure
Definition: fsl_edma.h:244
eDMA TCD.
Definition: fsl_edma.h:205
Driver handle for master DMA APIs.
Definition: fsl_lpi2c_edma.h:53
Non-blocking transfer descriptor structure.
Definition: fsl_lpi2c.h:233