Function esp_idf_svc::hal::sys::i2s_channel_enable

source ยท
pub unsafe extern "C" fn i2s_channel_enable(
    handle: *mut i2s_channel_obj_t,
) -> i32
Expand description

@brief Enable the I2S channel @note Only allowed to be called when the channel state is READY, (i.e., channel has been initialized, but not started) the channel will enter RUNNING state once it is enabled successfully. @note Enable the channel can start the I2S communication on hardware. It will start outputting BCLK and WS signal. For MCLK signal, it will start to output when initialization is finished

@param[in] handle I2S channel handler - ESP_OK Start successfully - ESP_ERR_INVALID_ARG NULL pointer - ESP_ERR_INVALID_STATE This channel has not initialized or already started