LegacyFrame
- class mtf.libs.mtf_pybinder.LegacyFrame
- __init__(*args, **kwargs)
- __new__(**kwargs)
- check_cyclic_repetition(self: mtf.libs.mtf_pybinder.LegacyFrame, cycle: int, cycle_deviation: int, nb_repetition: int, check_latest_values: bool) bool
Check message cycle with repetition
- check_cyclic_timeout(self: mtf.libs.mtf_pybinder.LegacyFrame, cycle: int, cycle_deviation: int, timeout: int) bool
Check message cycle with timeout
- check_reception(self: mtf.libs.mtf_pybinder.LegacyFrame, is_received: bool) bool
Check message reception
- clear_buffer(self: mtf.libs.mtf_pybinder.LegacyFrame) None
Clear message buffer
- clear_history(self: mtf.libs.mtf_pybinder.LegacyFrame) None
Clear listener history
- static configure_buffer_size(max_size: int) None
Configure max size of frame buffer
- count_payload_byte_matches(self: mtf.libs.mtf_pybinder.LegacyFrame, bytes_indexes: list[int], bytes_values: list[int], bytes_masks: list[int]) int
count payload matched in message payload
- get_channel(self: mtf.libs.mtf_pybinder.LegacyFrame) mtf::pybinder::LegacyChannel
Get channel instance
- get_history(self: mtf.libs.mtf_pybinder.LegacyFrame) list[mtf.libs.mtf_pybinder.MtfDataFrameEvent]
Get listener history
- static get_instance(channel_name: str, frame_id: int | str | mtf.libs.mtf_pybinder.FrFrameIdParts) mtf.libs.mtf_pybinder.LegacyFrame
Get a frame instance
- static get_instances(channel_name: str, frame_name: str) list[mtf.libs.mtf_pybinder.LegacyFrame]
Get a list frame instances
- get_last_value(self: mtf.libs.mtf_pybinder.LegacyFrame) list[int]
Get last received value
- get_payload_byte(self: mtf.libs.mtf_pybinder.LegacyFrame, bytes_indexes: list[int], bytes_values: list[int], bytes_masks: list[int], operation: int) bool
Check bytes in message payload
- get_pdu_by_name(self: mtf.libs.mtf_pybinder.LegacyFrame, pdu_name: str) mtf.libs.mtf_pybinder.LegacyPdu
Get PDU instance by name
- get_pdus(self: mtf.libs.mtf_pybinder.LegacyFrame) list[mtf.libs.mtf_pybinder.LegacyPdu]
Get all PDU instances contained in the frame
- get_signal_by_name(self: mtf.libs.mtf_pybinder.LegacyFrame, signal_name: str) mtf.libs.mtf_pybinder.LegacySignal
Get Signal instance by name
- property id
Get frame id
- property name
Get frame name
- start_listening(self: mtf.libs.mtf_pybinder.LegacyFrame, callback: Optional[Callable[[mtf.libs.mtf_pybinder.MtfDataFrameEvent], None]] = None, direction: mtf.libs.mtf_pybinder.ListenerDirection = <ListenerDirection.Any: 2>, on_change: bool = False) bool
Start the data acquisition (by default the listener will start listening for all frames (Rx and Tx))
- start_observer(self: mtf.libs.mtf_pybinder.LegacyFrame, on_change: bool = True) bool
Start message observer
- start_transmission(self: mtf.libs.mtf_pybinder.LegacyFrame) bool
Start the frame transmission
- stop_listening(self: mtf.libs.mtf_pybinder.LegacyFrame) bool
Stop the data acquisition
- stop_observer(self: mtf.libs.mtf_pybinder.LegacyFrame, get_values: bool) list[tuple[int, list[int]]]
Stop message observer
- stop_transmission(self: mtf.libs.mtf_pybinder.LegacyFrame) bool
Stop the frame transmission