Lines Matching refs:txData

61 static uint32_t LPSPI_CombineWriteData(uint8_t *txData, uint8_t bytesEachWrite, bool isByteSwap);
736 if ((NULL == (transfer->txData)) && (NULL == (transfer->rxData))) in LPSPI_CheckTransferArgument()
811 uint8_t *txData = transfer->txData; in LPSPI_MasterTransferBlocking() local
851 if (NULL == txData) in LPSPI_MasterTransferBlocking()
856 if ((txData != NULL) && (rxData != NULL)) in LPSPI_MasterTransferBlocking()
905 if (txData != NULL) in LPSPI_MasterTransferBlocking()
907 wordToSend = LPSPI_CombineWriteData(txData, bytesEachWrite, isByteSwap); in LPSPI_MasterTransferBlocking()
908 txData += bytesEachWrite; in LPSPI_MasterTransferBlocking()
1067 handle->txData = transfer->txData; in LPSPI_MasterTransferNonBlocking()
1110 if (NULL == handle->txData) in LPSPI_MasterTransferNonBlocking()
1115 if ((NULL != handle->txData) && (NULL != handle->rxData)) in LPSPI_MasterTransferNonBlocking()
1225 if (handle->txData != NULL) in LPSPI_MasterTransferFillUpTxFifo()
1227 wordToSend = LPSPI_CombineWriteData(handle->txData, bytesEachWrite, isByteSwap); in LPSPI_MasterTransferFillUpTxFifo()
1228 handle->txData += bytesEachWrite; in LPSPI_MasterTransferFillUpTxFifo()
1533 handle->txData = transfer->txData; in LPSPI_SlaveTransferNonBlocking()
1566 if (NULL == handle->txData) in LPSPI_SlaveTransferNonBlocking()
1573 if ((handle->txData != NULL) && (handle->rxData != NULL)) in LPSPI_SlaveTransferNonBlocking()
1594 if (handle->txData == NULL) in LPSPI_SlaveTransferNonBlocking()
1639 if (handle->txData != NULL) in LPSPI_SlaveTransferNonBlocking()
1670 if (handle->txData != NULL) in LPSPI_SlaveTransferNonBlocking()
1695 wordToSend = LPSPI_CombineWriteData(handle->txData, bytesEachWrite, isByteSwap); in LPSPI_SlaveTransferFillUpTxFifo()
1696 handle->txData += bytesEachWrite; in LPSPI_SlaveTransferFillUpTxFifo()
1844 if ((handle->txRemainingByteCount > 0U) && (handle->txData != NULL)) in LPSPI_SlaveTransferHandleIRQ()
1852 wordToSend = LPSPI_CombineWriteData(handle->txData, bytesEachWrite, isByteSwap); in LPSPI_SlaveTransferHandleIRQ()
1853 handle->txData += bytesEachWrite; in LPSPI_SlaveTransferHandleIRQ()
1879 … if ((handle->rxData == NULL) && (handle->txRemainingByteCount != 0U) && (handle->txData != NULL)) in LPSPI_SlaveTransferHandleIRQ()
1916 if (handle->txData != NULL) in LPSPI_SlaveTransferHandleIRQ()
1928 if (handle->txData != NULL) in LPSPI_SlaveTransferHandleIRQ()
1936 static uint32_t LPSPI_CombineWriteData(uint8_t *txData, uint8_t bytesEachWrite, bool isByteSwap) in LPSPI_CombineWriteData() argument
1938 assert(txData != NULL); in LPSPI_CombineWriteData()
1945 wordToSend = *txData; in LPSPI_CombineWriteData()
1946 ++txData; in LPSPI_CombineWriteData()
1952 wordToSend = *txData; in LPSPI_CombineWriteData()
1953 ++txData; in LPSPI_CombineWriteData()
1954 wordToSend |= (unsigned)(*txData) << 8U; in LPSPI_CombineWriteData()
1955 ++txData; in LPSPI_CombineWriteData()
1959 wordToSend = (unsigned)(*txData) << 8U; in LPSPI_CombineWriteData()
1960 ++txData; in LPSPI_CombineWriteData()
1961 wordToSend |= *txData; in LPSPI_CombineWriteData()
1962 ++txData; in LPSPI_CombineWriteData()
1970 wordToSend = *txData; in LPSPI_CombineWriteData()
1971 ++txData; in LPSPI_CombineWriteData()
1972 wordToSend |= (unsigned)(*txData) << 8U; in LPSPI_CombineWriteData()
1973 ++txData; in LPSPI_CombineWriteData()
1974 wordToSend |= (unsigned)(*txData) << 16U; in LPSPI_CombineWriteData()
1975 ++txData; in LPSPI_CombineWriteData()
1979 wordToSend = (unsigned)(*txData) << 16U; in LPSPI_CombineWriteData()
1980 ++txData; in LPSPI_CombineWriteData()
1981 wordToSend |= (unsigned)(*txData) << 8U; in LPSPI_CombineWriteData()
1982 ++txData; in LPSPI_CombineWriteData()
1983 wordToSend |= *txData; in LPSPI_CombineWriteData()
1984 ++txData; in LPSPI_CombineWriteData()
1991 wordToSend = *txData; in LPSPI_CombineWriteData()
1992 ++txData; in LPSPI_CombineWriteData()
1993 wordToSend |= (unsigned)(*txData) << 8U; in LPSPI_CombineWriteData()
1994 ++txData; in LPSPI_CombineWriteData()
1995 wordToSend |= (unsigned)(*txData) << 16U; in LPSPI_CombineWriteData()
1996 ++txData; in LPSPI_CombineWriteData()
1997 wordToSend |= (unsigned)(*txData) << 24U; in LPSPI_CombineWriteData()
1998 ++txData; in LPSPI_CombineWriteData()
2002 wordToSend = (unsigned)(*txData) << 24U; in LPSPI_CombineWriteData()
2003 ++txData; in LPSPI_CombineWriteData()
2004 wordToSend |= (unsigned)(*txData) << 16U; in LPSPI_CombineWriteData()
2005 ++txData; in LPSPI_CombineWriteData()
2006 wordToSend |= (unsigned)(*txData) << 8U; in LPSPI_CombineWriteData()
2007 ++txData; in LPSPI_CombineWriteData()
2008 wordToSend |= *txData; in LPSPI_CombineWriteData()
2009 ++txData; in LPSPI_CombineWriteData()