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

📄 i2c.h

📁 本程序为ST公司开发的源代码
💻 H
字号:
/************************************************** * * i2c.h * * CVS ID:   $Id: i2c.h,v 1.8 2007/05/02 12:42:33 belardi Exp $ * Author:   Raffaele Belardi [RB] - STM * Date:     $Date: 2007/05/02 12:42:33 $ * Revision: $Revision: 1.8 $ *  * Description: *  *************************************************** *  * COPYRIGHT (C) ST Microelectronics  2005 *            All Rights Reserved * *************************************************** * * STM CVS Log: * * $Log: i2c.h,v $ * Revision 1.8  2007/05/02 12:42:33  belardi * Removed unused field in I2C flags * New function prototype * * Revision 1.7  2006/11/30 11:02:53  belardi * Removed unused CIS_0_05 definitions * * Revision 1.6  2006/09/18 09:55:23  belardi * Corrected CVS keyword usage * * Revision 1.5  2006/09/18 09:24:13  belardi * Added Log CVS keyword into file header * * ***************************************************/#ifndef _I2C_INCLUDED_#define _I2C_INCLUDED_#define I2C_SLAVE_ADDRESS  0xE0/* Default size of Link Layer frame, can be lowered by HostIF command */#define DEFAULT_MAX_I2C_FRAME_SIZE 60typedef struct{ UInt tx_msg_done : 1; UInt af     :1; UInt i2c_rx_ready: 1; UInt i2c_tx_ready:1 ; UInt i2c_new_cmd: 1; UInt     : 27;}I2C_FLAGS_STRUCT;extern I2C_FLAGS_STRUCT i2c_flags;extern char i2c_irq_rx_buffer[DEFAULT_MAX_I2C_FRAME_SIZE];extern uint16 i2c_irq_rx_buffer_idx;extern char i2c_irq_tx_buffer[DEFAULT_MAX_I2C_FRAME_SIZE];extern uint16 i2c_irq_tx_buffer_idx;void i2c_soft_reset(void);void i2c_soft_reset_tx(void);void i2c_init(void);#endif

⌨️ 快捷键说明

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