📄 ieeprom.h
字号:
/****************************************************************************** IEeprom.h : Type Definitions for EEPROM interface* REALmagic Quasar Hardware Library* Created by Aurelia Popa-Radu* Copyright Sigma Designs Inc* Sigma Designs Proprietary and confidential* Created on 8/27/99* Description:*****************************************************************************/#ifdef __cplusplusextern "C"{#endif #ifndef __IEEPROM_H__#define __IEEPROM_H__//////////////////////////////////////////////////////////////////////////////// EEPROM Abstract interfacestypedef HWLIB_INTERFACE tagIEeprom{ struct tagIEepromVtbl *lpVtbl;} IEeprom;typedef struct tagIEepromVtbl{ HWLIB_BEGIN_INTERFACE void ( *Delete) (IEeprom* This, BOOL bDeleteObject); void ( *Init) (IEeprom* This); void ( *InitPropertySet) (IEeprom* This, void* pPropSet, DWORD dwSize); QRESULT ( *SetProperty) (IEeprom* This, DWORD PropSet, DWORD PropId, DWORD Flags, void* pData, DWORD dwSizeIn, DWORD* pdwSizeOut); QRESULT ( *GetProperty) (IEeprom* This, DWORD PropSet, DWORD PropId, DWORD Flags, void* pData, DWORD dwSizeIn, DWORD* pdwSizeOut); BOOL ( *Write) (IEeprom* This, DWORD Address, BYTE* pData ); BOOL ( *Read) (IEeprom* This, DWORD Address, BYTE* pData ); BOOL ( *CheckPresence) (IEeprom* This); BOOL ( *GetPresence) (IEeprom* This); QRESULT ( *Program) (IEeprom* This, BYTE* pEepromTable, DWORD nBytes); HWLIB_END_INTERFACE} IEepromVtbl;#define IEeprom_Delete(this,bDeleteObject) (this)->lpVtbl->Delete(this, bDeleteObject)#define IEeprom_Init(this) (this)->lpVtbl->Init(this)#define IEeprom_InitPropertySet(this, pPropSet, size) (this)->lpVtbl->InitPropertySet(this, pPropSet, size)#define IEeprom_SetProperty(this, PropSet, PropId, Flags, pData, dwSizeIn, pdwSizeOut)\ (this)->lpVtbl->SetProperty(this, PropSet, PropId, Flags, pData, dwSizeIn, pdwSizeOut)#define IEeprom_GetProperty(this, PropSet, PropId, Flags, pData, dwSizeIn, pdwSizeOut)\ (this)->lpVtbl->GetProperty(this, PropSet, PropId, Flags, pData, dwSizeIn, pdwSizeOut)#define IEeprom_Write(this, Address, pData) (this)->lpVtbl->Write(this, Address, pData)#define IEeprom_Read(this, Address, pData) (this)->lpVtbl->Read(this, Address, pData)#define IEeprom_CheckPresence(this) (this)->lpVtbl->CheckPresence(this)#define IEeprom_GetPresence(this) (this)->lpVtbl->GetPresence(this)#define IEeprom_Program(this, pData, nBytes) (this)->lpVtbl->Program(this, pData, nBytes)#endif#ifdef __cplusplus}#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -