Fr Pdu Generator Module
- class mtf.network_port.iso_tp.custom_fr_tp.fr_pdu_generator.FrPduGenerator
- Generate PDUs for the FlexRay protocol - __init__(payload: List[int], config: IsoTpConfig) None
 - is_signle_frame()
- Compare the payload length with the maximum frame length - Returns:
- bool: Return True if the payload length is less than or equal to the maximum frame length otherwise, return False 
 
 - is_completed() bool
- Check if the PDU generation is complete - Returns:
- bool: If the message is complete, return True, otherwise, return False 
 
 - is_payload_written() bool
- Check if the entire payload has been processed - Returns:
- bool: Return True if _offset is greater than or equal to the total length of the payload
- otherwise, return False 
 
 
 - is_buffer_overflowed() bool
- Check if the buffer is full due to its size being zero - Returns:
- bool 
 
 - reset() None
- Reset the internal state of the FrPduGenerator object 
 - reset_buffer_size(buffer_size: int | None = None) None
- Reset or set the buffer size Args: - buffer_size (int) 
 - generate_single_frame() List[int]
- Generate a single frame from the payload data Return: - list of int