Download DB4getmud(int din)
Transcript
WG2 Waveform Generator
1209
WG2status( din )
Op Code
Prototype
Description
WARNING:
Arguments
Example
WG2_STATUS {0x20}
int
WG2status( int din);
Returns the status of the specified WG2.
Calling WG2status while the device is generating
tones or converting a user waveform will cause
clicks in the WG2 output waveform. Do not use
WG2status while the device is in one of these two
modes.
Return Values:
OFF = 0
WG2 is off (no output).
ON = 1
WG2 output gated fully on.
RISING = 2
Output gate is in rising state.
FALLING = 3 Output gate is in falling state.
din
Device index number.
if(WG2status(1)==ON);
WG2off(1);
Turns WG2(1) off if it is on.