(Page 14 of 69 in this chapter) Version
adiGetEEPromData
Description
- Reads the on-board OEM data for a given board.
Prototype
- DWORD adiGetEEPromData ( CTAHD ctahd,
unsigned board,
unsigned size,
ADI_EEPROM_DATA *eepromdata )
- ctahd CTA context handle returned by ctaCreateContext.
- board Board number as specified in the configuration file.
- 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 ctahd argument is used to access the CTA context on which the ADI service was opened. The ADI service can be opened in driver-only mode if desired. In this case, no actual board resources will be reserved. Set the board field in the MVIP_ADDR structure passed to ctaOpenServices to ADI_AG_DRIVER_ONLY. This function will also work with a CTA context that has the ADI service opened on actual MVIP streams and timeslots.
Note: This function is not supported on a QX 2000 board. If this function is called using a QX 2000 board, CTAERR_FUNCTION_NOT_AVAIL is returned.
See Also
- adiGetBoardInfo
Example
/* Display first 16-bit value in EEProm */
void showeeprom (unsigned drvid)
{
ADI_EEPROM_DATA eeprom;
adiGetEEPromData( drvid, 0, sizeof eeprom, &eeprom);
printf("data[0] = %x\n", eeprom.data[0]);
}
(Page 14 of 69 in this chapter) Version
Want to send us feedback on our documentation? Email: Tech_Pubs@nmss.com
Copyright © 2000, Natural MicroSystems, Inc. All rights
reserved.