VIRTUTECH CONFIDENTIAL    Previous - Up - Next

sample-i2c-device

Provided by
sample-i2c-device
Class Hierarchy
conf-objectlog-objectsample-i2c-device
Interfaces Implemented
log_object
Description
The is the sample-i2c-device class which is an example of how i2c devices can be written in Simics.

Attributes

Attributes inherited from class conf-object
attributes, classname, component, iface, name, object_id, queue
Attributes inherited from class log-object
access_count, log_buffer, log_buffer_last, log_buffer_size, log_group_mask, log_groups, log_level, log_type_mask
Attribute List
address
Required attribute; read/write access; type: Integer.

Address on the i2c bus.

i2c_bus
Required attribute; read/write access; type: unknown type.

The i2c bus connected this device is connected to

i2c_device_state
Optional attribute; read/write access; type: [iiii].

List representing data state in the device

read_value
Optional attribute; read/write access; type: Integer.

Value to return on reads.

written_value
Optional attribute; read/write access; type: Integer.

Last byte written to this device.

Command List

Commands defined by interface log_object
log, log-group, log-level, log-size, log-type

VIRTUTECH CONFIDENTIAL    Previous - Up - Next