VIRTUTECH CONFIDENTIAL    Previous - Up - Next

i2c-bus

Provided by
i2c-bus
Class Hierarchy
conf-objectlog-objecti2c-bus
Interfaces Implemented
log_object
Ports
SDA (signal), SCL (signal)
Description
The i2c-bus class implements the functionality of an I2C bus, to which several I2C devices can connect.

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
current_slave
Optional attribute; read/write access; type: Object or Nil.

The slave of the currently ongoing transaction, if any.

current_state
Optional attribute; read/write access; type: unknown type.

The current state of the bus, where 0 is idle, 1 is master transmit, 2 is master receive, 3 is slave transmit, and 4 is slave receive.

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

List representing data state in the device

i2c_devices
Pseudo attribute; read-only access; type: [[si]*].

Contains a list of the devices connected to the bus. Each list entry is a list of (device, address) for each address that has a device connected. Devices connect themselves using the i2c-bus interface.

sda_target
Optional attribute; read/write access; type: n|o|[os].

Describes where the outgoing SDA signal should be connected

Command List

Commands defined by interface log_object
log, log-group, log-level, log-size, log-type
Commands
infoprint information about the device
statusprint status of the device

Command Descriptions

<i2c-bus>.info
Synopsis
<i2c-bus>.info
Description
Print detailed information about the configuration of the device.
<i2c-bus>.status
Synopsis
<i2c-bus>.status
Description
Print detailed information about the current status of the device.

VIRTUTECH CONFIDENTIAL    Previous - Up - Next