Function esp_idf_svc::hal::sys::i2s_channel_reconfig_pdm_tx_clock

source ·
pub unsafe extern "C" fn i2s_channel_reconfig_pdm_tx_clock(
    handle: *mut i2s_channel_obj_t,
    clk_cfg: *const i2s_pdm_tx_clk_config_t,
) -> i32
Expand description

@brief Reconfigure the I2S clock for PDM TX mode @note Only allowed to be called when the channel state is READY, i.e., channel has been initialized, but not started this function won’t change the state. i2s_channel_disable should be called before calling this function if I2S has started. @note The input channel handle has to be initialized to PDM TX mode, i.e., i2s_channel_init_pdm_tx_mode has been called before reconfiguring

@param[in] handle I2S TX channel handler @param[in] clk_cfg PDM TX mode clock configuration, can be generated by I2S_PDM_TX_CLK_DEFAULT_CONFIG @return - ESP_OK Set clock successfully - ESP_ERR_INVALID_ARG NULL pointer, invalid configuration or not PDM mode - ESP_ERR_INVALID_STATE This channel is not initialized or not stopped