equal
deleted
inserted
replaced
23 #ifndef __states_h__ |
23 #ifndef __states_h__ |
24 #define __states_h__ |
24 #define __states_h__ |
25 |
25 |
26 #include <applicfg.h> |
26 #include <applicfg.h> |
27 |
27 |
28 ///The nodes states |
28 /* The nodes states |
29 //----------------- |
29 * ----------------- |
30 /// values are choosen so, that they can be sent directly |
30 * values are choosen so, that they can be sent directly |
31 /// for heartbeat messages... |
31 * for heartbeat messages... |
32 /// Must be coded on 7 bits only |
32 * Must be coded on 7 bits only |
|
33 * */ |
33 /* Should not be modified */ |
34 /* Should not be modified */ |
34 enum enum_nodeState { |
35 enum enum_nodeState { |
35 Initialisation = 0x00, |
36 Initialisation = 0x00, |
36 Disconnected = 0x01, |
37 Disconnected = 0x01, |
37 Connecting = 0x02, |
38 Connecting = 0x02, |
87 void setNodeId (CO_Data* d, UNS8 nodeId); |
88 void setNodeId (CO_Data* d, UNS8 nodeId); |
88 |
89 |
89 /** Some stuff to do when the node enter in reset mode |
90 /** Some stuff to do when the node enter in reset mode |
90 * |
91 * |
91 */ |
92 */ |
92 //void initResetMode (CO_Data* d); |
93 /* void initResetMode (CO_Data* d); */ |
93 |
94 |
94 |
95 |
95 /** Some stuff to do when the node enter in pre-operational mode |
96 /** Some stuff to do when the node enter in pre-operational mode |
96 * |
97 * |
97 */ |
98 */ |