54#define USARTD_ERROR_LOCK 2
95 uint16_t dmaBlockSize;
97 uint8_t dmaRingBuffer;
enum _XdmadProgState eXdmadProgState
void(* XdmadTransferCallback)(uint32_t Channel, void *pArg, uint32_t status)
Definition: xdmad.h:110
Chip definitions for STM32U5.
usart Transfer Request prepared by the application upper layer.
Definition: usart_dma.h:77
uint32_t BuffSize
Definition: usart_dma.h:81
UsartdCallback callback
Definition: usart_dma.h:85
uint8_t ChNum
Definition: usart_dma.h:83
uint8_t * pBuff
Definition: usart_dma.h:79
volatile uint8_t dmaProgress
Definition: usart_dma.h:89
void * pArgument
Definition: usart_dma.h:87
Definition: usart_dma.h:102
UsartChannel * pRxChannel
Definition: usart_dma.h:108
sXdmad * pXdmad
Definition: usart_dma.h:112
Usart * pUsartHw
Definition: usart_dma.h:106
uint8_t usartId
Definition: usart_dma.h:104
UsartChannel * pTxChannel
Definition: usart_dma.h:110
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:545
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:360
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:600
uint32_t USARTD_EnableRxChannels(UsartDma *pUsartd, UsartChannel *pRxCh)
This function initialize the appropriate DMA channel for Rx channel of USART.
Definition: usart_dma.c:402
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:578
void(* UsartdCallback)(uint8_t, void *)
Definition: usart_dma.h:69
uint32_t USARTD_EnableTxChannels(UsartDma *pUsartd, UsartChannel *pTxCh)
This function initialize the appropriate DMA channel for Tx channel of USART.
Definition: usart_dma.c:457
uint32_t USARTD_DisableRxChannels(UsartDma *pUsartd, UsartChannel *pTxCh)
This function disables the appropriate DMA channel for Rx channel of USART.
Definition: usart_dma.c:511