uds.packet.can_packet_type
CAN packet types definitions.
Module Contents
Classes
Definition of CAN packet types. |
- class uds.packet.can_packet_type.CanPacketType[source]
Bases:
uds.packet.abstract_packet_type.AbstractUdsPacketType
Definition of CAN packet types.
CAN packet types are Network Protocol Control Information (N_PCI) values that are specific for CAN bus.
Initialize self. See help(type(self)) for accurate signature.
- SINGLE_FRAME: CanPacketType
CAN packet type (N_PCI) value of Single Frame (SF).
- FIRST_FRAME: CanPacketType
CAN packet type (N_PCI) value of First Frame (FF) <knowledge-base-can-first-frame>`.
- CONSECUTIVE_FRAME: CanPacketType
CAN packet type (N_PCI) value of Consecutive Frame (CF).
- FLOW_CONTROL: CanPacketType
CAN packet type (N_PCI) value of Flow Control (FC).
- classmethod is_initial_packet_type(value)[source]
Check whether given argument is a CAN packet type that initiates a diagnostic message.
- Parameters:
value (CanPacketType) – Value to check.
- Returns:
True if given argument is a packet type that initiates a diagnostic message, else False.
- Return type:
bool