dac_continuous_register_event_callback() function
Set event callbacks for DAC continuous mode
Arguments
handle
The DAC continuous channel handle that obtained from 'dac_continuous_new_channels'
callbacks
Group of callback functions, input NULL to clear the former callbacks
user_data
User data, which will be passed to callback functions directly
Return value
- ESP_OK Set event callbacks successfully - ESP_ERR_INVALID_ARG Set event callbacks failed because of invalid argument
Notes
User can deregister a previously registered callback by calling this function and setting the callback member in the `callbacks` structure to NULL. 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.
dac_continuous_register_event_callback() calls 2 functions:
![]()
dac_continuous_register_event_callback()
dac_continuous_register_event_callback() reads 6 variables and writes 1 variable:
![]()
dac_continuous_register_event_callback()