Home
last modified time | relevance | path

Searched refs:dataWidth (Results 1 – 13 of 13) sorted by relevance

/hal_nxp-3.7.0/mcux/mcux-sdk/drivers/flexcomm/spi/
Dfsl_spi.c31 #define SPI_COUNT_TO_BYTES(dataWidth, count) ((count) << ((dataWidth) >> 3U)) argument
32 #define SPI_BYTES_TO_COUNT(dataWidth, bytes) ((bytes) >> ((dataWidth) >> 3U)) argument
144 config->dataWidth = kSPI_Data8Bits; in SPI_MasterGetDefaultConfig()
222 g_configs[instance].dataWidth = config->dataWidth; in SPI_MasterInit()
268 config->dataWidth = kSPI_Data8Bits; in SPI_SlaveGetDefaultConfig()
330 g_configs[instance].dataWidth = config->dataWidth; in SPI_SlaveInit()
450 control |= (uint32_t)SPI_FIFOWR_LEN((g_configs[instance].dataWidth)); in SPI_WriteData()
500 handle->dataWidth = (uint8_t)(g_configs[instance].dataWidth); in SPI_MasterTransferCreateHandle()
527 uint32_t tmp32, rxRemainingBytes, txRemainingBytes, dataWidth; in SPI_MasterTransferBlocking() local
550 dataWidth = (uint32_t)(g_configs[instance].dataWidth); in SPI_MasterTransferBlocking()
[all …]
Dfsl_spi_dma.c108 *fifowr |= SPI_FIFOWR_LEN(config->dataWidth); in SpiConfigToFifoWR()
113 if (config->dataWidth > kSPI_Data8Bits) in PrepareTxLastWord()
230 … (uint8_t)((spi_config_p->dataWidth > kSPI_Data8Bits) ? (sizeof(uint16_t)) : (sizeof(uint8_t))); in SPI_MasterTransferDMA()
316 … ((spi_config_p->dataWidth > kSPI_Data8Bits) ? (sizeof(uint16_t)) : (sizeof(uint8_t))), in SPI_MasterTransferDMA()
338 … ((spi_config_p->dataWidth > kSPI_Data8Bits) ? (xfer->dataSize > 2U) : (xfer->dataSize > 1U))) in SPI_MasterTransferDMA()
372 … ((spi_config_p->dataWidth > kSPI_Data8Bits) ? (xfer->dataSize > 2U) : (xfer->dataSize > 1U))) in SPI_MasterTransferDMA()
391 … ((spi_config_p->dataWidth > kSPI_Data8Bits) ? (sizeof(uint16_t)) : (sizeof(uint8_t))), in SPI_MasterTransferDMA()
392 … ((spi_config_p->dataWidth > kSPI_Data8Bits) ? (xfer->dataSize - 2U) : (xfer->dataSize - 1U)), in SPI_MasterTransferDMA()
407 … ((spi_config_p->dataWidth > kSPI_Data8Bits) ? (sizeof(uint16_t)) : (sizeof(uint8_t))), in SPI_MasterTransferDMA()
429 … ((spi_config_p->dataWidth > kSPI_Data8Bits) ? (xfer->dataSize == 2U) : (xfer->dataSize == 1U))) in SPI_MasterTransferDMA()
Dfsl_spi.h191 spi_data_width_t dataWidth; /*!< Width of the data */ member
206 spi_data_width_t dataWidth; /*!< Width of the data */ member
264 spi_data_width_t dataWidth; member
294 uint8_t dataWidth; /*!< Width of the data [Valid values: 1 to 16] */ member
/hal_nxp-3.7.0/mcux/mcux-sdk/drivers/lpc_minispi/
Dfsl_spi.c80 if (handle->dataWidth > (uint8_t)kSPI_Data8Bits) in SPI_SendTransfer()
90 if (handle->dataWidth > (uint8_t)kSPI_Data8Bits) in SPI_SendTransfer()
127 if (handle->dataWidth > (uint8_t)kSPI_Data8Bits) in SPI_ReceiveTransfer()
217 config->dataWidth = (uint8_t)kSPI_Data8Bits; in SPI_MasterGetDefaultConfig()
285 …base->TXCTL |= (SPI_TXCTL_LEN(config->dataWidth) | ((uint32_t)config->sselNumber & (uint32_t)kSPI_… in SPI_MasterInit()
317 config->dataWidth = (uint8_t)kSPI_Data8Bits; in SPI_SlaveGetDefaultConfig()
370 base->TXCTL |= SPI_TXCTL_LEN(config->dataWidth); in SPI_SlaveInit()
457 uint32_t tmp32, remainingBytes, dataWidth; in SPI_MasterTransferBlocking() local
468 dataWidth = ((tx_ctrl & SPI_TXCTL_LEN_MASK) >> SPI_TXCTL_LEN_SHIFT); in SPI_MasterTransferBlocking()
487 if (((remainingBytes == 1U) && (dataWidth < (uint32_t)kSPI_Data9Bits)) || in SPI_MasterTransferBlocking()
[all …]
Dfsl_spi.h172 uint8_t dataWidth; /*!< Width of the data */ member
185 uint8_t dataWidth; /*!< Width of the data */ member
260 uint8_t dataWidth; /*!< Width of the data [Valid values: 1 to 16] */ member
/hal_nxp-3.7.0/mcux/mcux-sdk/drivers/dmic/
Dfsl_dmic_dma.c156 currentTransfer->dataWidth, (uint8_t)interleaveWidth, in DMIC_TransferReceiveDMA()
190 …if ((xfer->dataWidth != (uint8_t)kDMA_Transfer16BitWidth) && (xfer->dataWidth != (uint8_t)kDMA_Tra… in DMIC_TransferReceiveDMA()
192 xfer->dataWidth = kDMA_Transfer16BitWidth; /* use 16bit width as default value */ in DMIC_TransferReceiveDMA()
204 … DMA_CHANNEL_XFER(xfer->linkTransfer == NULL ? false : true, false, intA, !intA, xfer->dataWidth, in DMIC_TransferReceiveDMA()
Dfsl_dmic_dma.h38 uint8_t dataWidth; /*!< DMIC support 16bit/32bit */ member
/hal_nxp-3.7.0/mcux/mcux-sdk/drivers/easrc/
Dfsl_asrc.c751 ASRC_CTX_CTRL_BITS_PER_SAMPLE(config->dataFormat.dataWidth) | in ASRC_SetContextInputConfig()
787 if (config->dataFormat.dataWidth == kASRC_DataWidth16Bit) in ASRC_SetContextOutputConfig()
791 else if (config->dataFormat.dataWidth == kASRC_DataWidth20Bit) in ASRC_SetContextOutputConfig()
795 else if (config->dataFormat.dataWidth == kASRC_DataWidth24Bit) in ASRC_SetContextOutputConfig()
811 ASRC_CTX_OUT_CTRL_BITS_PER_SAMPLE(config->dataFormat.dataWidth) | in ASRC_SetContextOutputConfig()
851 config->contextInput.dataFormat.dataWidth = kASRC_DataWidth16Bit; in ASRC_GetContextDefaultConfig()
862 config->contextOutput.dataFormat.dataWidth = kASRC_DataWidth16Bit; in ASRC_GetContextDefaultConfig()
Dfsl_asrc_sdma.c286 if (asrcConfig->contextInput.dataFormat.dataWidth == kASRC_DataWidth16Bit) in ASRC_TransferSetContextConfigSDMA()
295 if (asrcConfig->contextOutput.dataFormat.dataWidth == kASRC_DataWidth16Bit) in ASRC_TransferSetContextConfigSDMA()
Dfsl_asrc.h178 asrc_data_width_t dataWidth; /*!< context input data width */ member
/hal_nxp-3.7.0/mcux/mcux-sdk/cmsis_drivers/flexcomm/
Dfsl_spi_cmsis.c283 masterConfig->dataWidth = in SPI_MasterCommonControl()
429 slaveConfig->dataWidth = in SPI_SlaveCommonControl()
580 xfer.dataSize = num * (((uint32_t)spi_config_p->dataWidth + 8UL) / 8UL); in SPI_DMASend()
623 xfer.dataSize = num * (((uint32_t)spi_config_p->dataWidth + 8UL) / 8UL); in SPI_DMAReceive()
666 xfer.dataSize = num * (((uint32_t)spi_config_p->dataWidth + 8UL) / 8UL); in SPI_DMATransfer()
715 cnt /= (((uint32_t)spi_config_p->dataWidth + 8U) / 8U); in SPI_DMAGetCount()
1054 xfer.dataSize = num * (((uint32_t)spi->handle->masterHandle.dataWidth + 8UL) / 8UL); in SPI_InterruptSend()
1059 xfer.dataSize = num * (((uint32_t)spi->handle->slaveHandle.dataWidth + 8UL) / 8UL); in SPI_InterruptSend()
1097 xfer.dataSize = num * (((uint32_t)spi->handle->masterHandle.dataWidth + 8UL) / 8UL); in SPI_InterruptReceive()
1102 xfer.dataSize = num * (((uint32_t)spi->handle->slaveHandle.dataWidth + 8UL) / 8UL); in SPI_InterruptReceive()
[all …]
/hal_nxp-3.7.0/mcux/mcux-sdk/drivers/pdm/
Dfsl_pdm.c96 … *base, uint32_t startChannel, uint32_t channelNums, void *buffer, size_t size, uint32_t dataWidth) in PDM_ReadFifo() argument
106 *dataAddr = base->DATACH[startChannel + j] >> (dataWidth == 4U ? 0U : 8U); in PDM_ReadFifo()
107 dataAddr = (uint32_t *)((uint32_t)dataAddr + dataWidth); in PDM_ReadFifo()
Dfsl_pdm.h811 …*base, uint32_t startChannel, uint32_t channelNums, void *buffer, size_t size, uint32_t dataWidth);