Module zio :: Class Motherboard

Class Motherboard

object --+    
         |    
    Module --+
             |
            Motherboard

Motherboard class is used to perform operations that are global to all modules in the interface board.
Instance Methods
 
__init__(self, agent)
Construct a Motherboard object.
int
get_module_count(self, cls)
Returns the no.
int
get_protocol_version(self)
Returns the protocol version used by the firmware.
int
get_firmware_version(self)
Returns the version of the firmware available on the motherboard.
string
get_serial_no(self)
Returns the unique product serial no.

Inherited from Module: do_op

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties

Inherited from object: __class__

Method Details

__init__(self, agent)
(Constructor)

 
Construct a Motherboard object.
Parameters:
  • agent - the agent interface object
Raises:
  • ProtocolError - If communication with agent fails or if data sent or received is corrupted
Overrides: object.__init__

get_module_count(self, cls)

 
Returns the no. of modules of a particular type. The module is identified by the class.
Parameters:
  • cls (class) - the class corresponding to the module
Returns: int
the no. of modules

get_protocol_version(self)

 
Returns the protocol version used by the firmware.
Returns: int
the protocol version

get_firmware_version(self)

 
Returns the version of the firmware available on the motherboard.
Returns: int
the firmware version

get_serial_no(self)

 
Returns the unique product serial no. of the motherboard.
Returns: string
the product serial no.