uds.packet.abstract_packet_type

Common (abstract) implementation of UDS Packet Types.

Module Contents

Classes

AbstractUdsPacketType

Abstract definition of UDS packet type.

Attributes

AbstractUdsPacketTypeAlias

Alias that describes AbstractUdsPacketType member.

class uds.packet.abstract_packet_type.AbstractUdsPacketType[source]

Bases: uds.utilities.NibbleEnum, uds.utilities.ValidatedEnum, uds.utilities.ExtendableEnum

Inheritance diagram of uds.packet.abstract_packet_type.AbstractUdsPacketType

Abstract definition of UDS packet type.

Packet type information is carried by Network Protocol Control Information (N_PCI). Enums with packet types (N_PCI) values for certain buses (e.g. CAN, LIN, FlexRay) must inherit after this class.

Note

There are differences in values for each bus (e.g. LIN does not use Flow Control).

Initialize self. See help(type(self)) for accurate signature.

abstract classmethod is_initial_packet_type(cls, value)[source]

Check whether given argument is a member or a value of packet type that initiates a diagnostic message.

Parameters

value (Any) – Value to check.

Returns

True if given argument is a packet type that initiates a diagnostic message, else False.

Return type

bool

uds.packet.abstract_packet_type.AbstractUdsPacketTypeAlias

Alias that describes AbstractUdsPacketType member.