X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=vw-nm.h;h=2c38e72af82ff3101d7a1ccc5f0e62f28057bb9c;hb=bba3a6280c23758e288d23a51a66a5b6475a4464;hp=4a85f2a26067355006b19b63d98ecc80c2dd3646;hpb=2e62f449cd3633d4e61a2f9c6fdd9f5dbb0a66f0;p=revag-nm.git diff --git a/vw-nm.h b/vw-nm.h index 4a85f2a..2c38e72 100644 --- a/vw-nm.h +++ b/vw-nm.h @@ -27,12 +27,22 @@ struct NM_Node { NM_State state; }; + +enum timer_reason { + NM_TIMER_NOW, + NM_TIMER_NORMAL, + NM_TIMER_AWOL, + NM_TIMER_LIMPHOME, +}; + struct NM_Main { unsigned max_nodes; struct NM_Node *nodes; NM_ID my_id; canid_t can_base; + struct timeval tv; + enum timer_reason timer_reason; }; @@ -61,7 +71,7 @@ struct NM_Main { /* This timeout is 500 ms in: * - 0x19 (RCD 310, Bosch) */ -#define NM_USECS_LIMP_HOME 500000 +#define NM_USECS_LIMPHOME 500000 #endif /* __VW_NM_H__ */