/hal_nxp-2.7.6/mcux/drivers/imx/ |
D | fsl_lpspi.c | 737 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 …]
|
D | fsl_sai_edma.c | 250 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 …]
|
D | fsl_flexio_spi_edma.c | 131 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()
|
D | fsl_flexio_i2s_edma.c | 219 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()
|
D | fsl_lpspi_edma.c | 234 …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 …]
|
D | fsl_flexio_spi.c | 770 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()
|
D | fsl_flexio_i2s_edma.h | 41 uint8_t bytesPerFrame; /*!< Bytes in a frame */ member
|
/hal_nxp-2.7.6/mcux/drivers/kinetis/ |
D | fsl_sai_edma.c | 250 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 …]
|
D | fsl_spi.c | 155 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 …]
|
D | fsl_lpspi.c | 725 …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 …]
|
D | fsl_lpspi_edma.c | 198 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 …]
|
D | fsl_flexio_i2s_edma.c | 221 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()
|
D | fsl_flexio_spi_edma.c | 131 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()
|
D | fsl_flexio_spi.c | 770 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()
|
D | fsl_spi_dma.c | 169 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()
|
D | fsl_spi_dma.h | 58 uint8_t bytesPerFrame; /*!< Bytes in a frame for SPI tranfer */ member
|
D | fsl_flexio_i2s_edma.h | 41 uint8_t bytesPerFrame; /*!< Bytes in a frame */ member
|
/hal_nxp-2.7.6/mcux/drivers/imx8/ |
D | fsl_sai_sdma.c | 250 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 …]
|
D | fsl_sai_sdma.h | 37 uint8_t bytesPerFrame; /*!< Bytes in a frame */ member
|
/hal_nxp-2.7.6/mcux/drivers/imxrt6xx/ |
D | fsl_i2s_dma.c | 206 …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()
|
D | fsl_i2s_dma.h | 52 uint8_t bytesPerFrame; /*!< bytes per frame */ member
|
D | fsl_spi_dma.h | 43 uint8_t bytesPerFrame; /*!< Bytes in a frame for SPI transfer */ member
|
/hal_nxp-2.7.6/mcux/drivers/lpc/ |
D | fsl_i2s_dma.c | 206 …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()
|
D | fsl_i2s_dma.h | 52 uint8_t bytesPerFrame; /*!< bytes per frame */ member
|
D | fsl_spi_dma.h | 43 uint8_t bytesPerFrame; /*!< Bytes in a frame for SPI transfer */ member
|