[−][src]Function esp_idf_sys::i2s_set_clk
pub unsafe extern "C" fn i2s_set_clk(
i2s_num: i2s_port_t,
rate: u32,
bits: i2s_bits_per_sample_t,
ch: i2s_channel_t
) -> esp_err_t
@brief Set clock & bit width used for I2S RX and TX.
Similar to i2s_set_sample_rates(), but also sets bit width.
@param i2s_num I2S_NUM_0, I2S_NUM_1
@param rate I2S sample rate (ex: 8000, 44100...)
@param bits I2S bit width (I2S_BITS_PER_SAMPLE_16BIT, I2S_BITS_PER_SAMPLE_24BIT, I2S_BITS_PER_SAMPLE_32BIT)
@param ch I2S channel, (I2S_CHANNEL_MONO, I2S_CHANNEL_STEREO)
@return - ESP_OK Success - ESP_ERR_INVALID_ARG Parameter error - ESP_ERR_NO_MEM Out of memory