Lines Matching refs:pstcConfig
259 en_result_t Dma_InitChannel(en_dma_channel_t enCh, stc_dma_config_t* pstcConfig) in Dma_InitChannel() argument
262 ASSERT(NULL != pstcConfig); in Dma_InitChannel()
263 ASSERT(IS_VALID_BLKSIZE(pstcConfig->u16BlockSize)); in Dma_InitChannel()
264 ASSERT(IS_VALID_TRNCNT(pstcConfig->u16TransferCnt)); in Dma_InitChannel()
265 ASSERT(IS_VALID_TRN_WIDTH(pstcConfig->enTransferWidth)); in Dma_InitChannel()
266 ASSERT(IS_VALID_ADDR_MODE(pstcConfig->enSrcAddrMode)); in Dma_InitChannel()
267 ASSERT(IS_VALID_ADDR_MODE(pstcConfig->enDstAddrMode)); in Dma_InitChannel()
280 M0P_DMAC->CONFB0_f.MODE = pstcConfig->enMode; in Dma_InitChannel()
282 M0P_DMAC->CONFA0_f.TRI_SEL = pstcConfig->enRequestNum; in Dma_InitChannel()
285 M0P_DMAC->CONFA0_f.BC = pstcConfig->u16BlockSize - 1; in Dma_InitChannel()
287 M0P_DMAC->CONFA0_f.TC = pstcConfig->u16TransferCnt - 1; in Dma_InitChannel()
291 M0P_DMAC->CONFB0_f.WIDTH = pstcConfig->enTransferWidth; in Dma_InitChannel()
295 M0P_DMAC->CONFB0_f.FS = pstcConfig->enSrcAddrMode; in Dma_InitChannel()
297 M0P_DMAC->SRCADR0_f.SRCADR = pstcConfig->u32SrcAddress; in Dma_InitChannel()
301 M0P_DMAC->CONFB0_f.FD = pstcConfig->enDstAddrMode; in Dma_InitChannel()
303 M0P_DMAC->DSTADR0_f.DSTADR = pstcConfig->u32DstAddress; in Dma_InitChannel()
305 M0P_DMAC ->CONFB0_f.RS = pstcConfig->bSrcAddrReloadCtl; in Dma_InitChannel()
308 M0P_DMAC ->CONFB0_f.RD = pstcConfig->bDestAddrReloadCtl; in Dma_InitChannel()
311 M0P_DMAC ->CONFB0_f.RC = pstcConfig->bSrcBcTcReloadCtl; in Dma_InitChannel()
314 M0P_DMAC->CONFB0_f.MSK = pstcConfig->bMsk; in Dma_InitChannel()
321 M0P_DMAC->CONFB1_f.MODE = pstcConfig->enMode; in Dma_InitChannel()
323 M0P_DMAC->CONFA1_f.TRI_SEL = pstcConfig->enRequestNum; in Dma_InitChannel()
326 M0P_DMAC->CONFA1_f.BC = pstcConfig->u16BlockSize - 1; in Dma_InitChannel()
328 M0P_DMAC->CONFA1_f.TC = pstcConfig->u16TransferCnt - 1; in Dma_InitChannel()
332 M0P_DMAC->CONFB1_f.WIDTH = pstcConfig->enTransferWidth; in Dma_InitChannel()
336 M0P_DMAC->CONFB1_f.FS = pstcConfig->enSrcAddrMode; in Dma_InitChannel()
338 M0P_DMAC->SRCADR1_f.SRCADR = pstcConfig->u32SrcAddress; in Dma_InitChannel()
342 M0P_DMAC->CONFB1_f.FD = pstcConfig->enDstAddrMode; in Dma_InitChannel()
344 M0P_DMAC->DSTADR1_f.DSTADR = pstcConfig->u32DstAddress; in Dma_InitChannel()
347 M0P_DMAC ->CONFB1_f.RS = pstcConfig->bSrcAddrReloadCtl; in Dma_InitChannel()
350 M0P_DMAC ->CONFB1_f.RD = pstcConfig->bDestAddrReloadCtl; in Dma_InitChannel()
353 M0P_DMAC ->CONFB1_f.RC = pstcConfig->bSrcBcTcReloadCtl; in Dma_InitChannel()
356 M0P_DMAC->CONFB1_f.MSK = pstcConfig->bMsk; in Dma_InitChannel()