summaryrefslogtreecommitdiff
path: root/vw-nm.h
diff options
context:
space:
mode:
authornorly <ny-git@enpas.org>2017-03-19 00:23:49 +0100
committernorly <ny-git@enpas.org>2017-03-19 00:24:05 +0100
commit6357000d97517389e2b15f8a7b01c4e83ef0d96f (patch)
treea79b465b41831d8ca808ddf1c49233199f7634f1 /vw-nm.h
parentbba3a6280c23758e288d23a51a66a5b6475a4464 (diff)
Implement NMReset in case a node goes missing
Diffstat (limited to 'vw-nm.h')
-rw-r--r--vw-nm.h13
1 files changed, 10 insertions, 3 deletions
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