📄 cmx_i2c.h
字号:
//*****************************************************************************
//*****************************************************************************
// FILENAME: CMX_I2C_Drv.h
// Version: 1.1, Updated on 2008/6/23 at 14:8:8
//
//
// DESCRIPTION: Header file for I2C_Drv.c
//
//-----------------------------------------------------------------------------
// Copyright (c) Cypress MicroSystems 2004. All Rights Reserved.
//*****************************************************************************
//*****************************************************************************
#ifndef CMX_I2C_include
#define CMX_I2C_include
typedef struct
{
BYTE ID; // Instance ID. This ID value will be set upon code generation
// and will refer to the index in the array of pointers to
// parameter blocks.
BYTE bAddress; // I2C Address
BYTE bRAMLen; // Length of RAM buffer used.
BYTE bRWLen; // Length of RW memory locations starting from 0.
BYTE * pbRAMRegs; // Pointer to RAM used for registers (2 Byte pointer)
BYTE bROMLen; // Length of ROM buffer used.
const BYTE * pbROMRegs; // Pointer to ROM used for registers (2 Byte pointer)
}CMX_I2C_ParameterBlock;
// Function prototypes
void CMX_I2C_Instantiate(const CMX_I2C_ParameterBlock * thisBLK );
void CMX_I2C_SetValue(const CMX_I2C_ParameterBlock * thisBLK , BYTE bAddrOffset);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -