Returns the time in microseconds for each serial transmitted bit for all 4 serial-out channels.
Gx3756SerialOutGetBitRate (nHandle, pdwBitRate, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX3756 board. |
pdwBitRate |
PDWORD |
Returns the time in microseconds for each serial transmitted bit for all 4 serial-out channels. Default value is 1000 uSec (1mSec). |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The function set/returns apply the same time in microseconds for each serial transmitted bit for all 4 serial-out channels. The data bits pulse width for logic high pulse width and logic low pulse width cannot be longer than the bit rate, see the Gx3756SerialOutGetDataBitsPulseWidth() API for more details.
Channels 0-3 (Group 0) can be programmed to operate as serial-out transmitter or as Static I/O, see Gx3756SerialOutSetMode() API for more details. When any of Channels 0-3 (Group 0) are set to Serial Out, all 4 channels direction is set to output.
Channels 3-7 (Group 1) can be programmed as an external trigger source to channels 0-3 (Group 0), when they are set to serial-out operation mode. See Gx3756SerialOutSetMode(), and Gx3756SerialOutGetTriggerSource() APIs for more details.
See the Gx3756SerialOutGetStatus () API for complete example.
The following example returns the time in microseconds for each serial transmitted bit for all 4 serial-out channels:
SHORT nHandle, nStatus;
DWORD dwBitRate;
Gx3756SerialOutGetBitRate (nHandle, &dwBitRate, &nStatus);
Gx3756SerialOutReset, Gx3756SerialOutSetArmState, Gx3756SerialOutSetBitRate, Gx3756SerialOutSetData, Gx3756SerialOutSetDataBitsPulseWidth, Gx3756SerialOutSetTriggerSource, Gx3756SerialOutSetMode,
Gx3756SerialOutSetNumOfDataBits, Gx3756SerialOutSetShiftMode, Gx3756SerialOutSetTriggerDelay, Gx3756SerialOutSetTriggerSource, Gx3756SerialOutTrig, GxFpgaGetErrorString