Function esp_idf_svc::hal::sys::i2s_pcm_config
source · pub unsafe extern "C" fn i2s_pcm_config(
i2s_num: u32,
pcm_cfg: *const i2s_pcm_cfg_t,
) -> i32
Expand description
@brief Configure I2S a/u-law decompress or compress
@note This function should be called after i2s driver installed Only take effecttive when the i2s ‘communication_format’ is set to ‘I2S_COMM_FORMAT_STAND_PCM_SHORT’ or ‘I2S_COMM_FORMAT_STAND_PCM_LONG’
@param i2s_num I2S port number
@param pcm_cfg including mode selection and a/u-law decompress or compress configuration paramater
@return - ESP_OK Success - ESP_ERR_INVALID_ARG Parameter error