sgr_commhandler.driver.generic.generic_interface_async
Provides the generic interface implementation.
Attributes
Classes
Implements a data point of a generic interface. |
|
Implements a functional profile of a generic interface. |
|
SmartGridready External Interface Class for Generic Protocols |
Functions
|
Builds a data point of a generic interface. |
Module Contents
- sgr_commhandler.driver.generic.generic_interface_async.logger
- sgr_commhandler.driver.generic.generic_interface_async.build_generic_data_point(data_point, functional_profile, interface)
Builds a data point of a generic interface.
- Parameters:
data_point (sgr_specification.v0.generic.DataPointBase)
functional_profile (sgr_specification.v0.product.GenericFunctionalProfile)
interface (SGrGenericInterface)
- Return type:
- class sgr_commhandler.driver.generic.generic_interface_async.GenericDataPoint(dp_spec, fp_spec, interface)
Bases:
sgr_commhandler.api.data_point_api.DataPointProtocol[sgr_specification.v0.product.GenericFunctionalProfile,sgr_specification.v0.generic.DataPointBase]Implements a data point of a generic interface.
- Parameters:
dp_spec (sgr_specification.v0.generic.DataPointBase)
fp_spec (sgr_specification.v0.product.GenericFunctionalProfile)
interface (SGrGenericInterface)
- _fp_name = ''
- _dp_name = ''
- _interface
- async get_val(parameters=None, skip_cache=False)
- Parameters:
parameters (Optional[dict[str, str]])
skip_cache (bool)
- Return type:
Any
- async set_val(value)
- Parameters:
value (Any)
- class sgr_commhandler.driver.generic.generic_interface_async.GenericFunctionalProfile(fp_spec, interface)
Bases:
sgr_commhandler.api.functional_profile_api.FunctionalProfile[sgr_specification.v0.product.GenericFunctionalProfile]Implements a functional profile of a generic interface.
- Parameters:
fp_spec (sgr_specification.v0.product.GenericFunctionalProfile)
interface (SGrGenericInterface)
- _interface
- _data_points
- name()
- Return type:
str
- get_data_points()
- Return type:
dict[tuple[str, str], sgr_commhandler.api.data_point_api.DataPoint]
- get_specification()
- Return type:
sgr_specification.v0.product.GenericFunctionalProfile
- class sgr_commhandler.driver.generic.generic_interface_async.SGrGenericInterface(frame)
Bases:
sgr_commhandler.api.device_api.SGrBaseInterfaceSmartGridready External Interface Class for Generic Protocols Actually has no communication protocol, just generic data
- Parameters:
frame (sgr_specification.v0.product.DeviceFrame)
- functional_profiles
- is_connected()
- async disconnect_async()
- async connect_async()