Gx3756ReadConnectorId

Purpose

Returns the level of the connector ID pins.

Syntax

Gx3756ReadConnectorId (nHandle, pnConnectorId, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle to a GX3756 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 Gx3756PioSetGroupDirection() API for complete example.

Example

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

 

SHORT nHandle, nStatus;

SHORT nConnectorId;

Gx3756ReadConnectorId (nHandle, &nConnectorId, &nStatus);

 

See Also

Gx3756Initialize, GxFpgaGetErrorString