cmx_i2c.h

来自「cypress cy3721做的外部无线结点。感知温度后将温度值反给中心结点。」· C头文件 代码 · 共 41 行

H
41
字号
//*****************************************************************************
//*****************************************************************************
//  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 + =
减小字号Ctrl + -
显示快捷键?