(Page 18 of 80 in this chapter)


adiGetEEPromData

Description

Reads the on-board OEM data for a given board.

Prototype

DWORD adiGetEEPromData( unsigned drvid,
unsigned board,
unsigned size,
ADI_EEPROM_DATA *eepromdata )

drvid Driver ID returned from adiOpenDriver

board AG board number as configured by agmon.

size Size of the caller's structure (The returned size is enclosed in the eepromdata structure).

eepromdata Pointer to the returned structure, which is shown below:

typedef struct
{
 DWORD size;    /* Size of this structure                 */
 WORD  data[32];    /* EEprom data                            */
} ADI_EEPROM_DATA;

Return Values

Events

None.

Details

This function returns OEM information stored on a PROM on the specified AG board.

The drvid argument is used to access the AG driver.

See Also

adiGetBoardInfo

Example



/* Display first 16-bit value in EEProm */
void showeeprom (DWORD drvid)
{
    ADI_EEPROM_DATA eeprom;

    adiGetEEPromData( drvid, 0, sizeof eeprom, &eeprom);
    printf("data[0] = %x\n", eeprom.data[0]);
}



(Page 18 of 80 in this chapter)


Tech_Support@nmss.com
Copyright © 1996, Natural MicroSystems, Inc. All rights reserved.