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

📄 twi.h

📁 at91rm9200控制at2410这种基于i2c的eeprom器件
💻 H
字号:
//*----------------------------------------------------------------------------
//*      ATMEL Microcontroller Software Support  -  ROUSSET  -
//*----------------------------------------------------------------------------
//* The software is delivered "AS IS" without warranty or condition of any
//* kind, either express, implied or statutory. This includes without
//* limitation any warranty or condition with respect to merchantability or
//* fitness for any particular purpose, or against the infringements of
//* intellectual property rights of others.
//*----------------------------------------------------------------------------
//* File Name           : twi.h
//* Object              :
//*----------------------------------------------------------------------------
#ifndef twi_h
#define twi_h

#define AT91C_EEPROM_I2C_ADDRESS  	(0x50<<16)

#define AT91C_EEPROM_READ_OK			0
#define AT91C_EEPROM_WRITE_OK			0

extern int AT91F_TWI_Write (const AT91PS_TWI, int, char *, int );
extern int AT91F_TWI_Read  (const AT91PS_TWI, int, char *, int );

#endif

⌨️ 快捷键说明

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