| | |
| | | */ |
| | | void DMAC_StartChannel(DMA_T * dma,uint32_t ChIdx,void* Src,void* Dst,uint32_t Len); |
| | | |
| | | /* |
| | | * @brief :continue dma channel with last configuation |
| | | * @param in :where dma is the base address of dma peripheral |
| | | * @param in :where ChIdx is the dma channel number.It could be 0,1 |
| | | * @param in :where Len is the block size number |
| | | * @retval :none |
| | | */ |
| | | void DMAC_ContinueChannel(DMA_T * dma,uint32_t ChIdx, uint32_t Len); |
| | | |
| | | /** |
| | | * @brief Stop dma channel |
| | | * @param dma Where dma is the base address of dma peripheral |
| | |
| | | */ |
| | | void DMAC_StopChannel(DMA_T * dma,uint32_t ChIdx); |
| | | |
| | | /* |
| | | * @brief :Get data block count which already transferred by dma |
| | | * @param in :where dma is the base address of dma peripheral |
| | | * @param in :where ChIdx is the dma channel number.It could be 0,1 |
| | | * @retval :Transferred data count |
| | | */ |
| | | uint32_t DMAC_GetXferredBlockCount(DMA_T * dma, uint32_t ChIdx); |
| | | |
| | | /** |
| | | * @brief Acquire dma free channel |
| | | * @param dma Where dma is the base address of dma peripheral |