Gx3722DiffTTLSetOutputs

Purpose

Sets the 4 differential TTL output level settings.

Syntax

Gx3722DiffTTLSetOutputs (nHandle, nOutputs, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle to a GX3722 board.
nOutputs
SHORT
Sets 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.

Comments

Sets the 4 differential TTL output level settings.

Example

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);

 

See Also

Gx3722DiffTTLGetOutputs, Gx3722DiffTTLSetOutputsEnable, Gx3722DiffTTLReadInputs, GxFpgaGetErrorString