Fr Tp Utils Module

class mtf.network_port.iso_tp.custom_fr_tp.fr_tp_utils.FrTpFieldSize

A utility class defining field sizes for various components of a FlexRayTP message

TGT_ADDR
SRC_ADDR
ADDR_INFO
FPL
MESSAGE_LEN
PCI_TYPE
BC
BFS
ACKNOWLEDGE
BYTE_POSITION
class mtf.network_port.iso_tp.custom_fr_tp.fr_tp_utils.SfLfOffsets

A utility class defining byte offsets for fields in a Single Frame or Last Frame of a FlexRayTP message.

TARGET_ADDRESS
SOURCE_ADDRESS
PCI
FRAME_PAYLOAD_LENGTH
MESSAGE_LENGTH
PAYLOAD
class mtf.network_port.iso_tp.custom_fr_tp.fr_tp_utils.CfOffsets

A utility class defining byte offsets for fields in a Consecutive Frame of a FlexRayTp message.

TARGET_ADDRESS
SOURCE_ADDRESS
PCI
FRAME_PAYLOAD_LENGTH
PAYLOAD
class mtf.network_port.iso_tp.custom_fr_tp.fr_tp_utils.FCOffsets

A utility class defining byte offsets for fields in a Flow Control frame in the FlexRayTp.

TARGET_ADDRESS
SOURCE_ADDRESS
PCI
BANDWIDTH_CONTROL
BUFFER_SIZE
ACKNOWLEDGE
BYTE_POSITION
class mtf.network_port.iso_tp.custom_fr_tp.fr_tp_utils.FrPciType

Enum class representing Protocol Control Information types for FlexRayTp frames.

START_FRAME
CONSECUTIVE_FRAME_1
CONSECUTIVE_FRAME_2
CONSECUTIVE_FRAME_EOB
FLOW_CONTROL
LAST_FRAME
UNKNOWN
class mtf.network_port.iso_tp.custom_fr_tp.fr_tp_utils.FrFlowStatus

Enum class representing flow control statuses for FlexRayTp frames.

CTS
ACK_RET
WT
ABT
OVFLW
UNKNOWN
classmethod get_flow_status(value) FrFlowStatus

Returns the corresponding flow status for the given integer value.

Args:

value (int): The integer value representing a flow status.

Returns:

FrFlowStatus: The corresponding flow status, or UNKNOWN if the value is not valid.

class mtf.network_port.iso_tp.custom_fr_tp.fr_tp_utils.SfAckValues

A class representing the acknowledgment values for FlexRayTp frames.

UNACKNOWLEDGED
ACKNOWLEDGED