Gx3722SerialOutTrig

Purpose

Issues a software trigger to the specified serial-out channel number.

Syntax

Gx3722SerialOutTrig (nHandle, nChannel, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle to a GX3722 board.  
nChannel
SHORT
Channel to set, channels are 0-2:
0.      GX3722_SERIAL_PAL_CH0: Channel 0.
1.      GX3722_SERIAL_PAL_CH1: Channel 1.
2.    GX3722_SERIAL_PAL_CH2: Channel 2.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

Channels 0-2 can be programmed to operate as serial-out transmitter or as Static I/O, see Gx3722SerialOutSetMode() API for more details. When any of Channels 0-2 are set to Serial-out, all 3 channels direction is set to output.

Channels 3-7 (Group 1) can be programmed as an external trigger source to channels 0-2, when they are set to serial-out operation mode. See Gx3722SerialOutSetMode(), and Gx3722SerialOutGetTriggerSource() APIs for more details.

Example

The following example issues a software trigger to serial-out channel number 0:

 

SHORT nHandle, nStatus;

 

Gx3722SerialOutTrig (nHandle, GX3722_SERIAL_PAL_CH0, &nStatus);

 

See Also

Gx3722SerialOutReset, Gx3722SerialOutSetArmState, Gx3722SerialOutSetBitRate, Gx3722SerialOutSetData, Gx3722SerialOutSetDataBitsPulseWidth, Gx3722SerialOutSetTriggerSource, Gx3722SerialOutSetMode, Gx3722SerialOutSetNumOfDataBits, Gx3722SerialOutSetShiftMode, Gx3722SerialOutSetTriggerDelay, GxFpgaGetErrorString