GxFpgaGetExpansionBoardID

Purpose

Returns the current Expansion Board ID.

Syntax

GxFpgaGetExpansionBoardID (nHandle, pucExpansionBoardID, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle for a GX3700 board.
pucExpansionBoardID
PBYTE
Returned value that identifies the currently installed expansion board.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The returned expansion board ID identifies the type of expansion board being used:

ucExpansionBoardID
Type of board
Examples
0x1
PIO expansion board
GX3701, GX3709, GX3710.
0xF
No expansion board installed
N/A.

Comments

The expansion board ID is read from P8 pins 19, 21, 23 and 25 to from a 4-bit integer (0-15).

Example

The following example returns the expansion board ID to the ucExpansionBoardID:

 

BYTE ucExpansionBoardID;

GxFpgaGetExpansionBoardID (nHandle, &ucExpansionBoardID, &nStatus);

 

See Also

GxFpgaGetErrorString