Mini51 BSP  V3.02.002
The Board Support Package for Mini51 Series
i2c_software_gpio.h
Go to the documentation of this file.
1 /**************************************************************************/
13 #ifndef __I2C_SOFTWARE_GPIO_H__
14 #define __I2C_SOFTWARE_GPIO_H__
15 
16 #include "Mini51Series.h"
17 
18 /*---------------------------------------------------------------------------------------------------------*/
19 /* Define functions prototype */
20 /*---------------------------------------------------------------------------------------------------------*/
21 int32_t I2C_SW_Open(uint32_t u32BusClock);
22 int32_t I2C_SW_Send(uint8_t u8Address, uint8_t* p8Data, uint32_t u32ByteSize);
23 int32_t I2C_SW_Get(uint8_t u8Address, uint8_t* p8Data, uint32_t u32ByteSize);
24 #endif
25 
int32_t I2C_SW_Open(uint32_t u32BusClock)
Prepare to start software I2C.
Mini51 series peripheral access layer header file. This file contains all the peripheral register's d...
int32_t I2C_SW_Get(uint8_t u8Address, uint8_t *p8Data, uint32_t u32ByteSize)
Read data.
int32_t I2C_SW_Send(uint8_t u8Address, uint8_t *p8Data, uint32_t u32ByteSize)
Send data.