IBASE IBD185 User Manual

Page 23

Advertising
background image

IBD185 User Guide

23

I2C Bus Reset

Reset the specific I2C bus master on MCU.

Sub Command Request

Sub Command

Length

Sub Command

Code

Sub Command

Data

size of the

I2cApiBusReset

structure

I2CAPI_BUS_RESET I2cApiBusReset

structure

Sub Command Reply

Sub Command

Length

Sub Command

Code

Sub Command

Data

size of the

I2cApiBusReset

structure +1

I2CAPI_BUS_RESET I2cApiBusReset

structure

followed by one byte

I2cApiResult

The reply packet contains the parameters that device received and

followed by one byte of result.

I2cApiResult = 0 means the execution result is fail.

I2cApiBusReset Structure

Field Type

Description

Bus ID

byte

Designate which I2C bus on MCU

1 – 1st I2C bus master

2 – 2nd I2C bus master

Flag

byte

Flag for reset I2C bus

0: Re-Config I2C bus (default)

1: Reset I2C bus (reserved)

Advertising