BaseFrame
- class mtf.network_port.iso_tp.custom_fr_tp.fr_tp_frames.BaseFrame
- working with frames - TGT_ADDR_OFFSET = 0
 - SRC_ADDR_OFFSET = 2
 - PCI_OFFSET = 4
 - __init__(source_address: int, target_address: int, pci_type: FrPciType) None
 - abstract to_payload() List[int]
- Returns:
- FramePayload: List[int] 
 
 - abstract from_payload(payload: List[int]) bool
- Args:
- payload (FramePayload): The payload to be sent 
- Returns:
- bool 
 
 - property address_information
- Create a list called payload initialized with zeros - Returns:
- list[int]: contains address information formatted in a specific way 
 
 - property source_address
- Provides read access to the _source_address attribute - Returns:
- int: source address 
 
 - property target_address
- Provides read access to the _target_address attribute - Returns:
- int: target address 
 
 - classmethod get_source_address(payload: List[int]) Tuple[bool, int]
- Extract a source address from a FramePayload - Args:
- payload (FramePayload): The payload to be sent 
- Returns:
- Tuple[bool, int]: bool: Indicates whether the extraction was successful or not
- int: The extracted source address (if the extraction is successful), otherwise 0 
 
 
 - classmethod get_target_address(payload: List[int]) Tuple[bool, int]
- Extract a target address from a FramePayload - Args:
- payload (FramePayload): The payload to be sent 
- Returns:
- Tuple[bool, int]: bool: Indicates whether the extraction was successful or not
- int: The extracted target address (if the extraction is successful), otherwise 0 
 
 
 - classmethod get_pci_type(payload: List[int])
- Extract and return the PCI type from a FramePayload - Args:
- payload (FramePayload): The payload to be sent 
- Returns:
- int: returns an integer representing the PCI type, or 0 if the extraction fails 
 
 - parse_address_information(payload: List[int]) bool
- Extract address information from a FramePayload and update the object’s attributes - Args:
- payload (FramePayload): The payload to be sent 
- Returns:
- bool: Returns True if all extraction and update operations were successful