Lin Channel Module

class mtf.network_port.channels.lin_channel.LinChannel
__init__(channel_name: str)

Initializes a CanChannel instance with the given channel_name.

Args:

channel_name (str): The name of the channel.

property listener: LinBusListener
get_frame(frame_id: str) LinFrame

Retrieves a LinFrame object associated with the given frame_id.

Args:

frame_id: The ID of the frame.

Returns:

LinFrame: The LinFrame object associated with the frame_id.

wake_up() bool

Wakes up the LIN bus on the associated channel.

Returns:

bool: True if the LIN 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.