54#define USARTD_ERROR_LOCK 2
91 uint16_t dmaBlockSize;
93 uint8_t dmaRingBuffer;
enum _XdmadProgState eXdmadProgState
usart Transfer Request prepared by the application upper layer.
Definition: usart_dma.h:73
uint32_t BuffSize
Definition: usart_dma.h:77
UsartdCallback callback
Definition: usart_dma.h:81
uint8_t ChNum
Definition: usart_dma.h:79
uint8_t * pBuff
Definition: usart_dma.h:75
volatile uint8_t dmaProgress
Definition: usart_dma.h:85
void * pArgument
Definition: usart_dma.h:83
Definition: usart_dma.h:98
UsartChannel * pRxChannel
Definition: usart_dma.h:104
sXdmad * pXdmad
Definition: usart_dma.h:108
Usart * pUsartHw
Definition: usart_dma.h:102
uint8_t usartId
Definition: usart_dma.h:100
UsartChannel * pTxChannel
Definition: usart_dma.h:106
Usart hardware registers.
Definition: component_usart.h:41
Structure for storing parameters for DMA view1 that can be performed by the DMA Master transfer.
Definition: xdmad.h:167
uint32_t USARTD_DisableTxChannels(UsartDma *pUsartd, UsartChannel *pTxCh)
This function disables the appropriate DMA channel for Tx channel of USART.
Definition: usart_dma.c:535
uint32_t USARTD_Configure(UsartDma *pUsartd, uint8_t USARTId, uint32_t UsartMode, uint32_t BaudRate, uint32_t UsartClk)
Initializes the USARTDma structure and the corresponding USART & DMA . hardware select value....
Definition: usart_dma.c:350
uint32_t USARTD_RcvData(UsartDma *pUsartd)
Starts a USART master transfer. This is a non blocking function. It will return as soon as the transf...
Definition: usart_dma.c:590
uint32_t USARTD_EnableRxChannels(UsartDma *pUsartd, UsartChannel *pRxCh)
This function initialize the appropriate DMA channel for Rx channel of USART.
Definition: usart_dma.c:392
uint32_t USARTD_SendData(UsartDma *pUsartd)
Starts a USART master transfer. This is a non blocking function. It will return as soon as the transf...
Definition: usart_dma.c:568
void(* UsartdCallback)(uint8_t, void *)
Definition: usart_dma.h:66
uint32_t USARTD_EnableTxChannels(UsartDma *pUsartd, UsartChannel *pTxCh)
This function initialize the appropriate DMA channel for Tx channel of USART.
Definition: usart_dma.c:447
uint32_t USARTD_DisableRxChannels(UsartDma *pUsartd, UsartChannel *pTxCh)
This function disables the appropriate DMA channel for Rx channel of USART.
Definition: usart_dma.c:501