Searched refs:slot_cfg (Results 1 – 3 of 3) sorted by relevance
/hal_espressif-latest/components/hal/ |
D | i2s_hal.c | 109 …s_hal_std_set_tx_slot(i2s_hal_context_t *hal, bool is_slave, const i2s_hal_slot_config_t *slot_cfg) in i2s_hal_std_set_tx_slot() argument 111 uint32_t slot_bit_width = (int)slot_cfg->slot_bit_width < (int)slot_cfg->data_bit_width ? in i2s_hal_std_set_tx_slot() 112 slot_cfg->data_bit_width : slot_cfg->slot_bit_width; in i2s_hal_std_set_tx_slot() 115 i2s_ll_tx_set_sample_bit(hal->dev, slot_bit_width, slot_cfg->data_bit_width); in i2s_hal_std_set_tx_slot() 116 i2s_ll_tx_enable_msb_shift(hal->dev, slot_cfg->std.bit_shift); in i2s_hal_std_set_tx_slot() 117 i2s_ll_tx_set_ws_width(hal->dev, slot_cfg->std.ws_width); in i2s_hal_std_set_tx_slot() 119 i2s_ll_tx_enable_mono_mode(hal->dev, slot_cfg->slot_mode == I2S_SLOT_MODE_MONO); in i2s_hal_std_set_tx_slot() 120 …i2s_ll_tx_select_std_slot(hal->dev, slot_cfg->std.slot_mask, slot_cfg->slot_mode == I2S_SLOT_MODE_… in i2s_hal_std_set_tx_slot() 122 i2s_ll_tx_enable_msb_right(hal->dev, slot_cfg->std.msb_right); in i2s_hal_std_set_tx_slot() 123 i2s_ll_tx_enable_right_first(hal->dev, slot_cfg->std.ws_pol); in i2s_hal_std_set_tx_slot() [all …]
|
/hal_espressif-latest/components/driver/deprecated/ |
D | i2s_legacy.c | 131 i2s_hal_slot_config_t slot_cfg; member 480 i2s_hal_slot_config_t *slot_cfg = &p_i2s[i2s_num]->slot_cfg; in i2s_get_buf_size() local 482 uint32_t bytes_per_sample = ((slot_cfg->data_bit_width + 15) / 16) * 2; in i2s_get_buf_size() 673 i2s_hal_slot_config_t *slot_cfg = &p_i2s[i2s_num]->slot_cfg; in i2s_calculate_adc_dac_clock() local 674 uint32_t slot_bits = slot_cfg->slot_bit_width; in i2s_calculate_adc_dac_clock() 755 i2s_hal_slot_config_t *slot_cfg = &p_i2s[i2s_num]->slot_cfg; in i2s_calculate_common_clock() local 758 uint32_t slot_bits = slot_cfg->slot_bit_width; in i2s_calculate_common_clock() 823 i2s_hal_slot_config_t *slot_cfg = &p_i2s[0]->slot_cfg; in i2s_dac_set_slot_legacy() local 827 i2s_ll_tx_set_sample_bit(dev, slot_cfg->slot_bit_width, slot_cfg->data_bit_width); in i2s_dac_set_slot_legacy() 828 i2s_ll_tx_enable_mono_mode(dev, slot_cfg->slot_mode == I2S_SLOT_MODE_MONO); in i2s_dac_set_slot_legacy() [all …]
|
/hal_espressif-latest/components/hal/include/hal/ |
D | i2s_hal.h | 161 …_hal_std_set_tx_slot(i2s_hal_context_t *hal, bool is_slave, const i2s_hal_slot_config_t *slot_cfg); 170 …_hal_std_set_rx_slot(i2s_hal_context_t *hal, bool is_slave, const i2s_hal_slot_config_t *slot_cfg); 199 …_hal_pdm_set_tx_slot(i2s_hal_context_t *hal, bool is_slave, const i2s_hal_slot_config_t *slot_cfg); 217 …_hal_pdm_set_rx_slot(i2s_hal_context_t *hal, bool is_slave, const i2s_hal_slot_config_t *slot_cfg); 239 …_hal_tdm_set_tx_slot(i2s_hal_context_t *hal, bool is_slave, const i2s_hal_slot_config_t *slot_cfg); 248 …_hal_tdm_set_rx_slot(i2s_hal_context_t *hal, bool is_slave, const i2s_hal_slot_config_t *slot_cfg);
|