Lin Services Module

class mtf.network_port.lin_services.LinRequest

Represents a request in a LIN network

__init__(service, data, timestamp)
get_payload()

Builds a representation of the request data as a list

classmethod from_payload(payload, timestamp=None)

Allows creating an instance of LinRequest from a payload

Args:

payload (list[int]): The payload containing event data timestamp (float, optional): The timestamp of the event

Returns:

LinRequest: The instance of the LinRequest class

class mtf.network_port.lin_services.LinResponse

Manage responses in the LIN protocol

__init__(service, code=0, data=None)
get_payload()

Builds and returns a representation of the request data as a list

Return:

list

get_payload_negative_response()

Retrieve the negative response from the payload Return:

list

classmethod from_payload(payload)

Allows creating an instance of LinResponse from a payload

Args:

payload (list[int]): The payload containing event data

Return:

LinResponse: The instance of the LinResponse class

class mtf.network_port.lin_services.BaseLinService

Base class for various LIN services

classmethod get_sid()

Access the LIN service identifier

classmethod get_name()

Access the LIN service name Return:

str

class mtf.network_port.lin_services.AssignNad

Specifies a particular LIN service with its own Service Identifier and a service name

classmethod make_request() LinRequest
classmethod interpret_response() LinResponse
classmethod get_name()

Access the LIN service name Return:

str

classmethod get_sid()

Access the LIN service identifier

class mtf.network_port.lin_services.ReadByIdentifier

Read information based on an identifier

classmethod make_request() LinRequest
classmethod interpret_response() LinResponse
classmethod get_name()

Access the LIN service name Return:

str

classmethod get_sid()

Access the LIN service identifier

class mtf.network_port.lin_services.ConditionalChangeNad

Manage a specific LIN service

classmethod make_request() LinRequest
classmethod interpret_response() LinResponse
classmethod get_name()

Access the LIN service name Return:

str

classmethod get_sid()

Access the LIN service identifier

class mtf.network_port.lin_services.DataDump

Manage a specific LIN service

classmethod make_request() LinRequest
classmethod interpret_response() LinResponse
classmethod get_name()

Access the LIN service name Return:

str

classmethod get_sid()

Access the LIN service identifier

class mtf.network_port.lin_services.AssignNadViaSnpd

Manage a specific LIN service

classmethod make_request() LinRequest
classmethod interpret_response() LinResponse
classmethod get_name()

Access the LIN service name Return:

str

classmethod get_sid()

Access the LIN service identifier

class mtf.network_port.lin_services.SaveConfiguration

Manage a specific LIN service

classmethod make_request() LinRequest
classmethod interpret_response() LinResponse
classmethod get_name()

Access the LIN service name Return:

str

classmethod get_sid()

Access the LIN service identifier

class mtf.network_port.lin_services.AssignFrameIdentifierRange

Manage a specific LIN service

classmethod get_name()

Access the LIN service name Return:

str

classmethod get_sid()

Access the LIN service identifier

classmethod make_request() LinRequest
classmethod interpret_response() LinResponse