platform_driver.interfaces.fakedriver module

class platform_driver.interfaces.fakedriver.EKGregister(read_only, pointName, units, reg_type, default_value=None, description='')[source]

Bases: platform_driver.interfaces.BaseRegister

property value
class platform_driver.interfaces.fakedriver.FakeRegister(read_only, pointName, units, reg_type, default_value=None, description='')[source]

Bases: platform_driver.interfaces.BaseRegister

class platform_driver.interfaces.fakedriver.Interface(**kwargs)[source]

Bases: platform_driver.interfaces.BasicRevert, platform_driver.interfaces.BaseInterface

configure(config_dict, registry_config_str)[source]

Configures the Interface for the specific instance of a device.

Parameters
  • config_dict (dict) – The “driver_config” section of the driver configuration file.

  • registry_config_str (str) – The contents of the registry configuration file.

This method must setup register representations of all points on a device by creating instances of BaseRegister (or a subclass) and adding them to the Interface with BaseInterface.insert_register().

get_point(point_name)[source]

Get the current value for the point name given.

Parameters
  • point_name (str) – Name of the point to retrieve.

  • kwargs – Any interface specific parameters.

Returns

Point value

parse_config(configDict)[source]