pub unsafe extern "C" fn dac_continuous_register_event_callback(
    handle: dac_continuous_handle_t,
    callbacks: *const dac_event_callbacks_t,
    user_data: *mut c_void,
) -> esp_err_t
Expand description

@brief Set event callbacks for DAC continuous mode

@note User can deregister a previously registered callback by calling this function and setting the callback member in the callbacks structure to NULL. @note When CONFIG_DAC_ISR_IRAM_SAFE is enabled, the callback itself and functions called by it should be placed in IRAM. The variables used in this function, including the user_data, should be in the internal RAM as well.

@param[in] handle The DAC continuous channel handle that obtained from ‘dac_continuous_new_channels’ @param[in] callbacks Group of callback functions, input NULL to clear the former callbacks @param[in] user_data User data, which will be passed to callback functions directly @return - ESP_OK Set event callbacks successfully - ESP_ERR_INVALID_ARG Set event callbacks failed because of invalid argument