ADM-XRC SDK 2.4.0 User Guide (Linux)
© Copyright 2001-2004 Alpha Data


ADMXRC2_ReadConfig

Prototype

ADMXRC2_STATUS
ADMXRC2_ReadConfig(
    ADMXRC2_HANDLE Card,
    unsigned long  Index,
    uint32_t*      Value);

Arguments

Argument Type Purpose
Card In Handle of card on which the read is to take place
Index In Index of EEPROM location to read
Value Out Value read from EEPROM location

Return value

Value Meaning
ADMXRC2_SUCCESS The data was read successfully
ADMXRC2_INVALID_HANDLE Card is not a valid card handle
ADMXRC2_INVALID_PARAMETER Index was out of range.

Description

The ADMXRC2_ReadConfig function reads the EEPROM on an ADM-XRC series card. This function is intended for advanced users who need to change the configuration of their card from the factory defaults.

The Index parameter specifies the index of the EEPROM location to read.

The Value parameter must point to the variable that is to receive the value read from the specified location.

The number of EEPROM locations and the width in bits of each location is dependent on the board type. The value returned is the data read from the specified EEPROM location, zero-extended by adding MSBs to 32 bits. The table below shows EEPROM size and width for each supported card:

Card Number of locations Bit-width of locations
ADM-XRC 64 16
ADM-XRC-P 64 16
ADM-XRCII-Lite 64 16
ADM-XRCII 256 16
ADP-XRCIIPro-Lite 256 32
ADM-WRCII 256 16
ADP-DRCII 256 16

 


 Top of page