simple_directory simple_pcie_device
Simics Reference Manual  /  5 Classes  / 

simple_i2c_device

Description

Simple I2C slave device implementing both i2c_bus and i2c_slave_v2 interfaces. It can be used for testing.

Interfaces Implemented

conf_object, log_object, i2c_device, i2c_slave_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

address
Required attribute; read/write access; type: i
Address on the i2c bus.
read_value
Optional attribute; read/write access; type: i
Value to return on reads.
written_value
Optional attribute; read/write access; type: i
Last byte written to this device.

Provided By

simple-i2c-device
simple_directory simple_pcie_device