Hi,
based on Time out unit (us) and Idle Timeout (s) options in the linstack component the max_idle_timeout_cnt parametre is calculated in lin_protocol_user_cfg_array within generated lin_crg.c.
This is used within stack init and timeout count is checked in lin_lld_timeout_service called each Time out unit.
BR, Petr