dac_cosine_config_t struct
DAC cosine channel configurations
Fields
The cosine wave channel id.
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.
The DC offset of cosine wave.
![]()
typedef struct {