8#ifndef _FSL_LPUART_EDMA_H_
9#define _FSL_LPUART_EDMA_H_
11#include "fsl_lpuart.h"
26#define FSL_LPUART_EDMA_DRIVER_VERSION (MAKE_VERSION(2, 6, 0))
34 lpuart_edma_handle_t *handle,
61#if defined(__cplusplus)
83 lpuart_edma_handle_t *handle,
183#if defined(__cplusplus)
struct _edma_handle edma_handle_t
eDMA transfer handle structure
int32_t status_t
Type used for all status and error return values.
Definition fsl_common.h:225
struct _lpuart_transfer lpuart_transfer_t
LPUART transfer structure.
status_t LPUART_TransferGetSendCountEDMA(LPUART_Type *base, lpuart_edma_handle_t *handle, uint32_t *count)
Gets the number of bytes written to the LPUART TX register.
Definition fsl_lpuart_edma.c:456
uint8_t nbytes
Definition fsl_lpuart_edma.h:51
void * userData
Definition fsl_lpuart_edma.h:44
size_t txDataSizeAll
Definition fsl_lpuart_edma.h:46
status_t LPUART_SendEDMA(LPUART_Type *base, lpuart_edma_handle_t *handle, lpuart_transfer_t *xfer)
Sends data using eDMA.
Definition fsl_lpuart_edma.c:265
lpuart_edma_transfer_callback_t callback
Definition fsl_lpuart_edma.h:43
status_t LPUART_TransferGetReceiveCountEDMA(LPUART_Type *base, lpuart_edma_handle_t *handle, uint32_t *count)
Gets the number of received bytes.
Definition fsl_lpuart_edma.c:425
void LPUART_TransferAbortSendEDMA(LPUART_Type *base, lpuart_edma_handle_t *handle)
Aborts the sent data using eDMA.
Definition fsl_lpuart_edma.c:377
void LPUART_TransferCreateHandleEDMA(LPUART_Type *base, lpuart_edma_handle_t *handle, lpuart_edma_transfer_callback_t callback, void *userData, edma_handle_t *txEdmaHandle, edma_handle_t *rxEdmaHandle)
Initializes the LPUART handle which is used in transactional functions.
Definition fsl_lpuart_edma.c:186
size_t rxDataSizeAll
Definition fsl_lpuart_edma.h:45
status_t LPUART_ReceiveEDMA(LPUART_Type *base, lpuart_edma_handle_t *handle, lpuart_transfer_t *xfer)
Receives data using eDMA.
Definition fsl_lpuart_edma.c:324
volatile uint8_t rxState
Definition fsl_lpuart_edma.h:54
edma_handle_t * rxEdmaHandle
Definition fsl_lpuart_edma.h:49
edma_handle_t * txEdmaHandle
Definition fsl_lpuart_edma.h:48
volatile uint8_t txState
Definition fsl_lpuart_edma.h:53
void LPUART_TransferEdmaHandleIRQ(LPUART_Type *base, void *lpuartEdmaHandle)
LPUART eDMA IRQ handle function.
Definition fsl_lpuart_edma.c:485
void LPUART_TransferAbortReceiveEDMA(LPUART_Type *base, lpuart_edma_handle_t *handle)
Aborts the received data using eDMA.
Definition fsl_lpuart_edma.c:399
void(*) lpuart_edma_transfer_callback_t(LPUART_Type *base, lpuart_edma_handle_t *handle, status_t status, void *userData)
LPUART transfer callback function.
Definition fsl_lpuart_edma.h:33
Definition MIMXRT1052.h:31147
LPUART eDMA handle.
Definition fsl_lpuart_edma.h:42