Detailed Description

LIN 2.1 is extended from in LIN 2.0 specification through diagnostic services and few functions were removed as obsolete.

  1. LIN 2.1 is compatible with LIN 2.0:

    • A LIN 2.1 master node may handle a LIN 2.0 slave node if the master node also contains all functionality of a LIN 2.0 master node, e.g. obsolete functions like Assign frame Id.
    • A LIN 2.1 slave node can be used in a cluster with a LIN 2.0 master node if the LIN 2.1 slave node is pre-configured, i.e. the LIN 2.1 slave node has a valid configuration after reset.

  2. Changes between LIN 2.0 and LIN 2.1:

    • LIN2.1 enhance the capacity of LIN2.0 on event-triggered frame collision handling and diagnostic services supported. Besides, several features are added to fulfill powerful capacity of LIN network such as configuration service, assign frame ID range configuration, etc.

Functions

void lin_collision_resolve (l_ifc_handle iii, l_u8 pid)
 Switch to collision resolve table. More...
 
void lin_update_word_status_lin21 (l_ifc_handle iii, lin_lld_event_id_t event_id)
 Update node status flags. More...
 
void lin_update_err_signal (l_ifc_handle iii, l_u8 frm_id)
 Update error signal. More...
 
void lin_make_res_evnt_frame (l_ifc_handle iii, l_u8 pid)
 This function packs signals associated with event trigger frame into buffer. More...
 
void lin_update_rx_evnt_frame (l_ifc_handle iii, l_u8 pid)
 The function updates the receive flags associated with signals/frames in case receive an event trigger frame. More...
 

Function Documentation

void lin_collision_resolve ( l_ifc_handle  iii,
l_u8  pid 
)

Switch to collision resolve table.

Parameters
[in]iiiInterface name
[in]pidPID to process
Returns
void

Definition at line 35 of file lin_lin21_proto.c.

void lin_make_res_evnt_frame ( l_ifc_handle  iii,
l_u8  pid 
)

This function packs signals associated with event trigger frame into buffer.

Parameters
[in]iiiInterface name
[in]pidPID to process
Returns
void

< Make unconditional frame

Definition at line 223 of file lin_lin21_proto.c.

void lin_update_err_signal ( l_ifc_handle  iii,
l_u8  frm_id 
)

Update error signal.

Parameters
[in]iiiInterface name
[in]frm_idFrame index
Returns
void

Definition at line 150 of file lin_lin21_proto.c.

void lin_update_rx_evnt_frame ( l_ifc_handle  iii,
l_u8  pid 
)

The function updates the receive flags associated with signals/frames in case receive an event trigger frame.

Parameters
[in]iiiInterface name
[in]pidPID to process
Returns
void

< Update unconditional frame

Definition at line 186 of file lin_lin21_proto.c.

void lin_update_word_status_lin21 ( l_ifc_handle  iii,
lin_lld_event_id_t  event_id 
)

Update node status flags.

Parameters
[in]iiiInterface name
[in]event_idEvent id
Returns
void

Definition at line 70 of file lin_lin21_proto.c.