smbpep.h

来自「此文件是cp6000主板的bsp包」· C头文件 代码 · 共 56 行

H
56
字号
/* smbPep.h - header file for the SMBus interface functions *//* Copyright 2002 Kontron Modular Computers GmbH *//*modification history--------------------01d,03jul03,gko additional function for CP306 -> MIC24LC64 on SMBus01c,01aug02,phd copyright adjusted01b,12oct01,phd attribute to prevent warnings added to PEP version identifier01a,26feb01,phd	created*/#ifndef __INCsmbPep_h#define __INCsmbPep_h#ifdef __cplusplusextern "C" {#endif/* includes */#include "vxWorks.h"#include "versionPep.h"/* defines *//* version identifier */PEP_VERSION(smbPep_h,01d)/* typedefs *//* array of SMBus controller interface functions */typedef struct {	STATUS (*quickCommandHigh) (UINT8 slaveAddr);	STATUS (*quickCommandLow)  (UINT8 slaveAddr);	STATUS (*receiveByte)      (UINT8 slaveAddr, UINT8 *pValue);	STATUS (*sendByte)         (UINT8 slaveAddr, UINT8   value);	STATUS (*byteRead)         (UINT8 slaveAddr, UINT8 command, UINT8  *pValue);	STATUS (*byteWrite)        (UINT8 slaveAddr, UINT8 command, UINT8    value);	STATUS (*wordRead)         (UINT8 slaveAddr, UINT8 command, UINT16 *pValue);	STATUS (*wordWrite)        (UINT8 slaveAddr, UINT8 command, UINT16   value);	STATUS (*waitForIrq)       (UINT8 slaveAddr);	STATUS (*waitForAlert)    (UINT8 slaveAddr);#ifdef MIC24LC64	STATUS (*wordI2cWrite)     (UINT8 slaveAddr, UINT16 command, UINT8   value);#endif} SMB_FUNCS;#ifdef __cplusplus}#endif#endif /* __INCsmbPep_h */

⌨️ 快捷键说明

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