📄 smbpep.h
字号:
/* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -