Reset the specified serial-out channel to default settings.
Gx3722SerialOutReset (nHandle, nChannel, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX3722 board. |
nChannel |
SHORT |
Channel to get, 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. |
Reset the specified serial-out channel to following default settings:
Set the serial-out channel data MS Word and LS Word both to 0x0.
Serial channel mode to static.
Serial channel Trigger source to software.
Serial channel Trigger Mode to one short.
Serial channel Shift data Mode to MSB first.
Serial channel number of data bits to 32.
Serial channel Arm state to OFF.
Serial time in microseconds between trigger and the serial-output to 0.
Serial time in microseconds for each bit to 1000.
Serial high time for logic '1' in microseconds to 640.
Serial low time for logic '0' in microseconds to 320.
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 resets channel 0:
SHORT nHandle, nStatus;
Gx3722SerialOutReset (nHandle, GX3722_SERIAL_PAL_CH0, &nStatus);
Gx3722SerialOutSetArmState, Gx3722SerialOutSetBitRate, Gx3722SerialOutSetData, Gx3722SerialOutSetDataBitsPulseWidth, Gx3722SerialOutSetTriggerSource, Gx3722SerialOutSetMode, Gx3722SerialOutSetNumOfDataBits, Gx3722SerialOutSetShiftMode, Gx3722SerialOutSetTriggerDelay, Gx3722SerialOutTrig, GxFpgaGetErrorString