Gx3722ReadConnectorId

Purpose

Returns the level of the connector ID pins.

Syntax

Gx3722ReadConnectorId (nHandle, pnConnectorId, pnStatus)

Parameters

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

Example

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

 

SHORT nConnectorId;

Gx3722ReadConnectorId (nHandle, &nConnectorId, &nStatus);

 

See Also

Gx3722Initialize, GxFpgaGetErrorString