文件名称:iic
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- 上传时间:
- 2017-11-30
- 文件大小:
- 4kb
- 下载次数:
- 0次
- 提 供 者:
- Null*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
extern void I2C0_IRQHandler( void );
extern void I2C1_IRQHandler( void );
extern void I2C2_IRQHandler( void );
extern void My_I2C_IRQHandler(LPC_I2C_TypeDef *LPC_I2Cx); // 通用的函数
extern uint32_t I2CInit_0( uint32_t I2cMode ,int SpeedMode) ;//I2C0支持快速模式和标准模式
extern uint32_t I2CInit_1( uint32_t I2cMode );
extern uint32_t I2CInit_2( uint32_t I2cMode );
uint8_t I2C_WriteNByte(uint8_t sla, uint8_t suba_type, uint32_t suba, uint8_t *s, uint32_t num ,LPC_I2C_TypeDef *LPC_I2Cx); //通用的I2C写函数
uint8_t I2C_ReadNByte (uint8_t sla, uint8_t suba_type, uint32_t suba, uint8_t *s, uint32_t num ,LPC_I2C_TypeDef *LPC_I2Cx); //通用的I2C读函数(extern void I2C0_IRQHandler( void );
extern void I2C1_IRQHandler( void );
extern void I2C2_IRQHandler( void );
extern void My_I2C_IRQHandler(LPC_I2C_TypeDef *LPC_I2Cx);
extern uint32_t I2CInit_0( uint32_t I2cMode ,int SpeedMode) ;
extern uint32_t I2CInit_1( uint32_t I2cMode );
extern uint32_t I2CInit_2( uint32_t I2cMode );
uint8_t I2C_WriteNByte(uint8_t sla, uint8_t suba_type, uint32_t suba, uint8_t *s, uint32_t num ,LPC_I2C_TypeDef *LPC_I2Cx);
uint8_t I2C_ReadNByte (uint8_t sla, uint8_t suba_type, uint32_t suba, uint8_t *s, uint32_t num ,LPC_I2C_TypeDef *LPC_I2Cx);)
extern void I2C1_IRQHandler( void );
extern void I2C2_IRQHandler( void );
extern void My_I2C_IRQHandler(LPC_I2C_TypeDef *LPC_I2Cx); // 通用的函数
extern uint32_t I2CInit_0( uint32_t I2cMode ,int SpeedMode) ;//I2C0支持快速模式和标准模式
extern uint32_t I2CInit_1( uint32_t I2cMode );
extern uint32_t I2CInit_2( uint32_t I2cMode );
uint8_t I2C_WriteNByte(uint8_t sla, uint8_t suba_type, uint32_t suba, uint8_t *s, uint32_t num ,LPC_I2C_TypeDef *LPC_I2Cx); //通用的I2C写函数
uint8_t I2C_ReadNByte (uint8_t sla, uint8_t suba_type, uint32_t suba, uint8_t *s, uint32_t num ,LPC_I2C_TypeDef *LPC_I2Cx); //通用的I2C读函数(extern void I2C0_IRQHandler( void );
extern void I2C1_IRQHandler( void );
extern void I2C2_IRQHandler( void );
extern void My_I2C_IRQHandler(LPC_I2C_TypeDef *LPC_I2Cx);
extern uint32_t I2CInit_0( uint32_t I2cMode ,int SpeedMode) ;
extern uint32_t I2CInit_1( uint32_t I2cMode );
extern uint32_t I2CInit_2( uint32_t I2cMode );
uint8_t I2C_WriteNByte(uint8_t sla, uint8_t suba_type, uint32_t suba, uint8_t *s, uint32_t num ,LPC_I2C_TypeDef *LPC_I2Cx);
uint8_t I2C_ReadNByte (uint8_t sla, uint8_t suba_type, uint32_t suba, uint8_t *s, uint32_t num ,LPC_I2C_TypeDef *LPC_I2Cx);)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
文件名 | 大小 | 更新时间 |
---|---|---|
iic\i2c.c | 15624 | 2017-03-13 |
iic\i2c.h | 1707 | 2017-03-13 |
iic |