From 6357000d97517389e2b15f8a7b01c4e83ef0d96f Mon Sep 17 00:00:00 2001 From: norly Date: Sun, 19 Mar 2017 00:23:49 +0100 Subject: Implement NMReset in case a node goes missing --- vw-nm.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'vw-nm.h') diff --git a/vw-nm.h b/vw-nm.h index 2c38e72..fcb6b4b 100644 --- a/vw-nm.h +++ b/vw-nm.h @@ -38,6 +38,7 @@ enum timer_reason { struct NM_Main { unsigned max_nodes; struct NM_Node *nodes; + NM_ID my_id; canid_t can_base; @@ -48,7 +49,9 @@ struct NM_Main { -/* This timeout is ~49 ms in: +/* OSEK/VDX NM: T_Typ + * + * This timeout is ~49 ms in: * - 0x19 (RCD 310, Bosch) * (sometimes it takes a little longer) * @@ -62,13 +65,17 @@ struct NM_Main { #define NM_USECS_NORMAL_TURN 45000 -/* This timeout is 140 ms in: +/* OSEK/VDX NM: T_Max + * + * This timeout is 140 ms in: * - 0x19 (RCD 310, Bosch) */ #define NM_USECS_NODE_AWOL 140000 -/* This timeout is 500 ms in: +/* OSEK/VDX NM: T_Error + * + * This timeout is 500 ms in: * - 0x19 (RCD 310, Bosch) */ #define NM_USECS_LIMPHOME 500000 -- cgit v1.2.3