Lines Matching refs:transferConfig
321 edma_transfer_config_t transferConfig = {0}; in LPI2C_MasterTransferEDMA() local
328 transferConfig.srcAddr = (uint32_t)srcAddr; in LPI2C_MasterTransferEDMA()
329 transferConfig.destAddr = (uint32_t)LPI2C_MasterGetTxFifoAddress(base); in LPI2C_MasterTransferEDMA()
330 transferConfig.srcTransferSize = kEDMA_TransferSize1Bytes; in LPI2C_MasterTransferEDMA()
331 transferConfig.destTransferSize = kEDMA_TransferSize1Bytes; in LPI2C_MasterTransferEDMA()
332 transferConfig.srcOffset = (int16_t)sizeof(uint8_t); in LPI2C_MasterTransferEDMA()
333 transferConfig.destOffset = 0; in LPI2C_MasterTransferEDMA()
334 transferConfig.minorLoopBytes = sizeof(uint8_t); /* TODO optimize to fill fifo */ in LPI2C_MasterTransferEDMA()
335 transferConfig.majorLoopCounts = transfer->dataSize; in LPI2C_MasterTransferEDMA()
338 handle->nbytes = (uint8_t)transferConfig.minorLoopBytes; in LPI2C_MasterTransferEDMA()
344 EDMA_TcdSetTransferConfig(tcd, &transferConfig, NULL); in LPI2C_MasterTransferEDMA()
351 EDMA_SetTransferConfig(handle->tx->base, handle->tx->channel, &transferConfig, NULL); in LPI2C_MasterTransferEDMA()
359 transferConfig.srcAddr = (uint32_t)LPI2C_MasterGetRxFifoAddress(base); in LPI2C_MasterTransferEDMA()
360 transferConfig.destAddr = (uint32_t)srcAddr; in LPI2C_MasterTransferEDMA()
361 transferConfig.srcTransferSize = kEDMA_TransferSize1Bytes; in LPI2C_MasterTransferEDMA()
362 transferConfig.destTransferSize = kEDMA_TransferSize1Bytes; in LPI2C_MasterTransferEDMA()
363 transferConfig.srcOffset = 0; in LPI2C_MasterTransferEDMA()
364 transferConfig.destOffset = (int16_t)sizeof(uint8_t); in LPI2C_MasterTransferEDMA()
365 transferConfig.minorLoopBytes = sizeof(uint8_t); /* TODO optimize to empty fifo */ in LPI2C_MasterTransferEDMA()
366 transferConfig.majorLoopCounts = transfer->dataSize; in LPI2C_MasterTransferEDMA()
369 handle->nbytes = (uint8_t)transferConfig.minorLoopBytes; in LPI2C_MasterTransferEDMA()
374 EDMA_SetTransferConfig(handle->rx->base, handle->rx->channel, &transferConfig, NULL); in LPI2C_MasterTransferEDMA()
384 EDMA_TcdSetTransferConfig(tcd, &transferConfig, NULL); in LPI2C_MasterTransferEDMA()
387 transferConfig.srcAddr = (uint32_t)&lpi2c_edma_RecSetting; in LPI2C_MasterTransferEDMA()
388 transferConfig.destAddr = (uint32_t) & (base->MDER); in LPI2C_MasterTransferEDMA()
389 transferConfig.srcTransferSize = kEDMA_TransferSize1Bytes; in LPI2C_MasterTransferEDMA()
390 transferConfig.destTransferSize = kEDMA_TransferSize1Bytes; in LPI2C_MasterTransferEDMA()
391 transferConfig.srcOffset = 0; in LPI2C_MasterTransferEDMA()
392 transferConfig.destOffset = (int16_t)sizeof(uint8_t); in LPI2C_MasterTransferEDMA()
393 transferConfig.minorLoopBytes = sizeof(uint8_t); in LPI2C_MasterTransferEDMA()
394 transferConfig.majorLoopCounts = 1; in LPI2C_MasterTransferEDMA()
399 EDMA_TcdSetTransferConfig(tcdSetRxClearTxDMA, &transferConfig, tcd); in LPI2C_MasterTransferEDMA()
411 transferConfig.srcAddr = (uint32_t)handle->commandBuffer; in LPI2C_MasterTransferEDMA()
412 transferConfig.destAddr = (uint32_t)LPI2C_MasterGetTxFifoAddress(base); in LPI2C_MasterTransferEDMA()
413 transferConfig.srcTransferSize = kEDMA_TransferSize2Bytes; in LPI2C_MasterTransferEDMA()
414 transferConfig.destTransferSize = kEDMA_TransferSize2Bytes; in LPI2C_MasterTransferEDMA()
415 transferConfig.srcOffset = (int16_t)sizeof(uint16_t); in LPI2C_MasterTransferEDMA()
416 transferConfig.destOffset = 0; in LPI2C_MasterTransferEDMA()
417 transferConfig.minorLoopBytes = sizeof(uint16_t); /* TODO optimize to fill fifo */ in LPI2C_MasterTransferEDMA()
418 transferConfig.majorLoopCounts = commandCount; in LPI2C_MasterTransferEDMA()
420 EDMA_SetTransferConfig(handle->tx->base, handle->tx->channel, &transferConfig, linkTcd); in LPI2C_MasterTransferEDMA()