i2cif.h
来自「完整的基于Conxant平台的USB电视棒的WIN驱动程序。」· C头文件 代码 · 共 57 行
H
57 行
/*+++ *******************************************************************\
*
* 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 + =
减小字号Ctrl + -
显示快捷键?