This is AASRC dma related APIs, parameters and local functions
|
| file | aasrc_dma.h |
| | AASRC dma related parameters and APIs.
|
| |
◆ AASRC_TX_DMA_RING_ELEM_CNT
| #define AASRC_TX_DMA_RING_ELEM_CNT (1U) |
◆ AASRC_TX_DMA_TR_COUNT
| #define AASRC_TX_DMA_TR_COUNT (64U) |
◆ AASRC_RX_DMA_RING_ELEM_CNT
| #define AASRC_RX_DMA_RING_ELEM_CNT (1U) |
◆ AASRC_RX_DMA_TR_COUNT
| #define AASRC_RX_DMA_TR_COUNT (64U) |
◆ AASRC_DMA_L0_MAX_XFER_SIZE
| #define AASRC_DMA_L0_MAX_XFER_SIZE (65535U) |
◆ AASRC_DMA_UDMA_XFER_SIZE
| #define AASRC_DMA_UDMA_XFER_SIZE (64512U) |
◆ AASRC_DMA_TX_CH_FIFO_DEPTH
| #define AASRC_DMA_TX_CH_FIFO_DEPTH (128U) |
◆ AASRC_DMA_RX_CH_FIFO_DEPTH
| #define AASRC_DMA_RX_CH_FIFO_DEPTH (128U) |
◆ AASRC_UDMA_TRPD_MEM_SIZE_TX
◆ AASRC_UDMA_TRPD_MEM_SIZE_RX
◆ AASRC_UDMA_RING_ENTRY_SIZE
| #define AASRC_UDMA_RING_ENTRY_SIZE (sizeof(uint64_t)) |
◆ AASRC_UDMA_RING_MEM_SIZE_TX
◆ AASRC_UDMA_RING_MEM_SIZE_RX
◆ AASRC_DMA_PERPETUAL_RELOAD_CNT
| #define AASRC_DMA_PERPETUAL_RELOAD_CNT (0x1FFU) |
◆ WORD_BYTE_COUNT
| #define WORD_BYTE_COUNT (4U) |
◆ AASRC_INVALID_TXN_IDX
| #define AASRC_INVALID_TXN_IDX (0xDEADBEEFU) |
◆ AASRC_ICNT2_MAX
| #define AASRC_ICNT2_MAX (65535U) |
◆ AASRC_dmaChOpen()
Function opens an UDMA channel for AASRC channel RX/TX.
Connects AASRC RX with UDMA TX and AASRC TX with UDMA RX
- Parameters
-
| chHandle | [IN] channel handle to identify AASRC channel (returned from AASRC_chOpen()) |
- Returns
- AASRC_ErrorCodes
◆ AASRC_dmaChEnable()
Function enables the UDMA channel for AASRC channel RX/TX.
Enables the dma and create TRPDs
- Parameters
-
| chHandle | [IN] channel handle to identify AASRC channel (returned from AASRC_chOpen()) |
- Returns
- AASRC_ErrorCodes
◆ AASRC_dmaChDisable()
Function disables the UDMA channel for AASRC channel RX/TX.
Disables the dma. This will in turn clear out all the BCDMA/PDMA FIFOs, clearout all the TRPDs from the ring (teardown the channel)
- Parameters
-
| chHandle | [IN] channel handle to identify AASRC channel (returned from AASRC_chOpen()) |
- Returns
- AASRC_ErrorCodes
◆ AASRC_dmaChClose()
Function closes the UDMA channel for AASRC channel RX/TX.
Flushes pending TRPDs from the queue and closes the DMA channel
- Parameters
-
| chHandle | [IN] channel handle to identify AASRC channel (returned from AASRC_chOpen()) |
- Returns
- AASRC_ErrorCodes
◆ AASRC_disableDmaRx()
Function disables the UDMA channel for AASRC channel Tx.
- Parameters
-
| chHandle | [IN] channel handle to identify AASRC channel (returned from AASRC_chOpen()) |
- Returns
- AASRC_ErrorCodes
◆ AASRC_disableDmaTx()
Function disables the UDMA channel for AASRC channel Rx.
- Parameters
-
| chHandle | [IN] channel handle to identify AASRC channel (returned from AASRC_chOpen()) |
- Returns
- AASRC_ErrorCodes