Function esp_idf_sys::dac_continuous_start_async_writing
source · pub unsafe extern "C" fn dac_continuous_start_async_writing(
handle: dac_continuous_handle_t,
) -> esp_err_t
Expand description
@brief Start the async writing @note When the asynchronous writing start, the DAC will keep outputting ‘0’ until the data are loaded into the DMA buffer. To loaded the data into DMA buffer, ‘on_convert_done’ callback is required, which can be registered by ‘dac_continuous_register_event_callback’ before enabling
@param[in] handle The DAC continuous channel handle that obtained from ‘dac_continuous_new_channels’ @return - ESP_OK Start asynchronous writing successfully - ESP_ERR_INVALID_ARG The handle is NULL - ESP_ERR_INVALID_STATE The channel is not enabled or the ‘on_convert_done’ callback is not registered