📄 i2c_context.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) 2005 Conexant Systems, Inc.
* All rights reserved.
*
\******************************************************************* ---*/
#ifndef _I2C_CONTEXT_H_
#define _I2C_CONTEXT_H_
#ifdef __cplusplus
class I2cIF; //Forward declaration for I2cIF
#else
#define I2cIF void //This will make the I2cIF class reference a VOID* if we are in C.
#endif
//NOTE: The context structure must be initialized before making the initial call
// into the library. This context structure is passed into all functions in this
// file, but is unreferenced in many of them.
typedef struct _I2C_CONTEXT
{
I2cIF* p_i2c;
BYTE i2c_address0;
BYTE i2c_address1;
}I2C_CONTEXT, *PI2C_CONTEXT;
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -