| 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
I2C_SW_Open
int32_t I2C_SW_Open(uint32_t u32BusClock)
Prepare to start software I2C.
Definition: i2c_software_gpio.c:27
Mini51Series.h
Mini51 series peripheral access layer header file. This file contains all the peripheral register's d...
I2C_SW_Get
int32_t I2C_SW_Get(uint8_t u8Address, uint8_t *p8Data, uint32_t u32ByteSize)
Read data.
Definition: i2c_software_gpio.c:145
I2C_SW_Send
int32_t I2C_SW_Send(uint8_t u8Address, uint8_t *p8Data, uint32_t u32ByteSize)
Send data.
Definition: i2c_software_gpio.c:76