Returns the 4 differential TTL output level settings.
Gx3722DiffTTLGetOutputs (nHandle, pnOutputs, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX3722 board. |
pnOutputs |
PSHORT |
Returns the 4 differential TTL output level settings. There are 4 differential TTL output channels, each bit represents a channel, e.g. channel 0 = bit 0 etc.Bit low: channel’s output level is set low, if the channel is enabled.Bit high: channel’s output level is set high, if the channel is enabled. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
Returns the 4 differential TTL output level settings.
The following example sets differential TTL channels 0 and 3 to high and differential TTL channels 1 and 2 to low, returns the settings, and enables all 4 channels:
SHORT nOutputs;
Gx3722DiffTTLSetOutputs (nHandle, 0x9, &nStatus);
Gx3722DiffTTLGetOutputs (nHandle, &nOutputs, &nStatus);
Gx3722DiffTTLSetOutputsEnable (nHandle, 0xF, &nStatus);
Gx3722DiffTTLSetOutputs, Gx3722DiffTTLSetOutputsEnable, Gx3722DiffTTLReadInputs, GxFpgaGetErrorString