ADM-XRC SDK 2.8.1 User Guide (Linux)
© Copyright 2001-2009 Alpha Data
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 | In | 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-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 |