LinTransmitter

class mtf.network_port.bus_transmitter.LinTransmitter

Manage data transmission specifically on a LIN bus

transmitter = <mtf.libs.mtf_pybinder.mtf_lin_transmitter object>
classmethod transmit_frame(channel_name: str, frame_id: int, payload: List)

Transmits a LIN frame on the specified channel Args:

channel_name (str): The name of the LIN channel to transmit the frame on frame_id (int): The ID of the LIN frame to transmit payload (FramePayload): The payload of the CAN frame to transmit

Returns:

bool: True if succeeded

classmethod wake_up_lin_bus(channel_name: str)

Wakes up the LIN bus on the associated channel (Async Wake up sending). args:

channel_name (str)

Returns:

bool: True if the LIN bus wakes up successfully, False otherwise.

classmethod get_state(channel_name: str)

get the LIN bus state on the associated channel. args:

channel_name (str)

Returns:
EnumInit :

Operational : node is awake Sleep : node in sleep mode