Home
last modified time | relevance | path

Searched refs:word_size (Results 1 – 25 of 37) sorted by relevance

12

/Zephyr-latest/drivers/spi/
Dspi_mcux_ecspi.c36 uint16_t word_size; member
149 uint16_t word_size; in spi_mcux_configure() local
176 word_size = SPI_WORD_SIZE_GET(spi_cfg->operation); in spi_mcux_configure()
177 if (0 == word_size || word_size > 32) { in spi_mcux_configure()
178 LOG_ERR("Invalid word size (0 < %d <= 32)", word_size); in spi_mcux_configure()
194 master_config.burstLength = word_size; in spi_mcux_configure()
214 data->word_size = word_size; in spi_mcux_configure()
215 data->dfs = bytes_per_word(word_size); in spi_mcux_configure()
Dspi_mcux_flexcomm.c178 uint32_t word_size; in spi_mcux_configure() local
190 word_size = SPI_WORD_SIZE_GET(spi_cfg->operation); in spi_mcux_configure()
191 if (word_size > SPI_MAX_DATA_WIDTH) { in spi_mcux_configure()
193 word_size, SPI_MAX_DATA_WIDTH); in spi_mcux_configure()
225 master_config.dataWidth = word_size - 1; in spi_mcux_configure()
285 slave_config.dataWidth = word_size - 1; in spi_mcux_configure()
338 uint32_t word_size; in spi_mcux_prepare_txlastword() local
340 word_size = SPI_WORD_SIZE_GET(spi_cfg->operation); in spi_mcux_prepare_txlastword()
342 if (word_size > 8) { in spi_mcux_prepare_txlastword()
359 *txLastWord |= SPI_FIFOWR_LEN(word_size - 1); in spi_mcux_prepare_txlastword()
[all …]
Dspi_mcux_flexio.c227 uint32_t word_size; in spi_mcux_flexio_configure() local
246 word_size = SPI_WORD_SIZE_GET(spi_cfg->operation); in spi_mcux_flexio_configure()
247 if ((word_size != 8) && (word_size != 16) && (word_size != 32)) { in spi_mcux_flexio_configure()
248 LOG_ERR("Word size %d must be 8, 16 or 32", word_size); in spi_mcux_flexio_configure()
251 master_config.dataMode = word_size; in spi_mcux_flexio_configure()
254 if (word_size == 8) { in spi_mcux_flexio_configure()
256 } else if (word_size == 16) { in spi_mcux_flexio_configure()
262 if (word_size == 8) { in spi_mcux_flexio_configure()
264 } else if (word_size == 16) { in spi_mcux_flexio_configure()
Dspi_numaker.c146 uint8_t word_size, spi_dfs; in spi_numaker_txrx() local
150 word_size = SPI_WORD_SIZE_GET(ctx->config->operation); in spi_numaker_txrx()
152 switch (word_size) { in spi_numaker_txrx()
167 LOG_ERR("Not support SPI WORD size as [%d] bits", word_size); in spi_numaker_txrx()
171 LOG_DBG("%s -->word_size [%d]", __func__, word_size); in spi_numaker_txrx()
Dspi_rv32m1_lpspi.c142 uint32_t word_size; in spi_mcux_configure() local
163 word_size = SPI_WORD_SIZE_GET(spi_cfg->operation); in spi_mcux_configure()
164 if (word_size > MAX_DATA_WIDTH) { in spi_mcux_configure()
166 word_size, MAX_DATA_WIDTH); in spi_mcux_configure()
170 master_config.bitsPerFrame = word_size; in spi_mcux_configure()
Dspi_psoc6.c213 uint32_t word_size; in spi_psoc6_configure() local
225 word_size = SPI_WORD_SIZE_GET(spi_cfg->operation); in spi_psoc6_configure()
226 if (word_size > SPI_MAX_DATA_WIDTH) { in spi_psoc6_configure()
228 word_size, SPI_MAX_DATA_WIDTH); in spi_psoc6_configure()
241 data->cfg.rxDataWidth = data->cfg.txDataWidth = word_size; in spi_psoc6_configure()
Dspi_sedi.c42 uint32_t word_size, cpol, cpha, loopback; in spi_sedi_configure() local
48 word_size = SPI_WORD_SIZE_GET(config->operation); in spi_sedi_configure()
50 word_size); in spi_sedi_configure()
Dspi_xlnx_axi_quadspi.c149 uint32_t word_size; in xlnx_quadspi_configure() local
183 word_size = SPI_WORD_SIZE_GET(spi_cfg->operation); in xlnx_quadspi_configure()
184 if (word_size != (config->num_xfer_bytes * 8)) { in xlnx_quadspi_configure()
186 word_size, config->num_xfer_bytes); in xlnx_quadspi_configure()
Dspi_mcux_dspi.c573 uint32_t word_size; in spi_mcux_configure() local
607 word_size = SPI_WORD_SIZE_GET(spi_cfg->operation); in spi_mcux_configure()
608 if (word_size > FSL_FEATURE_DSPI_MAX_DATA_WIDTH) { in spi_mcux_configure()
610 word_size, FSL_FEATURE_DSPI_MAX_DATA_WIDTH); in spi_mcux_configure()
614 ctar_config->bitsPerFrame = word_size; in spi_mcux_configure()
656 data->frame_size = word_size; in spi_mcux_configure()
Dspi_mcux_lpspi.c150 uint32_t word_size = SPI_WORD_SIZE_GET(spi_cfg->operation); in spi_mcux_configure() local
161 if (word_size < 8 || (word_size % 32 == 1)) { in spi_mcux_configure()
169 LOG_ERR("Word size %d not allowed", word_size); in spi_mcux_configure()
202 master_config.bitsPerFrame = word_size; in spi_mcux_configure()
/Zephyr-latest/tests/drivers/i2s/i2s_api/src/
Dtest_i2s_errors.c17 struct i2s_config invalid_config = { .word_size = 16U, in ZTEST_USER()
55 struct i2s_config inactive_config = { .word_size = 16U, in ZTEST_USER()
88 struct i2s_config test_config = { .word_size = 16U, in ZTEST_USER()
112 struct i2s_config inactive_config = { .word_size = 16U, in ZTEST_USER()
136 struct i2s_config test_config = { .word_size = 16U, in ZTEST_USER()
Dcommon.c161 i2s_cfg.word_size = 16U; in configure_stream()
/Zephyr-latest/drivers/audio/
Dwm8904.c75 uint16_t word_size = cfg->i2s.word_size; in wm8904_audio_fmt_config() local
156 switch (cfg->i2s.word_size) { in wm8904_audio_fmt_config()
158 word_size = 0; in wm8904_audio_fmt_config()
161 word_size = 1; in wm8904_audio_fmt_config()
164 word_size = 2; in wm8904_audio_fmt_config()
167 word_size = 3; in wm8904_audio_fmt_config()
171 cfg->i2s.word_size); in wm8904_audio_fmt_config()
172 word_size = 0; in wm8904_audio_fmt_config()
176 wm8904_update_reg(dev, WM8904_REG_AUDIO_IF_1, (0x000CU), ((uint16_t)(word_size) << 2U)); in wm8904_audio_fmt_config()
313 uint32_t bitWidth = cfg->i2s.word_size; in wm8904_set_master_clock()
Dtlv320dac310x.c234 switch (cfg->i2s.word_size) { in codec_configure_dai()
249 cfg->i2s.word_size); in codec_configure_dai()
321 bclk_div = osr * mdac / (i2s->word_size * 2U); /* stereo */ in codec_configure_clocks()
322 if ((bclk_div * i2s->word_size * 2) != (osr * mdac)) { in codec_configure_clocks()
324 i2s->frame_clk_freq * i2s->word_size * 2U, in codec_configure_clocks()
Dmpxxdtyy-i2s.c127 i2s_cfg.word_size = chan_size; in mpxxdtyy_i2s_configure()
/Zephyr-latest/drivers/i2s/
Di2s_litex.c369 (cfg->fifo_depth * (i2s_cfg->word_size / 8)) / channel_div; in i2s_litex_configure()
387 if (i2s_cfg->word_size != 8U && i2s_cfg->word_size != 16U && in i2s_litex_configure()
388 i2s_cfg->word_size != 24U && i2s_cfg->word_size != 32U && in i2s_litex_configure()
389 i2s_cfg->word_size != dev_sample_width) { in i2s_litex_configure()
415 if (i2s_cfg->word_size != 16) { in i2s_litex_configure()
554 stream->cfg.word_size, stream->cfg.channels); in i2s_litex_isr_rx()
588 stream->cfg.word_size, stream->cfg.channels); in i2s_litex_isr_tx()
Di2s_esp32.c93 if (i2s_cfg->word_size == 24) { in i2s_esp32_calculate_clock()
552 if (i2s_cfg->word_size != 8 && i2s_cfg->word_size != 16 && i2s_cfg->word_size != 24 && in i2s_esp32_configure()
553 i2s_cfg->word_size != 32) { in i2s_esp32_configure()
554 LOG_ERR("Word size not supported: %d", (int)i2s_cfg->word_size); in i2s_esp32_configure()
587 slot_cfg.data_bit_width = i2s_cfg->word_size; in i2s_esp32_configure()
589 slot_cfg.slot_bit_width = i2s_cfg->word_size > 16 ? 32 : 16; in i2s_esp32_configure()
Di2s_mcux_flexcomm.c78 fsl_cfg->dataLength = i2s_cfg->word_size; in i2s_mcux_flexcomm_cfg_convert()
82 fsl_cfg->frameLength = 2 * i2s_cfg->word_size; in i2s_mcux_flexcomm_cfg_convert()
84 fsl_cfg->frameLength = i2s_cfg->channels * i2s_cfg->word_size; in i2s_mcux_flexcomm_cfg_convert()
228 if (i2s_cfg->word_size <= 8) { in i2s_mcux_configure()
275 i2s_cfg->word_size * 2 * slot); in i2s_mcux_configure()
Di2s_ll_stm32.c188 const uint32_t channel_length = i2s_cfg->word_size > 16U ? 32U : 16U; in i2s_stm32_configure()
268 if (i2s_cfg->word_size == 16U) { in i2s_stm32_configure()
270 } else if (i2s_cfg->word_size == 24U) { in i2s_stm32_configure()
272 } else if (i2s_cfg->word_size == 32U) { in i2s_stm32_configure()
/Zephyr-latest/samples/boards/enjoydigital/litex/i2s/src/
Dmain.c46 i2s_rx_cfg.word_size = AUDIO_SAMPLE_BIT_WIDTH; in init()
71 i2s_tx_cfg.word_size = AUDIO_SAMPLE_BIT_WIDTH; in init()
/Zephyr-latest/samples/drivers/i2s/i2s_codec/src/
Dmain.c115 audio_cfg.dai_cfg.i2s.word_size = SAMPLE_BIT_WIDTH; in main()
143 config.word_size = SAMPLE_BIT_WIDTH; in main()
/Zephyr-latest/samples/drivers/i2s/output/src/
Dmain.c72 i2s_cfg.word_size = 16U; in main()
/Zephyr-latest/drivers/dai/intel/hda/
Dhda.c62 params->word_size = DAI_INTEL_HDA_DEFAULT_WORD_SIZE; in dai_hda_config_get()
/Zephyr-latest/include/zephyr/drivers/
Di2s.h297 uint8_t word_size; member
/Zephyr-latest/samples/subsys/usb/uac2_explicit_feedback/src/
Dmain.c270 config.word_size = SAMPLE_BIT_WIDTH; in main()

12