Lines Matching full:mode
102 /* enable pdm tx mode */ in i2s_hal_tx_set_pdm_mode_default()
145 /* enable pdm rx mode */ in i2s_hal_rx_set_pdm_mode_default()
167 /* Disable PDM tx mode and enable TDM mode (if support) */ in i2s_hal_tx_set_common_mode()
175 // In TDM mode(more than 2 channels), the ws polarity should be high first. in i2s_hal_tx_set_common_mode()
192 /* Disable PDM rx mode and enable TDM rx mode (if support)*/ in i2s_hal_rx_set_common_mode()
200 // In TDM mode(more than 2 channels), the ws polarity should be high first. in i2s_hal_rx_set_common_mode()
284 if (hal_cfg->mode & I2S_MODE_ADC_BUILT_IN) { in i2s_hal_config_param()
285 … /* In ADC built-in mode, we need to call i2s_set_adc_mode to initialize the specific ADC channel. in i2s_hal_config_param()
286 * In the current stage, we only support ADC1 and single channel mode. in i2s_hal_config_param()
287 * In default data mode, the ADC data is in 12-bit resolution mode. in i2s_hal_config_param()
295 if (hal_cfg->mode & I2S_MODE_DAC_BUILT_IN) { in i2s_hal_config_param()
301 /* Set configurations for TX mode */ in i2s_hal_config_param()
302 if (hal_cfg->mode & I2S_MODE_TX) { in i2s_hal_config_param()
305 i2s_ll_tx_set_slave_mod(hal->dev, (hal_cfg->mode & I2S_MODE_SLAVE) != 0); //TX Slave in i2s_hal_config_param()
307 if (hal_cfg->mode & I2S_MODE_PDM) { in i2s_hal_config_param()
308 /* Set tx pdm mode */ in i2s_hal_config_param()
313 /* Set tx common mode */ in i2s_hal_config_param()
319 /* Set configurations for RX mode */ in i2s_hal_config_param()
320 if (hal_cfg->mode & I2S_MODE_RX) { in i2s_hal_config_param()
323 i2s_ll_rx_set_slave_mod(hal->dev, (hal_cfg->mode & I2S_MODE_SLAVE) != 0); //RX Slave in i2s_hal_config_param()
325 if (hal_cfg->mode & I2S_MODE_PDM) { in i2s_hal_config_param()
326 /* Set rx pdm mode */ in i2s_hal_config_param()
331 /* Set rx common mode */ in i2s_hal_config_param()
337 /* Set configurations for full-duplex mode */ in i2s_hal_config_param()
338 if ((hal_cfg->mode & I2S_MODE_RX) && (hal_cfg->mode & I2S_MODE_TX)) { in i2s_hal_config_param()
340 if (hal_cfg->mode & I2S_MODE_MASTER) { in i2s_hal_config_param()