dac_priv_register_channel() function
Register dac channel in the driver, in case a same channel is reused by different modes
Arguments
mode_name
The const string of mode name
Return value
- ESP_ERR_INVALID_STATE The channel has been occupied - ESP_ERR_INVALID_ARG The channel id is incorrect - ESP_OK Register the channel success
![]()
if ((void *)dac_priv_register_channel != NULL) {
dac_priv_register_channel() is called by 3 functions and calls 2 functions:
![]()
dac_priv_register_channel()
dac_priv_register_channel() reads 9 variables and writes 3 variables:
![]()
dac_priv_register_channel()