i2c_link_v1 i2c_to_i3c_adapter
Simics Reference Manual  /  5 Classes  / 

i2c_slave_v2_to_bus_adapter

Description

The i2c_slave_v2_to_bus_adapter class makes it possible to connect an I2C slave device, implementing i2c_slave_v2 interface, directly to a legacy i2c-bus object. The slave device must send all responses synchronously, i.e., before a start(), write() or read() call in the i2c_slave_v2 interface has returned, the slave it must have called the corresponding acknowledge() or read_response() method. The adapter can be used on a single-master bus where the master device has not yet been upgraded to the new i2c_master_v2/i2c_slave_v2 interfaces, but one of the slave devices has.

Interfaces Implemented

conf_object, log_object, i2c_device, i2c_master_v2

Notifiers

cell-change
Notifier that is triggered after the object's cell was changed.
object-delete
Notifier that is triggered just before Simics object is deleted.
queue-change
Notifier that is triggered after the object's clock was changed. New clock can be obtained with the SIM_object_clock function.

Commands for this class

Attributes

i2c_bus
Required attribute; read/write access; type: o|[os]
I2C bus to connect to.

Required interfaces: i2c_bus.

i2c_slave
Required attribute; read/write access; type: o|[os]
Simple I2C slave device connected with.

Required interfaces: i2c_slave_v2.

Provided By

i2c-bus
i2c_link_v1 i2c_to_i3c_adapter