WB32L003 Standard Peripherals Firmware Library

drv_iic_soft.h
1 #ifndef __DRV_IIC_SOFT_H__
2 #define __DRV_IIC_SOFT_H__
3
4 /* Includes ------------------------------------------------------------------*/
5 #include "wb32l003.h"
6
7 void IIC_Init(void);
8 void IIC_Start(void);
9 void IIC_Stop(void);
10 void IIC_Ack(void);
11 void IIC_NAck(void);
12 uint8_t IIC_WaitAck(void);
13 void IIC_SendByte(uint8_t data);
14 uint8_t IIC_ReadByte(void);
15 uint8_t IIC_CheckDevice(uint8_t address);
16
17 #define IIC_WR 0 /* 写控制bit */
18 #define IIC_RD 1 /* 读控制bit */
19
20 #endif /* __DRV_IIC_SOFT_H__ */