IBASE IBD185 User Manual
Page 16

16 IBD185 User Guide
I2C Bus Enable
Enable/Disable the specific I2C bus master on MCU.
Sub Command Request
Sub Command
Length
Sub Command
Code
Sub Command
Data
size of the
I2cApiBusEnabled
structure
I2CAPI_BUS_ENABLE I2cApiBusEnabled structure
Sub Command Reply
Sub Command
Length
Sub Command
Code
Sub Command
Data
size of the
I2cApiBusEnabled
structure +1
I2CAPI_BUS_ENABLE I2cApiBusEnabled 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.
I2cApiBusEnabled Structure
Field Type
Description
Bus ID
byte
Designate which I2C bus on MCU
1 – 1st I2C bus master
2 – 2nd I2C bus master
Bus Enabled
byte
I2C bus enabled
0: Disable
1: Enable