31 lines
769 B
C
31 lines
769 B
C
|
/*
|
|||
|
*********************************************************************************************************
|
|||
|
*
|
|||
|
* ģ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : I2C<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģ<EFBFBD><EFBFBD>
|
|||
|
* <EFBFBD>ļ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : bsp_i2c_gpio.h
|
|||
|
* <EFBFBD><EFBFBD> <EFBFBD><EFBFBD> : V1.0
|
|||
|
* ˵ <EFBFBD><EFBFBD> : ͷ<EFBFBD>ļ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
*
|
|||
|
* Copyright (C), 2012-2013, <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> www.armfly.com
|
|||
|
*
|
|||
|
*********************************************************************************************************
|
|||
|
*/
|
|||
|
|
|||
|
#ifndef _BSP_I2C_GPIO_H
|
|||
|
#define _BSP_I2C_GPIO_H
|
|||
|
#include "stm32f10x.h"
|
|||
|
#define I2C_WR 0 /* д<><D0B4><EFBFBD><EFBFBD>bit */
|
|||
|
#define I2C_RD 1 /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>bit */
|
|||
|
|
|||
|
void bsp_InitI2C(void);
|
|||
|
void IIC_Start(void);
|
|||
|
void IIC_Stop(void);
|
|||
|
void IIC_Send_Byte(uint8_t _ucByte);
|
|||
|
u8 IIC_Read_Byte(unsigned char ack);
|
|||
|
uint8_t IIC_Wait_Ack(void);
|
|||
|
void IIC_Ack(void);
|
|||
|
void IIC_NAck(void);
|
|||
|
// u8 AD1015_Check(u8 i2cAddress);
|
|||
|
|
|||
|
#endif
|