Home
last modified time | relevance | path

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

/hal_nxp-2.7.6/mcux/drivers/imxrt6xx/
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
140 config->dataWidth = kSPI_Data8Bits; in SPI_MasterGetDefaultConfig()
218 g_configs[instance].dataWidth = config->dataWidth; in SPI_MasterInit()
264 config->dataWidth = kSPI_Data8Bits; in SPI_SlaveGetDefaultConfig()
326 g_configs[instance].dataWidth = config->dataWidth; in SPI_SlaveInit()
446 control |= (uint32_t)SPI_FIFOWR_LEN((g_configs[instance].dataWidth)); in SPI_WriteData()
496 handle->dataWidth = (uint8_t)(g_configs[instance].dataWidth); in SPI_MasterTransferCreateHandle()
523 uint32_t tmp32, rxRemainingBytes, txRemainingBytes, dataWidth; in SPI_MasterTransferBlocking() local
545 dataWidth = (uint32_t)(g_configs[instance].dataWidth); in SPI_MasterTransferBlocking()
[all …]
Dfsl_spi_dma.c113 *fifowr |= SPI_FIFOWR_LEN(config->dataWidth); in SpiConfigToFifoWR()
118 if (config->dataWidth > kSPI_Data8Bits) in PrepareTxLastWord()
263 … ((spi_config_p->dataWidth > kSPI_Data8Bits) ? (sizeof(uint16_t)) : (sizeof(uint8_t))), in SPI_MasterTransferDMA()
269 … ((spi_config_p->dataWidth > kSPI_Data8Bits) ? (sizeof(uint16_t)) : (sizeof(uint8_t))), in SPI_MasterTransferDMA()
289 … ((spi_config_p->dataWidth > kSPI_Data8Bits) ? (xfer->dataSize > 2U) : (xfer->dataSize > 1U))) in SPI_MasterTransferDMA()
308 … ((spi_config_p->dataWidth > kSPI_Data8Bits) ? (sizeof(uint16_t)) : (sizeof(uint8_t))), in SPI_MasterTransferDMA()
309 … ((spi_config_p->dataWidth > kSPI_Data8Bits) ? (xfer->dataSize - 2U) : (xfer->dataSize - 1U)), in SPI_MasterTransferDMA()
324 … ((spi_config_p->dataWidth > kSPI_Data8Bits) ? (sizeof(uint16_t)) : (sizeof(uint8_t))), in SPI_MasterTransferDMA()
334 … ((spi_config_p->dataWidth > kSPI_Data8Bits) ? (xfer->dataSize > 2U) : (xfer->dataSize > 1U))) in SPI_MasterTransferDMA()
353 … ((spi_config_p->dataWidth > kSPI_Data8Bits) ? (sizeof(uint16_t)) : (sizeof(uint8_t))), in SPI_MasterTransferDMA()
[all …]
Dfsl_dmic_dma.c150 currentTransfer->dataWidth, interleaveWidth, in DMIC_TransferReceiveDMA()
184 …if ((xfer->dataWidth != (uint8_t)kDMA_Transfer16BitWidth) && (xfer->dataWidth != (uint8_t)kDMA_Tra… in DMIC_TransferReceiveDMA()
186 xfer->dataWidth = kDMA_Transfer16BitWidth; /* use 16bit width as default value */ in DMIC_TransferReceiveDMA()
198 …DMA_CHANNEL_XFER(xfer->linkTransfer == NULL ? 0UL : 1UL, 0UL, intA, !intA, xfer->dataWidth, interl… in DMIC_TransferReceiveDMA()
Dfsl_spi.h179 spi_data_width_t dataWidth; /*!< Width of the data */ member
194 spi_data_width_t dataWidth; /*!< Width of the data */ member
252 spi_data_width_t dataWidth; member
282 uint8_t dataWidth; /*!< Width of the data [Valid values: 1 to 16] */ member
Dfsl_dmic_dma.h38 uint8_t dataWidth; /*!< DMIC support 16bit/32bit */ member
/hal_nxp-2.7.6/mcux/drivers/lpc/
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
140 config->dataWidth = kSPI_Data8Bits; in SPI_MasterGetDefaultConfig()
218 g_configs[instance].dataWidth = config->dataWidth; in SPI_MasterInit()
264 config->dataWidth = kSPI_Data8Bits; in SPI_SlaveGetDefaultConfig()
326 g_configs[instance].dataWidth = config->dataWidth; in SPI_SlaveInit()
446 control |= (uint32_t)SPI_FIFOWR_LEN((g_configs[instance].dataWidth)); in SPI_WriteData()
496 handle->dataWidth = (uint8_t)(g_configs[instance].dataWidth); in SPI_MasterTransferCreateHandle()
523 uint32_t tmp32, rxRemainingBytes, txRemainingBytes, dataWidth; in SPI_MasterTransferBlocking() local
545 dataWidth = (uint32_t)(g_configs[instance].dataWidth); in SPI_MasterTransferBlocking()
[all …]
Dfsl_spi_dma.c113 *fifowr |= SPI_FIFOWR_LEN(config->dataWidth); in SpiConfigToFifoWR()
118 if (config->dataWidth > kSPI_Data8Bits) in PrepareTxLastWord()
263 … ((spi_config_p->dataWidth > kSPI_Data8Bits) ? (sizeof(uint16_t)) : (sizeof(uint8_t))), in SPI_MasterTransferDMA()
269 … ((spi_config_p->dataWidth > kSPI_Data8Bits) ? (sizeof(uint16_t)) : (sizeof(uint8_t))), in SPI_MasterTransferDMA()
289 … ((spi_config_p->dataWidth > kSPI_Data8Bits) ? (xfer->dataSize > 2U) : (xfer->dataSize > 1U))) in SPI_MasterTransferDMA()
308 … ((spi_config_p->dataWidth > kSPI_Data8Bits) ? (sizeof(uint16_t)) : (sizeof(uint8_t))), in SPI_MasterTransferDMA()
309 … ((spi_config_p->dataWidth > kSPI_Data8Bits) ? (xfer->dataSize - 2U) : (xfer->dataSize - 1U)), in SPI_MasterTransferDMA()
324 … ((spi_config_p->dataWidth > kSPI_Data8Bits) ? (sizeof(uint16_t)) : (sizeof(uint8_t))), in SPI_MasterTransferDMA()
334 … ((spi_config_p->dataWidth > kSPI_Data8Bits) ? (xfer->dataSize > 2U) : (xfer->dataSize > 1U))) in SPI_MasterTransferDMA()
353 … ((spi_config_p->dataWidth > kSPI_Data8Bits) ? (sizeof(uint16_t)) : (sizeof(uint8_t))), in SPI_MasterTransferDMA()
[all …]
Dfsl_dmic_dma.c150 currentTransfer->dataWidth, interleaveWidth, in DMIC_TransferReceiveDMA()
184 …if ((xfer->dataWidth != (uint8_t)kDMA_Transfer16BitWidth) && (xfer->dataWidth != (uint8_t)kDMA_Tra… in DMIC_TransferReceiveDMA()
186 xfer->dataWidth = kDMA_Transfer16BitWidth; /* use 16bit width as default value */ in DMIC_TransferReceiveDMA()
198 …DMA_CHANNEL_XFER(xfer->linkTransfer == NULL ? 0UL : 1UL, 0UL, intA, !intA, xfer->dataWidth, interl… in DMIC_TransferReceiveDMA()
Dfsl_spi.h179 spi_data_width_t dataWidth; /*!< Width of the data */ member
194 spi_data_width_t dataWidth; /*!< Width of the data */ member
252 spi_data_width_t dataWidth; member
282 uint8_t dataWidth; /*!< Width of the data [Valid values: 1 to 16] */ member
Dfsl_dmic_dma.h38 uint8_t dataWidth; /*!< DMIC support 16bit/32bit */ member
/hal_nxp-2.7.6/mcux/drivers/imx8/
Dfsl_pdm.c97 … *base, uint32_t startChannel, uint32_t channelNums, void *buffer, size_t size, uint32_t dataWidth) in PDM_ReadFifo() argument
107 *dataAddr = base->DATACH[startChannel + j] >> (dataWidth == 4U ? 0U : 8U); in PDM_ReadFifo()
108 dataAddr = (uint32_t *)((uint32_t)dataAddr + dataWidth); in PDM_ReadFifo()
Dfsl_pdm.h761 …*base, uint32_t startChannel, uint32_t channelNums, void *buffer, size_t size, uint32_t dataWidth);
/hal_nxp-2.7.6/mcux/drivers/imx/
Dfsl_pdm.c90 … *base, uint32_t startChannel, uint32_t channelNums, void *buffer, size_t size, uint32_t dataWidth) in PDM_ReadFifo() argument
100 *dataAddr = base->DATACH[startChannel + j] >> (dataWidth == 4U ? 0U : 8U); in PDM_ReadFifo()
101 dataAddr = (uint32_t *)((uint32_t)dataAddr + dataWidth); in PDM_ReadFifo()
Dfsl_pdm.h767 …*base, uint32_t startChannel, uint32_t channelNums, void *buffer, size_t size, uint32_t dataWidth);