Lines Matching refs:stateParams

154                                                lpspi_transfer_blocking_param_t *stateParams);
166 … bool LPSPI_MasterTransferClearTCR(LPSPI_Type *base, lpspi_transfer_blocking_param_t *stateParams);
180 lpspi_transfer_blocking_param_t *stateParams);
192 …_MasterTransferReadDataInFifoNoBuf(LPSPI_Type *base, lpspi_transfer_blocking_param_t *stateParams);
926 lpspi_transfer_blocking_param_t *stateParams) argument
940 if (txRemainingByteCount < (stateParams->bytesEachWrite))
942 (stateParams->bytesEachWrite) = (uint8_t)txRemainingByteCount;
962 if (((NULL == (stateParams->rxData)) ||
963 ((stateParams->rxRemainingByteCount) - txRemainingByteCount) < rxFifoMaxBytes))
965 if (stateParams->isTxMask)
971 if (stateParams->isPcsContinuous && (txRemainingByteCount == bytesPerFrame))
982 if ((stateParams->txData) != NULL)
984 if (stateParams->bytesEachWrite != 1U)
987 … LPSPI_CombineWriteData((stateParams->txData), (stateParams->bytesEachWrite), isByteSwap);
988 (stateParams->txData) += (stateParams->bytesEachWrite);
992 wordToSend = *(stateParams->txData);
993 (stateParams->txData) += 1U;
998 txRemainingByteCount -= (stateParams->bytesEachWrite);
1007 if (((stateParams->rxData) != NULL) && ((stateParams->rxRemainingByteCount) != 0U))
1011 while ((stateParams->isTxMask) && (LPSPI_GetRxFifoCount(base) == 0U))
1027 if ((stateParams->rxRemainingByteCount) < (stateParams->bytesEachRead))
1029 (stateParams->bytesEachRead) = (uint8_t)(stateParams->rxRemainingByteCount);
1032 … LPSPI_SeparateReadData((stateParams->rxData), readData, (stateParams->bytesEachRead), isByteSwap);
1033 (stateParams->rxData) += (stateParams->bytesEachRead);
1035 (stateParams->rxRemainingByteCount) -= (stateParams->bytesEachRead);
1048 …c bool LPSPI_MasterTransferClearTCR(LPSPI_Type *base, lpspi_transfer_blocking_param_t *stateParams) argument
1070 lpspi_transfer_blocking_param_t *stateParams) argument
1074 while ((stateParams->rxRemainingByteCount) > 0U)
1085 if ((stateParams->rxRemainingByteCount) < (stateParams->bytesEachRead))
1087 (stateParams->bytesEachRead) = (uint8_t)(stateParams->rxRemainingByteCount);
1090 … LPSPI_SeparateReadData((stateParams->rxData), readData, (stateParams->bytesEachRead), isByteSwap);
1091 (stateParams->rxData) += (stateParams->bytesEachRead);
1093 (stateParams->rxRemainingByteCount) -= (stateParams->bytesEachRead);
1106 …I_MasterTransferReadDataInFifoNoBuf(LPSPI_Type *base, lpspi_transfer_blocking_param_t *stateParams) argument
1167 lpspi_transfer_blocking_param_t stateParams; local
1168 (void)memset(&stateParams, 0, sizeof(stateParams));
1170 stateParams.txData = transfer->txData;
1171 stateParams.rxData = transfer->rxData;
1172 stateParams.isTxMask = false;
1173 stateParams.rxRemainingByteCount = transfer->dataSize;
1177stateParams.isPcsContinuous = (((transfer->configFlags & (uint32_t)kLPSPI_MasterPcsContinuous) != …
1182 (stateParams.txData == NULL))
1184 stateParams.isTxMask = true;
1206 …base->TCR |= LPSPI_TCR_CONT(stateParams.isPcsContinuous) | LPSPI_TCR_CONTC(stateParams.isPcsContin…
1207 LPSPI_TCR_RXMSK(NULL == stateParams.rxData);
1221 stateParams.bytesEachWrite = (uint8_t)bytesPerFrame;
1222 stateParams.bytesEachRead = (uint8_t)bytesPerFrame;
1226 stateParams.bytesEachWrite = 4U;
1227 stateParams.bytesEachRead = 4U;
1234 if (false == LPSPI_MasterTransferWriteAllTxData(base, transfer, &stateParams))
1239 if (stateParams.isPcsContinuous && !stateParams.isTxMask)
1248 if (false == LPSPI_MasterTransferClearTCR(base, &stateParams))
1255 if (stateParams.rxData != NULL)
1261 if (false == LPSPI_MasterTransferReadDataInFifo(base, transfer, &stateParams))
1273 if (false == LPSPI_MasterTransferReadDataInFifoNoBuf(base, &stateParams))