ADM-XRC SDK 2.8.1 User Guide (Linux)
© Copyright 2001-2009 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-XRC-II-Lite 64 16
ADM-XRC-II 256 16
ADM-XPL 256 32
ADM-XP 256 32
ADP-WRC-II 256 16
ADP-DRC-II 256 16
ADP-XPI 256 32
ADM-XRC-4LX 256 16
ADM-XRC-4SX 256 16
ADM-XRC-4FX 256 32
ADPE-XRC-4FX 256 32
ADM-XRC-5LX 256 32
ADM-XRC-5T1 256 32
ADM-XRC-5T2 256 32
ADM-XRC-5T2-ADV 256 32
ADM-XRC-5TZ 256 32
ADM-XRC-5T-DA1 256 32

 


 Top of page