Gx3722SerialOutGetBitRate

Purpose

Returns the time in microseconds for each serial transmitted bit for all 4 serial-out channels.

Syntax

Gx3722SerialOutGetBitRate (nHandle, pdwBitRate, pnStatus)

Parameters

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

Comments

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 Gx3722SerialOutGetDataBitsPulseWidth() API for more details.

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.

Example

See the Gx3722SerialOutGetStatus () 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;

Gx3722SerialOutGetBitRate (nHandle, &dwBitRate, &nStatus);

 

See Also

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