LIN Middleware

General Description

Functions

void ld_init (l_ifc_handle iii, mtb_stc_lin_context_t *context)
 This call will (re)initialize the raw and the cooked layers on the interface iii. More...
 

Function Documentation

◆ ld_init()

void ld_init ( l_ifc_handle  iii,
mtb_stc_lin_context_t context 
)

This call will (re)initialize the raw and the cooked layers on the interface iii.

All transport layer buffers will be initialized.

If there is an ongoing diagnostic frame transporting a cooked or raw message on the bus, it will not be aborted.

This API must be called before using any Transport Layer API functions. It must also be called before the slave node can do any Transport Layer communication.

If the API is called in the middle of an ongoing diagnostic frame transporting a cooked or raw message on the bus, the function waits until the message is completed.

Parameters
iiiThe name of the interface handle. The parameter is not used within the middleware as the interface is defined by the context parameter. See l_ifc_handle.
contextThe pointer to the context structure mtb_stc_lin_context_t allocated by the user. This structure is used during LIN Slave operation for internal configuration and data retention. The user must not modify anything in this structure.