51 #define USARTD_ERROR 1 54 #define USARTD_ERROR_LOCK 2 91 uint16_t dmaBlockSize;
93 uint8_t dmaRingBuffer;
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
usart Transfer Request prepared by the application upper layer.
Definition: usart_dma.h:73
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
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
UsartChannel * pRxChannel
Definition: usart_dma.h:104
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
uint8_t * pBuff
Definition: usart_dma.h:75
uint8_t ChNum
Definition: usart_dma.h:79
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
Definition: usart_dma.h:98
enum _XdmadProgState eXdmadProgState
UsartChannel * pTxChannel
Definition: usart_dma.h:106
void(* UsartdCallback)(uint8_t, void *)
Definition: usart_dma.h:66
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
UsartdCallback callback
Definition: usart_dma.h:81
volatile uint8_t dmaProgress
Definition: usart_dma.h:85
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
sXdmad * pXdmad
Definition: usart_dma.h:108
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
Usart * pUsartHw
Definition: usart_dma.h:102
uint8_t usartId
Definition: usart_dma.h:100
void * pArgument
Definition: usart_dma.h:83
uint32_t BuffSize
Definition: usart_dma.h:77