hvl_ccb.dev.sst_luminox.dev
- class Luminox(com, dev_config=None)[source]
Bases:
SingleCommDeviceLuminox oxygen sensor device class.
- static config_cls()[source]
Return the default configdataclass class.
- Returns:
a reference to the default configdataclass class
- static default_com_cls()[source]
Get the class for the default communication protocol used with this device.
- Returns:
the type of the standard communication protocol for this device
- property mode: LuminoxOutputMode | None
Sends command to sensor to request the current mode then calls _update_mode() to update private variable _mode.
- Returns:
Current mode read from _mode.
- class LuminoxConfig[source]
Bases:
objectConfiguration for the SST Luminox oxygen sensor.
- clean_values()
Cleans and enforces configuration values. Does nothing by default, but may be overridden to add custom configuration value checks.
- force_value(fieldname, value)
Forces a value to a dataclass field despite the class being frozen.
NOTE: you can define post_force_value method with same signature as this method to do extra processing after value has been forced on fieldname.
- Parameters:
fieldname – name of the field
value – value to assign
- is_configdataclass = True
- classmethod keys() Sequence[str]
Returns a list of all configdataclass fields key-names.
- Returns:
a list of strings containing all keys.
- classmethod optional_defaults() dict[str, object]
Returns a list of all configdataclass fields, that have a default value assigned and may be optionally specified on instantiation.
- Returns:
a list of strings containing all optional keys.
- classmethod required_keys() Sequence[str]
Returns a list of all configdataclass fields, that have no default value assigned and need to be specified on instantiation.
- Returns:
a list of strings containing all required keys.
- exception LuminoxError[source]
Bases:
DeviceErrorGeneral Error for Luminox Device.
- exception LuminoxMeasurementTypeError[source]
Bases:
LuminoxErrorWrong measurement type for requested data.
- exception LuminoxOutputModeError[source]
Bases:
LuminoxErrorWrong output mode for requested data.