⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 i2creg.h

📁 本程序为ST公司开发的源代码
💻 H
字号:
/**************************************************
 *
 *
 * CVS ID:   $Id: i2creg.h,v 1.1 2006/01/31 18:50:18 belardi Exp $
 * Author:   Maurizio Marcucci [MM] - STM
 * Date:     $Date: 2006/01/31 18:50:18 $
 * Revision: $Revision: 1.1 $
 * 
 * Description:
 * 
 *   Accordo+ Hardware registers definition
 *
 ***************************************************
 * 
 * COPYRIGHT (C) ST Microelectronics  2005
 *            All Rights Reserved
 *
 ***************************************************/

#include "i2cdef.h"

#define I2C0_BASE_ADDR     0xE0068000

#define I2C0_CR   (*((volatile I2C_CR_UNION    *) (I2C0_BASE_ADDR + 0x00)))
#define I2C0_SR1  (*((volatile I2C_SR1_UNION   *) (I2C0_BASE_ADDR + 0x04)))
#define I2C0_SR2  (*((volatile I2C_SR2_UNION   *) (I2C0_BASE_ADDR + 0x08)))
#define I2C0_CCR  (*((volatile I2C_CCR_UNION   *) (I2C0_BASE_ADDR + 0x0C)))
#define I2C0_OAR1 (*((volatile uint32          *) (I2C0_BASE_ADDR + 0x10)))
#define I2C0_OAR2 (*((volatile I2C_OAR2_UNION  *) (I2C0_BASE_ADDR + 0x14)))
#define I2C0_DR   (*((volatile uint32          *) (I2C0_BASE_ADDR + 0x18)))
#define I2C0_ECCR (*((volatile uint32          *) (I2C0_BASE_ADDR + 0x1C)))

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -