Home
last modified time | relevance | path

Searched refs:word_size_bits (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/drivers/i2s/
Di2s_sam_ssc.c331 uint8_t word_size_bits = i2s_cfg->word_size; in set_rx_data_format() local
342 fslen = word_size_bits - 1; in set_rx_data_format()
361 fslen = num_words * word_size_bits / 2U - 1; in set_rx_data_format()
371 fslen = num_words * word_size_bits / 2U - 1; in set_rx_data_format()
400 | SSC_RCMR_PERIOD((num_words * word_size_bits + 1) / 2U - 1); in set_rx_data_format()
405 ssc_rfmr |= SSC_RFMR_DATLEN(word_size_bits - 1) in set_rx_data_format()
422 uint8_t word_size_bits = i2s_cfg->word_size; in set_tx_data_format() local
432 fslen = word_size_bits - 1; in set_tx_data_format()
449 fslen = num_words * word_size_bits / 2U - 1; in set_tx_data_format()
459 fslen = num_words * word_size_bits / 2U - 1; in set_tx_data_format()
[all …]
Di2s_mcux_sai.c446 uint8_t word_size_bits = i2s_cfg->word_size; in i2s_mcux_config() local
471 if (word_size_bits < SAI_WORD_SIZE_BITS_MIN || word_size_bits > SAI_WORD_SIZE_BITS_MAX) { in i2s_mcux_config()
472 LOG_ERR("Unsupported I2S word size %u", word_size_bits); in i2s_mcux_config()
533 SAI_GetClassicI2SConfig(&config, word_size_bits, kSAI_Stereo, dev_cfg->tx_channel); in i2s_mcux_config()
536 SAI_GetLeftJustifiedConfig(&config, word_size_bits, kSAI_Stereo, in i2s_mcux_config()
540 SAI_GetDSPConfig(&config, kSAI_FrameSyncLenOneBitClk, word_size_bits, kSAI_Stereo, in i2s_mcux_config()
550 SAI_GetTDMConfig(&config, kSAI_FrameSyncLenPerWordWidth, word_size_bits, num_words, in i2s_mcux_config()
632 config.frameSync.frameSyncWidth = (uint8_t)word_size_bits; in i2s_mcux_config()
647 SAI_TxSetBitClockRate(base, mclk, i2s_cfg->frame_clk_freq, word_size_bits, in i2s_mcux_config()
651 dev_data->tx.dma_cfg.source_data_size = word_size_bits / 8; in i2s_mcux_config()
[all …]