⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ii2c.h

📁 这是一个SIGMA方案的PMP播放器的UCLINUX程序,可播放DVD,VCD,CD MP3...有很好的参考价值.
💻 H
字号:
/******************************************************************************  II2c.h : Type Definitions for II2C 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 __II2C_H__#define __II2C_H__//////////////////////////////////////////////////////////////////////////////// I2C Abstract interfacestypedef HWLIB_INTERFACE tagII2C{	struct tagII2CVtbl *lpVtbl;} II2C;  typedef struct tagII2CVtbl  {    HWLIB_BEGIN_INTERFACE    void ( *Delete)					(II2C* This, BOOL bDeleteObject);    void ( *Init)	                (II2C* This);    BOOL ( *Write)	                (II2C* This, BYTE adr, BYTE *Data, int n);    BOOL ( *Read)	                (II2C* This, BYTE adr, BYTE *Data, int n);    BOOL ( *Write_NoSubAddr)        (II2C* This, BYTE *Data, int n);    BOOL ( *Read_NoSubAddr)	        (II2C* This, BYTE *Data, int n);    void ( *SetI2CAddress)	        (II2C* This, BYTE WriteAddr, BYTE ReadAddr, int bDelay);	void ( *InitPropertySet)		(II2C* This, void* pPropSet, DWORD dwSize);    HWLIB_END_INTERFACE  } II2CVtbl;#define II2C_Delete(this,bDeleteObject)					(this)->lpVtbl->Delete(this, bDeleteObject)#define II2C_Init(this)									(this)->lpVtbl->Init(this)#define II2C_Write(this, adr, pData, n)					(this)->lpVtbl->Write(this, adr, pData, n)#define II2C_Read(this, adr, pData, n)					(this)->lpVtbl->Read(this, adr, pData, n)#define II2C_Write_NoSubAddr(this, pData, n)			(this)->lpVtbl->Write_NoSubAddr(this, pData, n)#define II2C_Read_NoSubAddr(this, pData, n)				(this)->lpVtbl->Read_NoSubAddr(this, pData, n)#define II2C_SetI2CAddress(this,WrAddr,RdAddr,bDelay)	(this)->lpVtbl->SetI2CAddress(this,WrAddr,RdAddr,bDelay)#define II2C_InitPropertySet(this, pPropSet, size)		(this)->lpVtbl->InitPropertySet(this, pPropSet, size)#endif#ifdef __cplusplus}#endif 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -