Home
last modified time | relevance | path

Searched refs:bytesPerFrame (Results 1 – 25 of 29) sorted by relevance

12

/hal_nxp-2.7.6/mcux/drivers/imx/
Dfsl_lpspi.c737 uint32_t bytesPerFrame = (bitsPerFrame + 7U) / 8U; in LPSPI_CheckTransferArgument() local
756 if (bytesPerFrame <= 4U) in LPSPI_CheckTransferArgument()
758 if ((transfer->dataSize % bytesPerFrame) != 0U) in LPSPI_CheckTransferArgument()
765 if ((bytesPerFrame % 4U) != 0U) in LPSPI_CheckTransferArgument()
767 if (transfer->dataSize != bytesPerFrame) in LPSPI_CheckTransferArgument()
774 if ((transfer->dataSize % bytesPerFrame) != 0U) in LPSPI_CheckTransferArgument()
795 if (isEdma && ((bytesPerFrame % 4U) == 3U)) in LPSPI_CheckTransferArgument()
853 …uint32_t bytesPerFrame = ((base->TCR & LPSPI_TCR_FRAMESZ_MASK) >> LPSPI_TCR_FRAMESZ_SHIFT) / 8U + … in LPSPI_MasterTransferBlocking() local
856 (bytesPerFrame < transfer->dataSize)); in LPSPI_MasterTransferBlocking()
857 uint32_t rxFifoMaxBytes = MIN(bytesPerFrame, 4U) * fifoSize; in LPSPI_MasterTransferBlocking()
[all …]
Dfsl_sai_edma.c250 handle->bytesPerFrame = 4U; in SAI_TransferTxSetFormatEDMA()
254 handle->bytesPerFrame = (uint8_t)(format->bitWidth / 8U); in SAI_TransferTxSetFormatEDMA()
287 handle->bytesPerFrame = 4U; in SAI_TransferTxSetConfigEDMA()
291 handle->bytesPerFrame = saiConfig->serialData.dataWordLength / 8U; in SAI_TransferTxSetConfigEDMA()
336 handle->bytesPerFrame = 4U; in SAI_TransferRxSetFormatEDMA()
340 handle->bytesPerFrame = (uint8_t)(format->bitWidth / 8U); in SAI_TransferRxSetFormatEDMA()
373 handle->bytesPerFrame = 4U; in SAI_TransferRxSetConfigEDMA()
377 handle->bytesPerFrame = saiConfig->serialData.dataWordLength / 8U; in SAI_TransferRxSetConfigEDMA()
433 …A_PrepareTransfer(&config, xfer->data, handle->bytesPerFrame, (uint32_t *)destAddr, handle->bytesP… in SAI_TransferSendEDMA()
434 … (uint32_t)handle->count * handle->bytesPerFrame, xfer->dataSize, kEDMA_MemoryToPeripheral); in SAI_TransferSendEDMA()
[all …]
Dfsl_flexio_spi_edma.c131 uint8_t bytesPerFrame; in FLEXIO_SPI_EDMAConfig() local
137 bytesPerFrame = 1U; in FLEXIO_SPI_EDMAConfig()
141 bytesPerFrame = 1U; in FLEXIO_SPI_EDMAConfig()
145 bytesPerFrame = 2U; in FLEXIO_SPI_EDMAConfig()
149 bytesPerFrame = 2U; in FLEXIO_SPI_EDMAConfig()
153 bytesPerFrame = 1U; in FLEXIO_SPI_EDMAConfig()
165 if (bytesPerFrame == 1U) in FLEXIO_SPI_EDMAConfig()
185 xferConfig.srcOffset = (int16_t)bytesPerFrame; in FLEXIO_SPI_EDMAConfig()
209 if (bytesPerFrame == 2U) in FLEXIO_SPI_EDMAConfig()
218 xferConfig.destOffset = (int16_t)bytesPerFrame; in FLEXIO_SPI_EDMAConfig()
Dfsl_flexio_i2s_edma.c219 handle->bytesPerFrame = format->bitWidth / 8U; in FLEXIO_I2S_TransferSetFormatEDMA()
242 …t destAddr = FLEXIO_I2S_TxGetDataRegisterAddress(base) + (4UL - handle->bytesPerFrame); in FLEXIO_I2S_TransferSendEDMA()
265 …A_PrepareTransfer(&config, xfer->data, handle->bytesPerFrame, (uint32_t *)destAddr, handle->bytesP… in FLEXIO_I2S_TransferSendEDMA()
266 handle->bytesPerFrame, xfer->dataSize, kEDMA_MemoryToPeripheral); in FLEXIO_I2S_TransferSendEDMA()
269 handle->nbytes = handle->bytesPerFrame; in FLEXIO_I2S_TransferSendEDMA()
329 …epareTransfer(&config, (uint32_t *)srcAddr, handle->bytesPerFrame, xfer->data, handle->bytesPerFra… in FLEXIO_I2S_TransferReceiveEDMA()
330 handle->bytesPerFrame, xfer->dataSize, kEDMA_PeripheralToMemory); in FLEXIO_I2S_TransferReceiveEDMA()
333 handle->nbytes = handle->bytesPerFrame; in FLEXIO_I2S_TransferReceiveEDMA()
Dfsl_lpspi_edma.c234 …uint32_t bytesPerFrame = ((base->TCR & LPSPI_TCR_FRAMESZ_MASK) >> LPSPI_TCR_FRAMESZ_SHIFT) / 8U + … in LPSPI_MasterTransferEDMA() local
246 …handle->writeRegRemainingTimes = (transfer->dataSize / bytesPerFrame) * ((bytesPerFrame + 3U) / 4U… in LPSPI_MasterTransferEDMA()
271 if (bytesPerFrame <= 4U) in LPSPI_MasterTransferEDMA()
273 handle->bytesEachWrite = (uint8_t)bytesPerFrame; in LPSPI_MasterTransferEDMA()
274 handle->bytesEachRead = (uint8_t)bytesPerFrame; in LPSPI_MasterTransferEDMA()
276 handle->bytesLastRead = (uint8_t)bytesPerFrame; in LPSPI_MasterTransferEDMA()
717 …uint32_t bytesPerFrame = ((base->TCR & LPSPI_TCR_FRAMESZ_MASK) >> LPSPI_TCR_FRAMESZ_SHIFT) / 8U + … in LPSPI_SlaveTransferEDMA() local
729 …handle->writeRegRemainingTimes = (transfer->dataSize / bytesPerFrame) * ((bytesPerFrame + 3U) / 4U… in LPSPI_SlaveTransferEDMA()
754 if (bytesPerFrame <= 4U) in LPSPI_SlaveTransferEDMA()
756 handle->bytesEachWrite = (uint8_t)bytesPerFrame; in LPSPI_SlaveTransferEDMA()
[all …]
Dfsl_flexio_spi.c770 uint8_t bytesPerFrame; in FLEXIO_SPI_MasterTransferBlocking() local
784 bytesPerFrame = 1U; in FLEXIO_SPI_MasterTransferBlocking()
790 bytesPerFrame = 1U; in FLEXIO_SPI_MasterTransferBlocking()
796 bytesPerFrame = 2U; in FLEXIO_SPI_MasterTransferBlocking()
802 bytesPerFrame = 2U; in FLEXIO_SPI_MasterTransferBlocking()
808 bytesPerFrame = 1U; in FLEXIO_SPI_MasterTransferBlocking()
840 if (bytesPerFrame == 1U) in FLEXIO_SPI_MasterTransferBlocking()
865 xfer->dataSize -= bytesPerFrame; in FLEXIO_SPI_MasterTransferBlocking()
888 if (bytesPerFrame == 1U) in FLEXIO_SPI_MasterTransferBlocking()
Dfsl_flexio_i2s_edma.h41 uint8_t bytesPerFrame; /*!< Bytes in a frame */ member
/hal_nxp-2.7.6/mcux/drivers/kinetis/
Dfsl_sai_edma.c250 handle->bytesPerFrame = 4U; in SAI_TransferTxSetFormatEDMA()
254 handle->bytesPerFrame = (uint8_t)(format->bitWidth / 8U); in SAI_TransferTxSetFormatEDMA()
287 handle->bytesPerFrame = 4U; in SAI_TransferTxSetConfigEDMA()
291 handle->bytesPerFrame = saiConfig->serialData.dataWordLength / 8U; in SAI_TransferTxSetConfigEDMA()
336 handle->bytesPerFrame = 4U; in SAI_TransferRxSetFormatEDMA()
340 handle->bytesPerFrame = (uint8_t)(format->bitWidth / 8U); in SAI_TransferRxSetFormatEDMA()
373 handle->bytesPerFrame = 4U; in SAI_TransferRxSetConfigEDMA()
377 handle->bytesPerFrame = saiConfig->serialData.dataWordLength / 8U; in SAI_TransferRxSetConfigEDMA()
433 …A_PrepareTransfer(&config, xfer->data, handle->bytesPerFrame, (uint32_t *)destAddr, handle->bytesP… in SAI_TransferSendEDMA()
434 … (uint32_t)handle->count * handle->bytesPerFrame, xfer->dataSize, kEDMA_MemoryToPeripheral); in SAI_TransferSendEDMA()
[all …]
Dfsl_spi.c155 uint8_t bytesPerFrame = 1U; in SPI_WriteNonBlocking() local
159 bytesPerFrame = ((base->C2 & SPI_C2_SPIMODE_MASK) >> SPI_C2_SPIMODE_SHIFT) + 1U; in SPI_WriteNonBlocking()
187 i += bytesPerFrame; in SPI_WriteNonBlocking()
194 uint8_t bytesPerFrame = 1U; in SPI_ReadNonBlocking() local
198 bytesPerFrame = ((base->C2 & SPI_C2_SPIMODE_MASK) >> SPI_C2_SPIMODE_SHIFT) + 1U; in SPI_ReadNonBlocking()
225 i += bytesPerFrame; in SPI_ReadNonBlocking()
670 uint8_t bytesPerFrame = 1U; in SPI_WriteBlocking() local
674 bytesPerFrame = ((base->C2 & SPI_C2_SPIMODE_MASK) >> SPI_C2_SPIMODE_SHIFT) + 1U; in SPI_WriteBlocking()
684 SPI_WriteNonBlocking(base, buffer, bytesPerFrame); in SPI_WriteBlocking()
686 i += bytesPerFrame; in SPI_WriteBlocking()
[all …]
Dfsl_lpspi.c725 …PI_CheckTransferArgument(lpspi_transfer_t *transfer, uint32_t bitsPerFrame, uint32_t bytesPerFrame) in LPSPI_CheckTransferArgument() argument
746 if (bytesPerFrame <= 4U) in LPSPI_CheckTransferArgument()
748 if ((transfer->dataSize % bytesPerFrame) != 0U) in LPSPI_CheckTransferArgument()
755 if ((bytesPerFrame % 4U) != 0U) in LPSPI_CheckTransferArgument()
757 if (transfer->dataSize != bytesPerFrame) in LPSPI_CheckTransferArgument()
764 if ((transfer->dataSize % bytesPerFrame) != 0U) in LPSPI_CheckTransferArgument()
796 uint32_t bytesPerFrame = (bitsPerFrame + 7U) / 8U; in LPSPI_MasterTransferBlocking() local
800 if (!LPSPI_CheckTransferArgument(transfer, bitsPerFrame, bytesPerFrame)) in LPSPI_MasterTransferBlocking()
825 uint32_t rxFifoMaxBytes = MIN(bytesPerFrame, 4U) * fifoSize; in LPSPI_MasterTransferBlocking()
867 if (bytesPerFrame <= 4U) in LPSPI_MasterTransferBlocking()
[all …]
Dfsl_lpspi_edma.c198 uint32_t bytesPerFrame = (bitsPerFrame + 7U) / 8U; in LPSPI_MasterTransferEDMA() local
203 if (!LPSPI_CheckTransferArgument(transfer, bitsPerFrame, bytesPerFrame)) in LPSPI_MasterTransferEDMA()
209 if ((bytesPerFrame % 4U) == 3U) in LPSPI_MasterTransferEDMA()
253 …handle->writeRegRemainingTimes = (transfer->dataSize / bytesPerFrame) * ((bytesPerFrame + 3U) / 4U… in LPSPI_MasterTransferEDMA()
306 if (bytesPerFrame <= 4U) in LPSPI_MasterTransferEDMA()
308 handle->bytesEachWrite = (uint8_t)bytesPerFrame; in LPSPI_MasterTransferEDMA()
309 handle->bytesEachRead = (uint8_t)bytesPerFrame; in LPSPI_MasterTransferEDMA()
311 handle->bytesLastRead = (uint8_t)bytesPerFrame; in LPSPI_MasterTransferEDMA()
728 uint32_t bytesPerFrame = (bitsPerFrame + 7U) / 8U; in LPSPI_SlaveTransferEDMA() local
734 if (!LPSPI_CheckTransferArgument(transfer, bitsPerFrame, bytesPerFrame)) in LPSPI_SlaveTransferEDMA()
[all …]
Dfsl_flexio_i2s_edma.c221 handle->bytesPerFrame = format->bitWidth / 8U; in FLEXIO_I2S_TransferSetFormatEDMA()
244 …t destAddr = FLEXIO_I2S_TxGetDataRegisterAddress(base) + (4UL - handle->bytesPerFrame); in FLEXIO_I2S_TransferSendEDMA()
267 …A_PrepareTransfer(&config, xfer->data, handle->bytesPerFrame, (uint32_t *)destAddr, handle->bytesP… in FLEXIO_I2S_TransferSendEDMA()
268 handle->bytesPerFrame, xfer->dataSize, kEDMA_MemoryToPeripheral); in FLEXIO_I2S_TransferSendEDMA()
271 handle->nbytes = handle->bytesPerFrame; in FLEXIO_I2S_TransferSendEDMA()
331 …epareTransfer(&config, (uint32_t *)srcAddr, handle->bytesPerFrame, xfer->data, handle->bytesPerFra… in FLEXIO_I2S_TransferReceiveEDMA()
332 handle->bytesPerFrame, xfer->dataSize, kEDMA_PeripheralToMemory); in FLEXIO_I2S_TransferReceiveEDMA()
335 handle->nbytes = handle->bytesPerFrame; in FLEXIO_I2S_TransferReceiveEDMA()
Dfsl_flexio_spi_edma.c131 uint8_t bytesPerFrame; in FLEXIO_SPI_EDMAConfig() local
137 bytesPerFrame = 1U; in FLEXIO_SPI_EDMAConfig()
141 bytesPerFrame = 1U; in FLEXIO_SPI_EDMAConfig()
145 bytesPerFrame = 2U; in FLEXIO_SPI_EDMAConfig()
149 bytesPerFrame = 2U; in FLEXIO_SPI_EDMAConfig()
153 bytesPerFrame = 1U; in FLEXIO_SPI_EDMAConfig()
165 if (bytesPerFrame == 1U) in FLEXIO_SPI_EDMAConfig()
185 xferConfig.srcOffset = (int16_t)bytesPerFrame; in FLEXIO_SPI_EDMAConfig()
209 if (bytesPerFrame == 2U) in FLEXIO_SPI_EDMAConfig()
218 xferConfig.destOffset = (int16_t)bytesPerFrame; in FLEXIO_SPI_EDMAConfig()
Dfsl_flexio_spi.c770 uint8_t bytesPerFrame; in FLEXIO_SPI_MasterTransferBlocking() local
784 bytesPerFrame = 1U; in FLEXIO_SPI_MasterTransferBlocking()
790 bytesPerFrame = 1U; in FLEXIO_SPI_MasterTransferBlocking()
796 bytesPerFrame = 2U; in FLEXIO_SPI_MasterTransferBlocking()
802 bytesPerFrame = 2U; in FLEXIO_SPI_MasterTransferBlocking()
808 bytesPerFrame = 1U; in FLEXIO_SPI_MasterTransferBlocking()
840 if (bytesPerFrame == 1U) in FLEXIO_SPI_MasterTransferBlocking()
865 xfer->dataSize -= bytesPerFrame; in FLEXIO_SPI_MasterTransferBlocking()
888 if (bytesPerFrame == 1U) in FLEXIO_SPI_MasterTransferBlocking()
Dfsl_spi_dma.c169 handle->bytesPerFrame = ((base->C2 & SPI_C2_SPIMODE_MASK) >> SPI_C2_SPIMODE_SHIFT) + 1U; in SPI_MasterTransferCreateHandleDMA()
171 handle->bytesPerFrame = 1U; in SPI_MasterTransferCreateHandleDMA()
189 if (handle->bytesPerFrame == 1U) in SPI_MasterTransferCreateHandleDMA()
239 if (handle->bytesPerFrame == 1U) in SPI_MasterTransferDMA()
Dfsl_spi_dma.h58 uint8_t bytesPerFrame; /*!< Bytes in a frame for SPI tranfer */ member
Dfsl_flexio_i2s_edma.h41 uint8_t bytesPerFrame; /*!< Bytes in a frame */ member
/hal_nxp-2.7.6/mcux/drivers/imx8/
Dfsl_sai_sdma.c250 handle->bytesPerFrame = 4U; in SAI_TransferTxSetFormatSDMA()
254 handle->bytesPerFrame = (uint8_t)(format->bitWidth / 8U); in SAI_TransferTxSetFormatSDMA()
300 handle->bytesPerFrame = saiConfig->serialData.dataWordLength / 8U; in SAI_TransferTxSetConfigSDMA()
361 handle->bytesPerFrame = 4U; in SAI_TransferRxSetFormatSDMA()
365 handle->bytesPerFrame = (uint8_t)(format->bitWidth / 8U); in SAI_TransferRxSetFormatSDMA()
413 handle->bytesPerFrame = saiConfig->serialData.dataWordLength / 8U; in SAI_TransferRxSetConfigSDMA()
471 … ((uint16_t)handle->count * handle->bytesPerFrame > (uint16_t)kSDMA_MultiFifoWatermarkLevelMask))) in SAI_TransferSendSDMA()
504 …pareTransfer(&config, (uint32_t)xfer->data, destAddr, handle->bytesPerFrame, handle->bytesPerFrame, in SAI_TransferSendSDMA()
505 … (uint32_t)handle->count * handle->bytesPerFrame, xfer->dataSize, handle->eventSource, perType, in SAI_TransferSendSDMA()
569 … ((uint16_t)handle->count * handle->bytesPerFrame > (uint16_t)kSDMA_MultiFifoWatermarkLevelMask))) in SAI_TransferReceiveSDMA()
[all …]
Dfsl_sai_sdma.h37 uint8_t bytesPerFrame; /*!< Bytes in a frame */ member
/hal_nxp-2.7.6/mcux/drivers/imxrt6xx/
Dfsl_i2s_dma.c206 …handle->bytesPerFrame = (uint8_t)((((base->CFG1 & I2S_CFG1_DATALEN_MASK) >> I2S_CFG1_DATALEN_SHIFT… in I2S_TxTransferCreateHandleDMA()
212 handle->bytesPerFrame = 4U; in I2S_TxTransferCreateHandleDMA()
215 if (handle->bytesPerFrame == 3U) in I2S_TxTransferCreateHandleDMA()
217 handle->bytesPerFrame = 4U; in I2S_TxTransferCreateHandleDMA()
473 …xferConfig = DMA_CHANNEL_XFER(1UL, 0UL, 0UL, 1UL, handle->bytesPerFrame, srcInc, destInc, (uint32_… in I2S_StartTransferDMA()
574 …DMA_CHANNEL_XFER(1UL, 0UL, !intA, intA, handle->bytesPerFrame, srcInc, destInc, (uint32_t)transfer… in I2S_AddTransferDMA()
Dfsl_i2s_dma.h52 uint8_t bytesPerFrame; /*!< bytes per frame */ member
Dfsl_spi_dma.h43 uint8_t bytesPerFrame; /*!< Bytes in a frame for SPI transfer */ member
/hal_nxp-2.7.6/mcux/drivers/lpc/
Dfsl_i2s_dma.c206 …handle->bytesPerFrame = (uint8_t)((((base->CFG1 & I2S_CFG1_DATALEN_MASK) >> I2S_CFG1_DATALEN_SHIFT… in I2S_TxTransferCreateHandleDMA()
212 handle->bytesPerFrame = 4U; in I2S_TxTransferCreateHandleDMA()
215 if (handle->bytesPerFrame == 3U) in I2S_TxTransferCreateHandleDMA()
217 handle->bytesPerFrame = 4U; in I2S_TxTransferCreateHandleDMA()
473 …xferConfig = DMA_CHANNEL_XFER(1UL, 0UL, 0UL, 1UL, handle->bytesPerFrame, srcInc, destInc, (uint32_… in I2S_StartTransferDMA()
574 …DMA_CHANNEL_XFER(1UL, 0UL, !intA, intA, handle->bytesPerFrame, srcInc, destInc, (uint32_t)transfer… in I2S_AddTransferDMA()
Dfsl_i2s_dma.h52 uint8_t bytesPerFrame; /*!< bytes per frame */ member
Dfsl_spi_dma.h43 uint8_t bytesPerFrame; /*!< Bytes in a frame for SPI transfer */ member

12