Flexray Channel Module
- class mtf.network_port.channels.flexray_channel.FlexrayChannel
- __init__(channel_name: str)
Initializes a FlexrayChannel instance with the given channel_name.
- Args:
channel_name (str): The name of the channel.
- property listener: FlexrayBusListener
- get_frame(frame_id: str) FlexrayFrame
Retrieves a FlexrayFrame object associated with the given frame_id.
- Args:
frame_id: The ID of the frame.
- Returns:
FlexrayFrame: The FlexrayFrame object associated with the frame_id.
- activate_wake_up(do_wake_up: bool) bool
Activate wake up for a given channel args:
channel_name (str): The channel name do_wake_up (bool) Whether to wake up the FLEXRAY bus when the bus sleeps automatically
- Returns:
bool: True if the FLEXRAY bus wakes up successfully, False otherwise.
- static __new__(cls, channel_name: str, *args, **kwargs)
Overrides the __new__ method to ensure only one instance of Bus class is created for each channel_name.
- Args:
channel_name (str): The name of the channel.
- Returns:
Bus: The Channel instance associated with the channel_name.
- property channel_name: str
Retrieves the name of the channel.
- Returns:
str: The name of the channel.
- property channel_type: str
Retrieves the type of the channel.
- Returns:
str: The type of the channel.
- classmethod clear_registered_busses()
Clears the instances dictionary of registered channels.