Home
last modified time | relevance | path

Searched refs:txData (Results 1 – 25 of 68) sorted by relevance

123

/hal_nxp-2.7.6/mcux/drivers/kinetis/
Dfsl_lpspi.c61 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()
[all …]
Dfsl_dspi.c897 uint8_t *txData; in DSPI_MasterTransferBlocking() local
936 txData = transfer->txData; in DSPI_MasterTransferBlocking()
964 if (txData != NULL) in DSPI_MasterTransferBlocking()
966 base->PUSHR = (*txData) | (lastCommand); in DSPI_MasterTransferBlocking()
967 txData++; in DSPI_MasterTransferBlocking()
1004 if (txData != NULL) in DSPI_MasterTransferBlocking()
1006 base->PUSHR = command | (uint16_t)(*txData); in DSPI_MasterTransferBlocking()
1007 txData++; in DSPI_MasterTransferBlocking()
1050 if (txData != NULL) in DSPI_MasterTransferBlocking()
1052 wordToSend = *(txData); in DSPI_MasterTransferBlocking()
[all …]
Dfsl_dspi_edma.c149 if ((NULL == (transfer->txData)) && (NULL == (transfer->rxData))) in DSPI_MasterTransferEDMA()
210 handle->txData = transfer->txData; in DSPI_MasterTransferEDMA()
274 if (NULL != handle->txData) in DSPI_MasterTransferEDMA()
276 wordToSend = *(handle->txData); in DSPI_MasterTransferEDMA()
277 ++handle->txData; /* increment to next data byte */ in DSPI_MasterTransferEDMA()
278 wordToSend |= (uint16_t)(*(handle->txData)) << 8U; in DSPI_MasterTransferEDMA()
289 if (NULL != handle->txData) in DSPI_MasterTransferEDMA()
291 wordToSend = *(handle->txData); in DSPI_MasterTransferEDMA()
292 ++handle->txData; /* increment to next data byte */ in DSPI_MasterTransferEDMA()
293 wordToSend |= (uint16_t)(*(handle->txData)) << 8U; in DSPI_MasterTransferEDMA()
[all …]
Dfsl_flexio_spi.c72 if (handle->txData != NULL) in FLEXIO_SPI_TransferSendTransaction()
77 tmpData = *(handle->txData); in FLEXIO_SPI_TransferSendTransaction()
78 handle->txData++; in FLEXIO_SPI_TransferSendTransaction()
84 tmpData = (uint16_t)(handle->txData[0]) << 8U; in FLEXIO_SPI_TransferSendTransaction()
85 tmpData += handle->txData[1]; in FLEXIO_SPI_TransferSendTransaction()
89 tmpData = (uint16_t)(handle->txData[1]) << 8U; in FLEXIO_SPI_TransferSendTransaction()
90 tmpData += handle->txData[0]; in FLEXIO_SPI_TransferSendTransaction()
92 handle->txData += 2U; in FLEXIO_SPI_TransferSendTransaction()
837 if (xfer->txData != NULL) in FLEXIO_SPI_MasterTransferBlocking()
842 tmpData = *(xfer->txData); in FLEXIO_SPI_MasterTransferBlocking()
[all …]
Dfsl_spi.c269 SPI_WriteNonBlocking(base, handle->txData, bytestoTransfer); in SPI_SendInitialTransfer()
272 if (handle->txData) in SPI_SendInitialTransfer()
274 handle->txData += bytestoTransfer; in SPI_SendInitialTransfer()
292 SPI_WriteNonBlocking(base, handle->txData, bytes); in SPI_SendTransfer()
294 if (handle->txData) in SPI_SendTransfer()
296 handle->txData += bytes; in SPI_SendTransfer()
306 SPI_WriteNonBlocking(base, handle->txData, bytes); in SPI_SendTransfer()
309 if (handle->txData) in SPI_SendTransfer()
311 handle->txData += bytes; in SPI_SendTransfer()
329 SPI_WriteNonBlocking(base, handle->txData, bytestoTransfer); in SPI_SendTransfer()
[all …]
Dfsl_lpspi_edma.c247 handle->txData = transfer->txData; in LPSPI_MasterTransferEDMA()
277 if (NULL == handle->txData) in LPSPI_MasterTransferEDMA()
282 if ((handle->txData != NULL) && (handle->rxData != NULL)) in LPSPI_MasterTransferEDMA()
405 if (handle->txData != NULL) in LPSPI_MasterTransferEDMA()
407 … transferConfigTx.srcAddr = (uint32_t) & (transfer->txData[transfer->dataSize - bytesLastWrite]); in LPSPI_MasterTransferEDMA()
482 if (handle->txData != NULL) in LPSPI_MasterTransferEDMA()
484 transferConfigTx.srcAddr = (uint32_t)(handle->txData); in LPSPI_MasterTransferEDMA()
776 handle->txData = transfer->txData; in LPSPI_SlaveTransferEDMA()
804 if (NULL == handle->txData) in LPSPI_SlaveTransferEDMA()
809 if ((handle->txData != NULL) && (handle->rxData != NULL)) in LPSPI_SlaveTransferEDMA()
[all …]
Dfsl_flexio_i2s.c48 static void FLEXIO_I2S_WriteNonBlocking(FLEXIO_I2S_Type *base, uint8_t bitWidth, uint8_t *txData, s…
62 static void FLEXIO_I2S_WriteNonBlocking(FLEXIO_I2S_Type *base, uint8_t bitWidth, uint8_t *txData, s… in FLEXIO_I2S_WriteNonBlocking() argument
74 temp = (uint32_t)(*txData); in FLEXIO_I2S_WriteNonBlocking()
76 txData++; in FLEXIO_I2S_WriteNonBlocking()
408 status_t FLEXIO_I2S_WriteBlocking(FLEXIO_I2S_Type *base, uint8_t bitWidth, uint8_t *txData, size_t … in FLEXIO_I2S_WriteBlocking() argument
435 FLEXIO_I2S_WriteNonBlocking(base, bitWidth, txData, bytesPerWord); in FLEXIO_I2S_WriteBlocking()
436 txData = (uint8_t *)((uint32_t)txData + bytesPerWord); in FLEXIO_I2S_WriteBlocking()
Dfsl_flexio_uart.c390 status_t FLEXIO_UART_WriteBlocking(FLEXIO_UART_Type *base, const uint8_t *txData, size_t txSize) in FLEXIO_UART_WriteBlocking() argument
392 assert(txData != NULL); in FLEXIO_UART_WriteBlocking()
417 base->flexioBase->SHIFTBUF[base->shifterIndex[0]] = *txData++; in FLEXIO_UART_WriteBlocking()
608 handle->txData = xfer->data; in FLEXIO_UART_TransferSendNonBlocking()
971 FLEXIO_UART_WriteByte(base, handle->txData); in FLEXIO_UART_TransferHandleIRQ()
972 handle->txData++; in FLEXIO_UART_TransferHandleIRQ()
Dfsl_flexio_spi_edma.c183 if (xfer->txData != NULL) in FLEXIO_SPI_EDMAConfig()
186 xferConfig.srcAddr = (uint32_t)(xfer->txData); in FLEXIO_SPI_EDMAConfig()
336 if (((xfer->txData == NULL) && (xfer->rxData == NULL)) || (xfer->dataSize == 0U)) in FLEXIO_SPI_MasterTransferEDMA()
450 if (((xfer->txData == NULL) && (xfer->rxData == NULL)) || (xfer->dataSize == 0U)) in FLEXIO_SPI_SlaveTransferEDMA()
/hal_nxp-2.7.6/mcux/drivers/imx/
Dfsl_lpspi.c61 static uint32_t LPSPI_CombineWriteData(uint8_t *txData, uint8_t bytesEachWrite, bool isByteSwap);
746 if ((NULL == (transfer->txData)) && (NULL == (transfer->rxData))) in LPSPI_CheckTransferArgument()
785 if ((transfer->txData != NULL) && (transfer->rxData != NULL)) in LPSPI_CheckTransferArgument()
789 if (NULL == transfer->txData) in LPSPI_CheckTransferArgument()
843 uint8_t *txData = transfer->txData; in LPSPI_MasterTransferBlocking() local
867 (txData == NULL)) in LPSPI_MasterTransferBlocking()
950 if (txData != NULL) in LPSPI_MasterTransferBlocking()
952 wordToSend = LPSPI_CombineWriteData(txData, bytesEachWrite, isByteSwap); in LPSPI_MasterTransferBlocking()
953 txData += bytesEachWrite; in LPSPI_MasterTransferBlocking()
1122 handle->txData = transfer->txData; in LPSPI_MasterTransferNonBlocking()
[all …]
Dfsl_flexio_spi.c72 if (handle->txData != NULL) in FLEXIO_SPI_TransferSendTransaction()
77 tmpData = *(handle->txData); in FLEXIO_SPI_TransferSendTransaction()
78 handle->txData++; in FLEXIO_SPI_TransferSendTransaction()
84 tmpData = (uint16_t)(handle->txData[0]) << 8U; in FLEXIO_SPI_TransferSendTransaction()
85 tmpData += handle->txData[1]; in FLEXIO_SPI_TransferSendTransaction()
89 tmpData = (uint16_t)(handle->txData[1]) << 8U; in FLEXIO_SPI_TransferSendTransaction()
90 tmpData += handle->txData[0]; in FLEXIO_SPI_TransferSendTransaction()
92 handle->txData += 2U; in FLEXIO_SPI_TransferSendTransaction()
837 if (xfer->txData != NULL) in FLEXIO_SPI_MasterTransferBlocking()
842 tmpData = *(xfer->txData); in FLEXIO_SPI_MasterTransferBlocking()
[all …]
Dfsl_lpspi_edma.c241 handle->txData = transfer->txData; in LPSPI_MasterTransferEDMA()
368 if (handle->txData != NULL) in LPSPI_MasterTransferEDMA()
370 … transferConfigTx.srcAddr = (uint32_t) & (transfer->txData[transfer->dataSize - bytesLastWrite]); in LPSPI_MasterTransferEDMA()
445 if (handle->txData != NULL) in LPSPI_MasterTransferEDMA()
447 transferConfigTx.srcAddr = (uint32_t)(handle->txData); in LPSPI_MasterTransferEDMA()
724 handle->txData = transfer->txData; in LPSPI_SlaveTransferEDMA()
751 … LPSPI_TCR_TXMSK(transfer->txData == NULL) | LPSPI_TCR_BYSW(isByteSwap) | LPSPI_TCR_PCS(whichPcs); in LPSPI_SlaveTransferEDMA()
850 if (handle->txData != NULL) in LPSPI_SlaveTransferEDMA()
855 …transferConfigTx.srcAddr = (uint32_t) & (transfer->txData[transfer->dataSize - bytesLastWr… in LPSPI_SlaveTransferEDMA()
894 transferConfigTx.srcAddr = (uint32_t)(handle->txData); in LPSPI_SlaveTransferEDMA()
Dfsl_flexio_uart.c406 status_t FLEXIO_UART_WriteBlocking(FLEXIO_UART_Type *base, const uint8_t *txData, size_t txSize) in FLEXIO_UART_WriteBlocking() argument
408 assert(txData != NULL); in FLEXIO_UART_WriteBlocking()
433 base->flexioBase->SHIFTBUF[base->shifterIndex[0]] = *txData++; in FLEXIO_UART_WriteBlocking()
614 if ((0U == xfer->dataSize) || (NULL == xfer->txData)) in FLEXIO_UART_TransferSendNonBlocking()
626 handle->txData = xfer->txData; in FLEXIO_UART_TransferSendNonBlocking()
989 FLEXIO_UART_WriteByte(base, handle->txData); in FLEXIO_UART_TransferHandleIRQ()
990 handle->txData++; in FLEXIO_UART_TransferHandleIRQ()
Dfsl_flexio_i2s.c48 static void FLEXIO_I2S_WriteNonBlocking(FLEXIO_I2S_Type *base, uint8_t bitWidth, uint8_t *txData, s…
62 static void FLEXIO_I2S_WriteNonBlocking(FLEXIO_I2S_Type *base, uint8_t bitWidth, uint8_t *txData, s… in FLEXIO_I2S_WriteNonBlocking() argument
74 temp = (uint32_t)(*txData); in FLEXIO_I2S_WriteNonBlocking()
76 txData++; in FLEXIO_I2S_WriteNonBlocking()
408 status_t FLEXIO_I2S_WriteBlocking(FLEXIO_I2S_Type *base, uint8_t bitWidth, uint8_t *txData, size_t … in FLEXIO_I2S_WriteBlocking() argument
435 FLEXIO_I2S_WriteNonBlocking(base, bitWidth, txData, bytesPerWord); in FLEXIO_I2S_WriteBlocking()
436 txData = (uint8_t *)((uint32_t)txData + bytesPerWord); in FLEXIO_I2S_WriteBlocking()
Dfsl_flexio_spi_edma.c183 if (xfer->txData != NULL) in FLEXIO_SPI_EDMAConfig()
186 xferConfig.srcAddr = (uint32_t)(xfer->txData); in FLEXIO_SPI_EDMAConfig()
336 if (((xfer->txData == NULL) && (xfer->rxData == NULL)) || (xfer->dataSize == 0U)) in FLEXIO_SPI_MasterTransferEDMA()
450 if (((xfer->txData == NULL) && (xfer->rxData == NULL)) || (xfer->dataSize == 0U)) in FLEXIO_SPI_SlaveTransferEDMA()
Dfsl_flexio_uart.h108 const uint8_t *txData; /*!< The buffer of data to be sent. */ member
125 const uint8_t *volatile txData; /*!< Address of remaining data to send. */ member
387 status_t FLEXIO_UART_WriteBlocking(FLEXIO_UART_Type *base, const uint8_t *txData, size_t txSize);
/hal_nxp-2.7.6/mcux/drivers/imxrt6xx/
Dfsl_spi.c525 uint8_t *txData, *rxData; in SPI_MasterTransferBlocking() local
532 … assert(!((NULL == base) || (NULL == xfer) || ((NULL == xfer->txData) && (NULL == xfer->rxData)))); in SPI_MasterTransferBlocking()
533 if ((NULL == base) || (NULL == xfer) || ((NULL == xfer->txData) && (NULL == xfer->rxData))) in SPI_MasterTransferBlocking()
539 txData = xfer->txData; in SPI_MasterTransferBlocking()
541 txRemainingBytes = (txData != NULL) ? xfer->dataSize : 0U; in SPI_MasterTransferBlocking()
599 tmp32 = *(txData++); in SPI_MasterTransferBlocking()
604 tmp32 |= ((uint32_t)(*(txData++))) << 8U; in SPI_MasterTransferBlocking()
660 …!((NULL == base) || (NULL == handle) || (NULL == xfer) || ((NULL == xfer->txData) && (NULL == xfer… in SPI_MasterTransferNonBlocking()
661 …if ((NULL == base) || (NULL == handle) || (NULL == xfer) || ((NULL == xfer->txData) && (NULL == xf… in SPI_MasterTransferNonBlocking()
680 handle->txData = xfer->txData; in SPI_MasterTransferNonBlocking()
[all …]
Dfsl_spi_dma.c120 …*txLastWord = (((uint32_t)xfer->txData[xfer->dataSize - 1U] << 8U) | (xfer->txData[xfer->dataSize … in PrepareTxLastWord()
124 *txLastWord = xfer->txData[xfer->dataSize - 1U]; in PrepareTxLastWord()
279 if (xfer->txData != NULL) in SPI_MasterTransferDMA()
307 &xferConfig, xfer->txData, (uint32_t *)address, in SPI_MasterTransferDMA()
323 &xferConfig, xfer->txData, (uint32_t *)address, in SPI_MasterTransferDMA()
428 tempXfer.txData = xfer->txData; in SPI_MasterHalfDuplexTransferDMA()
434 tempXfer.txData = NULL; in SPI_MasterHalfDuplexTransferDMA()
456 tempXfer.txData = NULL; in SPI_MasterHalfDuplexTransferDMA()
462 tempXfer.txData = xfer->txData; in SPI_MasterHalfDuplexTransferDMA()
Dfsl_i2c.c134 const void *txData,
1361 if (((handle->transfer.txData != NULL) && (txSize != 0U)) || in I2C_SlaveInvokeEvent()
1392 if ((handle->transfer.txData == NULL) || (txSize == 0U)) in I2C_SlaveAddressIRQ()
1399 if ((handle->transfer.txData == NULL) || (txSize == 0U)) in I2C_SlaveAddressIRQ()
1437 const void *txData, in I2C_SlaveTransferNonBlockingInternal() argument
1458 handle->transfer.txData = (const uint8_t *)txData; in I2C_SlaveTransferNonBlockingInternal()
1503 …I2C_Type *base, volatile i2c_slave_transfer_t *transfer, const void *txData, size_t txSize, uint32… in I2C_SlaveSetSendBuffer() argument
1505 …return I2C_SlaveTransferNonBlockingInternal(base, transfer->handle, txData, txSize, NULL, 0u, even… in I2C_SlaveSetSendBuffer()
2046 if ((handle->transfer.txData == NULL) || (txSize == 0U)) in I2C_SlaveTransferHandleIRQ()
2053 if ((handle->transfer.txData != NULL) && (txSize != 0U)) in I2C_SlaveTransferHandleIRQ()
[all …]
Dfsl_usart.c731 assert(!((0U == xfer->dataSize) || (NULL == xfer->txData))); in USART_TransferSendNonBlocking()
732 if ((0U == xfer->dataSize) || (NULL == xfer->txData)) in USART_TransferSendNonBlocking()
748 handle->txData = xfer->txData; in USART_TransferSendNonBlocking()
1115 base->FIFOWR = *handle->txData; in USART_TransferHandleIRQ()
1117 handle->txData++; in USART_TransferHandleIRQ()
/hal_nxp-2.7.6/mcux/drivers/lpc/
Dfsl_spi.c525 uint8_t *txData, *rxData; in SPI_MasterTransferBlocking() local
532 … assert(!((NULL == base) || (NULL == xfer) || ((NULL == xfer->txData) && (NULL == xfer->rxData)))); in SPI_MasterTransferBlocking()
533 if ((NULL == base) || (NULL == xfer) || ((NULL == xfer->txData) && (NULL == xfer->rxData))) in SPI_MasterTransferBlocking()
539 txData = xfer->txData; in SPI_MasterTransferBlocking()
541 txRemainingBytes = (txData != NULL) ? xfer->dataSize : 0U; in SPI_MasterTransferBlocking()
599 tmp32 = *(txData++); in SPI_MasterTransferBlocking()
604 tmp32 |= ((uint32_t)(*(txData++))) << 8U; in SPI_MasterTransferBlocking()
660 …!((NULL == base) || (NULL == handle) || (NULL == xfer) || ((NULL == xfer->txData) && (NULL == xfer… in SPI_MasterTransferNonBlocking()
661 …if ((NULL == base) || (NULL == handle) || (NULL == xfer) || ((NULL == xfer->txData) && (NULL == xf… in SPI_MasterTransferNonBlocking()
680 handle->txData = xfer->txData; in SPI_MasterTransferNonBlocking()
[all …]
Dfsl_spi_dma.c120 …*txLastWord = (((uint32_t)xfer->txData[xfer->dataSize - 1U] << 8U) | (xfer->txData[xfer->dataSize … in PrepareTxLastWord()
124 *txLastWord = xfer->txData[xfer->dataSize - 1U]; in PrepareTxLastWord()
279 if (xfer->txData != NULL) in SPI_MasterTransferDMA()
307 &xferConfig, xfer->txData, (uint32_t *)address, in SPI_MasterTransferDMA()
323 &xferConfig, xfer->txData, (uint32_t *)address, in SPI_MasterTransferDMA()
428 tempXfer.txData = xfer->txData; in SPI_MasterHalfDuplexTransferDMA()
434 tempXfer.txData = NULL; in SPI_MasterHalfDuplexTransferDMA()
456 tempXfer.txData = NULL; in SPI_MasterHalfDuplexTransferDMA()
462 tempXfer.txData = xfer->txData; in SPI_MasterHalfDuplexTransferDMA()
Dfsl_i2c.c134 const void *txData,
1361 if (((handle->transfer.txData != NULL) && (txSize != 0U)) || in I2C_SlaveInvokeEvent()
1392 if ((handle->transfer.txData == NULL) || (txSize == 0U)) in I2C_SlaveAddressIRQ()
1399 if ((handle->transfer.txData == NULL) || (txSize == 0U)) in I2C_SlaveAddressIRQ()
1437 const void *txData, in I2C_SlaveTransferNonBlockingInternal() argument
1458 handle->transfer.txData = (const uint8_t *)txData; in I2C_SlaveTransferNonBlockingInternal()
1503 …I2C_Type *base, volatile i2c_slave_transfer_t *transfer, const void *txData, size_t txSize, uint32… in I2C_SlaveSetSendBuffer() argument
1505 …return I2C_SlaveTransferNonBlockingInternal(base, transfer->handle, txData, txSize, NULL, 0u, even… in I2C_SlaveSetSendBuffer()
2046 if ((handle->transfer.txData == NULL) || (txSize == 0U)) in I2C_SlaveTransferHandleIRQ()
2053 if ((handle->transfer.txData != NULL) && (txSize != 0U)) in I2C_SlaveTransferHandleIRQ()
[all …]
/hal_nxp-2.7.6/mcux/drivers/imx8/
Dfsl_ecspi.c186 ECSPI_WriteNonBlocking(base, handle->txData, 1); in ECSPI_SendTransfer()
187 if (NULL != handle->txData) in ECSPI_SendTransfer()
189 handle->txData += 1U; in ECSPI_SendTransfer()
664 if ((xfer->txData == NULL) && (xfer->rxData == NULL)) in ECSPI_MasterTransferBlocking()
687 state = ECSPI_WriteBlocking(base, xfer->txData, dataCounts); in ECSPI_MasterTransferBlocking()
692 if (NULL != xfer->txData) in ECSPI_MasterTransferBlocking()
694 xfer->txData += dataCounts; in ECSPI_MasterTransferBlocking()
736 if (((xfer->txData == NULL) && (xfer->rxData == NULL)) || (xfer->dataSize == 0U)) in ECSPI_MasterTransferNonBlocking()
743 handle->txData = xfer->txData; in ECSPI_MasterTransferNonBlocking()
Dfsl_ecspi_sdma.c339 if (((xfer->txData == NULL) && (xfer->rxData == NULL)) || (xfer->dataSize == 0U)) in ECSPI_MasterTransferSDMA()
358 …SDMA_PrepareTransfer(&xferConfig, (uint32_t)xfer->txData, (uint32_t) & (base->TXDATA), sizeof(uint… in ECSPI_MasterTransferSDMA()
410 if (((xfer->txData == NULL) && (xfer->rxData == NULL)) || (xfer->dataSize == 0U)) in ECSPI_SlaveTransferSDMA()
436 …SDMA_PrepareTransfer(&xferConfig, (uint32_t)xfer->txData, (uint32_t) & (base->TXDATA), sizeof(uint… in ECSPI_SlaveTransferSDMA()

123