Skip to main content

sdm_new_channel

Function sdm_new_channel 

Source
pub unsafe extern "C" fn sdm_new_channel(
    config: *const sdm_config_t,
    ret_chan: *mut *mut sdm_channel_t,
) -> i32
Expand description

@brief Create a new Sigma Delta channel

@param[in] config SDM configuration @param[out] ret_chan Returned SDM channel handle @return - ESP_OK: Create SDM channel successfully - ESP_ERR_INVALID_ARG: Create SDM channel failed because of invalid argument - ESP_ERR_NO_MEM: Create SDM channel failed because out of memory - ESP_ERR_NOT_FOUND: Create SDM channel failed because all channels are used up and no more free one - ESP_FAIL: Create SDM channel failed because of other error