Feature

class mtf.diag_port.sfa.sfa_manager.Feature

ECU feature implementation.

This class contains all the information related with a feature retrieved from an ECU via discovery.

__init__(feature_bytes: str)

Create a new instance using the given feature.

Args:

feature_bytes (str): The ECU feature data.

Returns:

Feature: The newly created instance.

property id

Get the feature ID.

Returns:

int: The feature ID value.

property status

Get the feature status.

Returns:

int: The feature status.

property validation

Get the feature validation status.

Returns:

int: The feature validation status.

property token_list

Get the tokens list.

Returns:

list: The list of tokens.

property token_available

Get whether there are tokens available.

Returns:

bool: True if tokens are available, False otherwise.