Lines Matching refs:transfer
725 bool LPSPI_CheckTransferArgument(lpspi_transfer_t *transfer, uint32_t bitsPerFrame, uint32_t bytesP… in LPSPI_CheckTransferArgument() argument
727 assert(transfer); in LPSPI_CheckTransferArgument()
730 if (transfer->dataSize == 0U) in LPSPI_CheckTransferArgument()
736 if ((NULL == (transfer->txData)) && (NULL == (transfer->rxData))) in LPSPI_CheckTransferArgument()
748 if ((transfer->dataSize % bytesPerFrame) != 0U) in LPSPI_CheckTransferArgument()
757 if (transfer->dataSize != bytesPerFrame) in LPSPI_CheckTransferArgument()
764 if ((transfer->dataSize % bytesPerFrame) != 0U) in LPSPI_CheckTransferArgument()
791 status_t LPSPI_MasterTransferBlocking(LPSPI_Type *base, lpspi_transfer_t *transfer) in LPSPI_MasterTransferBlocking() argument
793 assert(transfer); in LPSPI_MasterTransferBlocking()
800 if (!LPSPI_CheckTransferArgument(transfer, bitsPerFrame, bytesPerFrame)) in LPSPI_MasterTransferBlocking()
811 uint8_t *txData = transfer->txData; in LPSPI_MasterTransferBlocking()
812 uint8_t *rxData = transfer->rxData; in LPSPI_MasterTransferBlocking()
813 uint32_t txRemainingByteCount = transfer->dataSize; in LPSPI_MasterTransferBlocking()
814 uint32_t rxRemainingByteCount = transfer->dataSize; in LPSPI_MasterTransferBlocking()
826 …uint32_t whichPcs = (transfer->configFlags & LPSPI_MASTER_PCS_MASK) >> LPSPI_MASTER_PCS_SHIF… in LPSPI_MasterTransferBlocking()
828 bool isPcsContinuous = ((transfer->configFlags & (uint32_t)kLPSPI_MasterPcsContinuous) != 0U); in LPSPI_MasterTransferBlocking()
830 bool isByteSwap = ((transfer->configFlags & (uint32_t)kLPSPI_MasterByteSwap) != 0U); in LPSPI_MasterTransferBlocking()
1036 …terTransferNonBlocking(LPSPI_Type *base, lpspi_master_handle_t *handle, lpspi_transfer_t *transfer) in LPSPI_MasterTransferNonBlocking() argument
1039 assert(transfer); in LPSPI_MasterTransferNonBlocking()
1048 if (!LPSPI_CheckTransferArgument(transfer, bitsPerFrame, bytesPerFrame)) in LPSPI_MasterTransferNonBlocking()
1065 uint32_t whichPcs = (transfer->configFlags & LPSPI_MASTER_PCS_MASK) >> LPSPI_MASTER_PCS_SHIFT; in LPSPI_MasterTransferNonBlocking()
1067 handle->txData = transfer->txData; in LPSPI_MasterTransferNonBlocking()
1068 handle->rxData = transfer->rxData; in LPSPI_MasterTransferNonBlocking()
1069 handle->txRemainingByteCount = transfer->dataSize; in LPSPI_MasterTransferNonBlocking()
1070 handle->rxRemainingByteCount = transfer->dataSize; in LPSPI_MasterTransferNonBlocking()
1071 handle->totalByteCount = transfer->dataSize; in LPSPI_MasterTransferNonBlocking()
1075 …handle->writeRegRemainingTimes = (transfer->dataSize / bytesPerFrame) * ((bytesPerFrame + 3U) / 4U… in LPSPI_MasterTransferNonBlocking()
1084 … handle->isPcsContinuous = ((transfer->configFlags & (uint32_t)kLPSPI_MasterPcsContinuous) != 0U); in LPSPI_MasterTransferNonBlocking()
1086 handle->isByteSwap = ((transfer->configFlags & (uint32_t)kLPSPI_MasterByteSwap) != 0U); in LPSPI_MasterTransferNonBlocking()
1506 …laveTransferNonBlocking(LPSPI_Type *base, lpspi_slave_handle_t *handle, lpspi_transfer_t *transfer) in LPSPI_SlaveTransferNonBlocking() argument
1509 assert(transfer); in LPSPI_SlaveTransferNonBlocking()
1516 if (!LPSPI_CheckTransferArgument(transfer, bitsPerFrame, bytesPerFrame)) in LPSPI_SlaveTransferNonBlocking()
1531 uint32_t whichPcs = (transfer->configFlags & LPSPI_SLAVE_PCS_MASK) >> LPSPI_SLAVE_PCS_SHIFT; in LPSPI_SlaveTransferNonBlocking()
1533 handle->txData = transfer->txData; in LPSPI_SlaveTransferNonBlocking()
1534 handle->rxData = transfer->rxData; in LPSPI_SlaveTransferNonBlocking()
1535 handle->txRemainingByteCount = transfer->dataSize; in LPSPI_SlaveTransferNonBlocking()
1536 handle->rxRemainingByteCount = transfer->dataSize; in LPSPI_SlaveTransferNonBlocking()
1537 handle->totalByteCount = transfer->dataSize; in LPSPI_SlaveTransferNonBlocking()
1539 …handle->writeRegRemainingTimes = (transfer->dataSize / bytesPerFrame) * ((bytesPerFrame + 3U) / 4U… in LPSPI_SlaveTransferNonBlocking()
1545 handle->isByteSwap = ((transfer->configFlags & (uint32_t)kLPSPI_SlaveByteSwap) != 0U); in LPSPI_SlaveTransferNonBlocking()