ESP-IDF + 0/1 examples
SourceVu will show references to dac_cosine_new_channel() from the following samples and libraries:
 
Symbols
loading...
Files
loading (2/5)...
SummarySyntaxArgumentsExamplesReferencesCall TreeData UseLifecycle

Return value

- 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 cosine wave channel resources - ESP_OK Allocate the new DAC cosine wave channel success

Notes

Since there is only one cosine wave generator, only the first channel can set the frequency of the cosine wave. Normally, the latter one is not allowed to set a different frequency, but the it can be forced to set by setting the bit `force_set_freq` in the configuration, notice that another channel will be affected as well when the frequency is updated.