Sets the specified serial-out channel 64-bit of data to be transmitted.
Gx3722SerialOutSetData (nHandle, nChannel, dwMostSigWord, dwLeastSigWord, pnStatus)
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. |
dwMostSigWord |
DWORD |
Specified serial-out channel most significant word that was set by Gx3722SerialOutSetData() API. |
dwLeastSigWord |
DWORD |
Specified serial-out channel least significant word that was set by Gx3722SerialOutSetData() API. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The function returns the specified serial-out channel 64-bit of data to be transmitted as it was set by Gx3722SerialOutSetData() API. The actually transmitted data is set by calling Gx3722SerialOutSetNumOfDataBits() API.
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 4 channels direction is set to output.
See the Gx3722SerialOutGetStatus () API for complete example.
The following example Sets the specified serial-out channel 64-bit of data to be transmitted:
SHORT nHandle, nStatus;
Gx3722SerialOutSetData (nHandle, GX3722_SERIAL_PAL_CH0, 0x12345678, 0xABCDEF12, &nStatus);
Gx3722SerialOutReset, Gx3722SerialOutSetArmState, Gx3722SerialOutSetBitRate, Gx3722SerialOutGetData, Gx3722SerialOutSetDataBitsPulseWidth, Gx3722SerialOutSetTriggerSource, Gx3722SerialOutSetMode, Gx3722SerialOutSetNumOfDataBits, Gx3722SerialOutSetShiftMode, Gx3722SerialOutSetTriggerDelay, Gx3722SerialOutTrig, GxFpgaGetErrorString