uds.addressing.abstract_addressing_information
Definition of UDS Addressing Information for storing Client/Server Addresses.
Classes
Storage for addressing related parameters for any UDS entity. |
Module Contents
- class uds.addressing.abstract_addressing_information.AbstractAddressingInformation(rx_physical_params, tx_physical_params, rx_functional_params, tx_functional_params)[source]
Bases:
abc.ABC
Storage for addressing related parameters for any UDS entity.
Configure Addresses of UDS Entity (either a server or a client).
- Parameters:
rx_physical_params (Mapping[str, Any]) – Addressing parameters for incoming physically addressed communication.
tx_physical_params (Mapping[str, Any]) – Addressing parameters for outgoing physically addressed communication.
rx_functional_params (Mapping[str, Any]) – Addressing parameters for incoming functionally addressed communication.
tx_functional_params (Mapping[str, Any]) – Addressing parameters for outgoing functionally addressed communication.
- ADDRESSING_TYPE_NAME: str = 'addressing_type'
Name of Addressing Type parameter in Addressing Information.
- property rx_physical_params: Mapping[str, Any]
Get addressing parameters for incoming physically addressed communication.
- Return type:
Mapping[str, Any]
- property tx_physical_params: Mapping[str, Any]
Get addressing parameters for outgoing physically addressed communication.
- Return type:
Mapping[str, Any]
- property rx_functional_params: Mapping[str, Any]
Get addressing parameters for incoming functionally addressed communication.
- Return type:
Mapping[str, Any]
- property tx_functional_params: Mapping[str, Any]
Get addressing parameters for outgoing functionally addressed communication.
- Return type:
Mapping[str, Any]
- __eq__(other)[source]
Compare with other object.
- Parameters:
other (Any) – Object to compare.
- Returns:
True if other object has the same type and carries the same Addressing Information, otherwise False.
- Return type:
- abstractmethod _validate_addressing_information()[source]
Check whether the provided addressing information are valid.
- Return type:
None
- abstractmethod validate_addressing_params(**addressing_params)[source]
Check whether the provided parameters are complete and correct.
- Parameters:
addressing_params (Any)
- Return type:
Dict[str, Any]
- abstractmethod is_input_packet(**frame_attributes)[source]
Check if a frame with provided attributes is an input packet for this UDS Entity.
- Parameters:
frame_attributes (Any) – Attributes of a frame to be checked.
- Returns:
Addressing Type used for transmission of this packet, None otherwise.
- Return type: