Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Waveform_Generator_Functions
[High_Speed_Loop_Functions]
Functions | |
| void | AD5940_WGCfgS (WGCfg_Type *pWGInit) |
| Initialize waveform generator. | |
| AD5940Err | AD5940_WGDACCodeS (uint32_t code) |
| Write HSDAC code directly when WG configured to MMR type. | |
| void | AD5940_WGFreqCtrlS (float SinFreqHz, float WGClock) |
| Update WG SIN wave frequency in Hz. | |
| uint32_t | AD5940_WGFreqWordCal (float SinFreqHz, float WGClock) |
| Calculate sine wave generator frequency word. | |
Function Documentation
| void AD5940_WGCfgS | ( | WGCfg_Type * | pWGInit ) |
| AD5940Err AD5940_WGDACCodeS | ( | uint32_t | code ) |
| void AD5940_WGFreqCtrlS | ( | float | SinFreqHz, |
| float | WGClock | ||
| ) |
| uint32_t AD5940_WGFreqWordCal | ( | float | SinFreqHz, |
| float | WGClock | ||
| ) |
Calculate sine wave generator frequency word.
The maxim frequency is 250kHz-1LSB
- Parameters:
-
SinFreqHz : Target frequency in Hz unit. WGClock,: Waveform generator clock frequency in Hz unit. The clock is sourced from system clock, default value is 16MHz HFOSC.
- Returns:
- return none.
Generated on Tue Jul 12 2022 21:32:08 by
1.7.2