Configuration Reference

Normative

The configuration items a conformant LIN driver MUST support (CHI-LIN-MUST-19). The configuration toolchain, data structure, and file schema are implementation-defined; vendor extensions are allowed. For a worked example see Configuration. The model follows the common configuration structure in the General part.

General
General options

Property

Type

Description

enable_development_error_reporting

bool

If true, development error checking and reporting is enabled (see Errors).

Configuration set and channel
ConfigSet

Property

Type

Description

config_set_name

str

Name of the configuration set; must be a valid C identifier.

channel

List[Channel]

Per-channel configurations. Size ≥ 1; maximum is implementation-defined.

Channel

Property

Type

Description

channel_id

int

Logical channel id. Starts at 0, unique within a ConfigSet.

hw_channel

impl-defined

Hardware channel assigned to this logical channel (typically an integer or HW enum).

clock_divider

int

LIN hardware clock divider; derives bit timing from the input clock. Range ≥ 1 (maximum implementation-defined).

event_handling_mode

EventHandlingMode

Interrupt or Polling. In Polling mode events are serviced by Lin_PollFunction.

enable_wakeup_detection

bool

If true, the driver detects wakeup pulses while the channel is asleep.

Note

A LIN responder has no baudrate, frame, or schedule-table configuration: timing is derived from clock_divider and the driver adapts to each received header at runtime.