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

Fields

Field
Declared as
Description
The cosine wave channel id.
uint32_t
The frequency of cosine wave, unit: Hz. The cosine wave generator is driven by RTC_FAST clock which is divide from RC_FAST, With the default RTC clock, the minimum frequency of cosine wave is about 130 Hz, Although it can support up to several MHz frequency theoretically, the waveform will distort at high frequency due to the hardware limitation. Typically not suggest to set the frequency higher than 200 KHz.
The clock source of the cosine wave generator, currently only support `DAC_COSINE_CLK_SRC_DEFAULT`.
The attenuation of cosine wave amplitude.
The phase of cosine wave, can only support DAC_COSINE_PHASE_0 or DAC_COSINE_PHASE_180, default as 0 while setting an unsupported phase.
int8_t
The DC offset of cosine wave.
struct { bool force_set_freq: 1; }
Flags of cosine mode.