Function esp_idf_sys::dac_oneshot_new_channel
source ยท pub unsafe extern "C" fn dac_oneshot_new_channel(
oneshot_cfg: *const dac_oneshot_config_t,
ret_handle: *mut dac_oneshot_handle_t,
) -> esp_err_t
Expand description
@brief Allocate a new DAC oneshot channel @note The channel will be enabled as well when the channel allocated
@param[in] oneshot_cfg The configuration for the oneshot channel @param[out] ret_handle The returned oneshot channel handle @return - ESP_ERR_INVALID_ARG The input parameter is invalid - ESP_ERR_INVALID_STATE The DAC channel has been registered already - ESP_ERR_NO_MEM No memory for the DAC oneshot channel resources - ESP_OK Allocate the new DAC oneshot channel success