Ethernet Channel Module

class mtf.network_port.channels.ethernet_channel.EthBusTransmitter

Manages data transmission over an Ethernet bus.

__init__(channel_name: str) None
class mtf.network_port.channels.ethernet_channel.ProtocolListeners

Centralizes the creation and access to the various listeners needed to monitor and manage different protocols and services on a specific network channel

__init__(channel_name: str)
property arp_listener: ArpListener

Creates an instance of ArpListener Return:

ArpListener

property dhcp_listener: DhcpListener

Creates an instance of DhcpListener Return:

DhcpListener

property igmp_listener: IgmpListener

Creates an instance of IgmpListener Return:

IgmpListener

property nm_listener: EthNmController

Creates an instance of EthNmController Return:

EthNmController

property ptp_listener: PtpListener

Creates an instance of PtpListener Return:

PtpListener

property someip_listener: SomeipListener

Creates an instance of SomeipListener Return:

SomeipListener

property doip_listener: DoipListener

Creates an instance of DoipListener Return:

DoipListener

property someip_sd_listener: SomeipSDWatcher

Creates an instance of SomeipSDWatcher Return:

SomeipSDWatcher

property eth_listener: EthBusListener

Creates an instance of EthBusListener Return:

EthBusListener

class mtf.network_port.channels.ethernet_channel.EthernetChannel

EthernetChannel is a subclass of Channel, and it is specific to the Ethernet channel

__init__(channel_name: str)

Initializes a CanChannel instance with the given channel_name.

Args:

channel_name (str): The name of the channel.

property listener: EthBusListener

Creates an instance of EthBusListener Return:

EthBusListener

property transmitter: EthBusTransmitter

Creates an instance of EthBusTransmitter Return:

EthBusTransmitter

property protocol_listeners: ProtocolListeners

Creates an instance of ProtocolListeners Return:

ProtocolListeners

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.