Applies To
GC5050, GX5050, GX5150
Purpose
Returns the Level Shifter board summary from the onboard EEPROM.
Syntax
DioLevelShifterGetSummary (nHandle, pszBoardSum, nSumMaxLen, pnStatus)
Parameters
Name |
Type |
Comments |
nHandle |
SHORT |
Board handle. |
pszBoardSum |
LPSTR |
Buffer to contain the returned board info string (null terminated string). |
nSumMaxLen |
SHORT |
Size of the buffer to contain the error string. |
pnStatus |
LPSHORT |
Returned status: 0 on success, negative number on failure. |
Comments
The summary string provides the following data from the onboard EEPROM on the Level Shifter board in the order shown:
· Instrument Name (for example, GT5930)
· EEPROM format version (for example, 1.00)
· PCB revision (for example, 'A')
· Serial Number (for example, 59300100)
· Calibration time and date
For example, the returned string could look like the following:
"GT5930 A, Version 1.00, Revision A, S/N 59300100, last calibrated time Mon May 08 14:39:02 2000\n"
Example
The following example returns the Level Shifter board summary:
SHORT nHandle, nStatus;
CHAR szBoardSum[128]
DioLevelShifterGetSummary (nHandle, szBoardSum, 128, &nStatus)
See Also
DioLevelShifterSetVoltage, DioLevelShifterSetByLogicFamily, DioGetErrorString