MINI51DE_BSP V3.02.004
The Board Support Package for Mini51DE Series MCU
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/*---------------------------------------------------------------------------------------------------------*/
21int32_t I2C_SW_Open(uint32_t u32BusClock);
22int32_t I2C_SW_Send(uint8_t u8Address, uint8_t* p8Data, uint32_t u32ByteSize);
23int32_t I2C_SW_Get(uint8_t u8Address, uint8_t* p8Data, uint32_t u32ByteSize);
24#endif
25
Mini51 series peripheral access layer header file. This file contains all the peripheral register's d...
int32_t I2C_SW_Open(uint32_t u32BusClock)
Prepare to start software I2C.
int32_t I2C_SW_Send(uint8_t u8Address, uint8_t *p8Data, uint32_t u32ByteSize)
Send data.
int32_t I2C_SW_Get(uint8_t u8Address, uint8_t *p8Data, uint32_t u32ByteSize)
Read data.