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


ADMXRC2_WriteConfig

Prototype

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

Arguments

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

Return value

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

Description

The ADMXRC2_WriteConfig function writes to the configuration 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 write.

The Value parameter is the value to write to the specified EEPROM location.

The number of EEPROM locations and the width in bits of each location is dependent on the board type. The actual value written to the specified EEPROM location is Value, truncated by removing MSBs to the width of the EEPROM. 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-L 64 16
ADM-XRCII 256 16
ADP-XRCIIPro-Lite 256 32
ADM-WRCII 256 16
ADP-DRCII 256 16

 


 Top of page