Gx3748ReadConnectorId

Purpose

Returns the level of the connector ID pins.

Syntax

Gx3748ReadConnectorId (nHandle, pnConnectorId, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle for a GX3748 board.
pnConnectorId
PSHORT
Returns the level of the connector ID pins.   
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

This function returns the level of the three connector ID pins. Not connected pins are set to logic high (‘1’). The board’s front connector pins 1, 22, and 43 are the three connector ID pins. Pin 1=bit 0, pin 22=bit 1, pin 43=bit 2.

A logic high (‘1’) means the pin is set to high, logic low (‘0’) means the pin is set to low.

See the Gx3748PioSetGroupDirection() API for complete example.

Example

The following example returns the level of the connector ID pins:

 

SHORT nHandle, nStatus;

SHORT nConnectorId;

Gx3748ReadConnectorId (nHandle, &nConnectorId, &nStatus);

 

See Also

Gx3748Initialize, GxFpgaGetErrorString