📄 i2cif.h
字号:
/*+++ *******************************************************************\
*
* Copyright and Disclaimer:
*
* ---------------------------------------------------------------
* This software is provided "AS IS" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of noninfringement, merchantability and/or
* fitness for a particular purpose.
* ---------------------------------------------------------------
*
* Copyright (c) 2004 Conexant Systems, Inc.
* All rights reserved.
*
\******************************************************************* ---*/
#ifndef _I2CIF_H_
#define _I2CIF_H_
// {279CF1DC-86EC-47e4-B50A-63CB7C7AA3F9}
const GUID I2C_IF_GUID =
{
0x279cf1dc, 0x86ec, 0x47e4, { 0xb5, 0xa, 0x63, 0xcb, 0x7c, 0x7a, 0xa3, 0xf9 }
};
// IMPORTANT: If you modify this interface at all, generate
// a new interface guid, not doing so could cause a crash.
class I2cIF{
public:
// Increments the reference count for the calling interface on an
// object. QueryInferface calls addRef on the returned interface
// pointer on behalf of the caller.
virtual INT addRef() = 0;
// Decrements the reference count for the calling interface
// on a object. If the reference count on the object falls
// to 0, the object is freed from memory.
virtual INT release() = 0;
virtual BOOLEAN read(
BYTE device_adr,
INT size,
BYTE *p_buf) = 0;
virtual BOOLEAN write(
BYTE device_adr,
INT size,
BYTE *p_buf) = 0;
virtual BOOLEAN writeThenRead(
BYTE device_adr,
INT write_size,
const BYTE *p_write_buf,
INT read_size,
BYTE *p_read_buf) = 0;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -