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.
WGTrapzCfg_Type Struct Reference
[TypeDefinitions]
  Trapezoid Generator parameters The definition of the Trapezoid waveform is shown below. More...
#include <ad5940.h>
| Data Fields | |
| uint32_t | WGTrapzDCLevel1 | 
| Trapezoid generator DC level1, this value is written directly to corresponding register. | |
| uint32_t | WGTrapzDCLevel2 | 
| DC level2, similar to DCLevel1. | |
| uint32_t | WGTrapzDelay1 | 
| Trapezoid generator delay 1. | |
| uint32_t | WGTrapzDelay2 | 
| Trapezoid generator delay 2. | |
| uint32_t | WGTrapzSlope1 | 
| Trapezoid generator Slope 1. | |
| uint32_t | WGTrapzSlope2 | 
| Trapezoid generator Slope 2. | |
Detailed Description
Trapezoid Generator parameters The definition of the Trapezoid waveform is shown below.
Note the Delay and Slope are all in clock unit.
 DCLevel2         _________
                 /         \
                /           \
 DCLevel1 _____/             \______
         |     |  |       |  |
         Delay1|S1|Delay2 |S2| Delay1 repeat...
 Where S1 is slope1 and S2 is slop2
The DAC update rate from Trapezoid generator is SystemClock/50. The default SystemClock is internal HFOSC 16MHz. So the update rate is 320kHz. The time parameter specifies in clock number. For example, if Delay1 is set to 10, S1 is set 20, the time for Delay1 period is 10/320kHz = 31.25us, and time for S1 period is 20/320kHz = 62.5us.
Definition at line 4403 of file ad5940.h.
Field Documentation
| uint32_t WGTrapzDCLevel1 | 
| uint32_t WGTrapzDCLevel2 | 
| uint32_t WGTrapzDelay1 | 
| uint32_t WGTrapzDelay2 | 
| uint32_t WGTrapzSlope1 | 
| uint32_t WGTrapzSlope2 | 
Generated on Tue Jul 12 2022 21:32:08 by
 1.7.2
 1.7.2