| MINI51DE_BSP V3.02.003 The Board Support Package for Mini51DE Series MCU

Functions
i2c_software_gpio.h File Reference

This is the header file of i2c_software_gpio.c. More...

`#include "Mini51Series.h"`
Include dependency graph for i2c_software_gpio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Functions
int32_t | I2C_SW_Open (uint32_t u32BusClock)
| Prepare to start software I2C. More...
int32_t | I2C_SW_Send (uint8_t u8Address, uint8_t *p8Data, uint32_t u32ByteSize)
| Send data. More...
int32_t | I2C_SW_Get (uint8_t u8Address, uint8_t *p8Data, uint32_t u32ByteSize)
| Read data. More...

## Detailed Description

This is the header file of i2c_software_gpio.c.

Version
  V0.10

Revision
  3

Date
  13/09/30 6:48p

Note
  SPDX-License-Identifier: Apache-2.0 Copyright (C) 2013 Nuvoton Technology Corp. All rights reserved.

Definition in file i2c_software_gpio.h.

## Function Documentation

## ◆ I2C_SW_Get()

int32_t I2C_SW_Get | ( | uint8_t | u8Address,
|  | uint8_t * | p8Data,
|  | uint32_t | u32ByteSize
| ) |  |

Read data.

Parameters

  u8Address | I2C slave address
  p8Data | data address
  u32ByteSize | data length

Returns
  data length

Definition at line 145 of file i2c_software_gpio.c.

Here is the call graph for this function:

## ◆ I2C_SW_Open()

int32_t I2C_SW_Open | ( | uint32_t | u32BusClock | ) |

Prepare to start software I2C.

Parameters

  u32BusClock | I2C Bus Clock (Hz)

Return values

  0 | Success

Definition at line 27 of file i2c_software_gpio.c.

Here is the call graph for this function:

## ◆ I2C_SW_Send()

int32_t I2C_SW_Send | ( | uint8_t | u8Address,
|  | uint8_t * | p8Data,
|  | uint32_t | u32ByteSize
| ) |  |

Send data.

Parameters

  u8Address | I2C slave address
  p8Data | data address
  u32ByteSize | data length

Returns
  data length

Definition at line 76 of file i2c_software_gpio.c.

Here is the call graph for this function: