uds.diagnostic_configuration.state

Implementation for diagnostic communication state.

Classes

State

States relevant for diagnostic communication.

Module Contents

class uds.diagnostic_configuration.state.State(name, possible_values)[source]

States relevant for diagnostic communication.

Typical states: - diagnostic session - unlocked Security Access level - Authentication status - vehicle speed - engine status (ON/OFF)

Define a state.

Parameters:
  • name (str) – Name of the state.

  • possible_values (Collection[Any]) – All potential values that can be assigned to a state.

property name: str

Get state name.

Return type:

str

property possible_values: FrozenSet[Any]

Get set with all values that can be assigned to this state.

Return type:

FrozenSet[Any]

__current_value: Any | None = None
property current_value: Any | None

Get currently assigned value.

Return type:

Optional[Any]