nico@207: nico@207:
nico@215:#include <data.h>
#include "lifegrd.h"
#include "canfestival.h"
nico@215: Include dependency graph for lifegrd.c:
nico@207: Go to the source code of this file.
Functions | |
void | ConsumerHearbeatAlarm (CO_Data *d, UNS32 id) |
void | ProducerHearbeatAlarm (CO_Data *d, UNS32 id) |
UNS32 | OnHearbeatProducerUpdate (CO_Data *d, const indextable *unsused_indextable, UNS8 unsused_bSubindex) |
e_nodeState | getNodeState (CO_Data *d, UNS8 nodeId) |
void | proceedNODE_GUARD (CO_Data *d, Message *m) |
UNS32 | OnHeartbeatProducerUpdate (CO_Data *d, const indextable *unsused_indextable, UNS8 unsused_bSubindex) |
void | heartbeatInit (CO_Data *d) |
void | heartbeatStop (CO_Data *d) |
void | _heartbeatError (UNS8 heartbeatID) |
nico@210: Definition in file lifegrd.c.
void _heartbeatError | nico@207:( | nico@207:UNS8 | nico@207:heartbeatID | nico@207:) | nico@207:nico@207: |
void ConsumerHearbeatAlarm | nico@207:( | nico@215:CO_Data * | nico@207:d, | nico@207:|
nico@207: | nico@207: | UNS32 | nico@207:id | nico@207: |
nico@207: | ) | nico@207:nico@207: |
nico@210: The Consumer Timer Callback
nico@210:
d | ||
id |
nico@210: call heartbeat error with NodeId nico@210:
nico@210: Definition at line 67 of file lifegrd.c. nico@210:
nico@215: References struct_CO_Data::ConsumerHeartbeatEntries, struct_s_timer_entry::d, struct_CO_Data::heartbeatError, UNS32, and UNS8. nico@215:
nico@210: Referenced by heartbeatInit(), and proceedNODE_GUARD(). nico@207:
etisserant@240: etisserant@240:
e_nodeState getNodeState | nico@215:( | nico@215:CO_Data * | nico@207:d, | nico@207:|
nico@207: | nico@207: | UNS8 | nico@207:nodeId | nico@207: |
nico@207: | ) | nico@207:nico@207: |
nico@210:
d | ||
nodeId |
nico@210: Definition at line 55 of file lifegrd.c. nico@215:
nico@215: References struct_s_timer_entry::d, and struct_CO_Data::NMTable. nico@215:
nico@215: Referenced by GetChangeStateResults(). nico@207:
void heartbeatInit | nico@207:( | nico@215:CO_Data * | nico@207:d | nico@207:) | nico@207:nico@207: |
nico@210:
d |
nico@210: Definition at line 206 of file lifegrd.c. nico@210:
etisserant@240: References ConsumerHearbeatAlarm(), struct_CO_Data::ConsumerHeartbeatCount, struct_CO_Data::ConsumerHeartbeatEntries, struct_CO_Data::ConsumerHeartBeatTimers, struct_s_timer_entry::d, MS_TO_TIMEVAL, OnHeartbeatProducerUpdate(), ProducerHearbeatAlarm(), struct_CO_Data::ProducerHeartBeatTime, struct_CO_Data::ProducerHeartBeatTimer, RegisterSetODentryCallBack(), SetAlarm(), TIMEVAL, struct_CO_Data::toggle, UNS16, UNS32, and UNS8. nico@210:
nico@210: Referenced by OnHeartbeatProducerUpdate(), and switchCommunicationState(). nico@210:
etisserant@240: Here is the call graph for this function:
void heartbeatStop | nico@207:( | nico@215:CO_Data * | nico@207:d | nico@207:) | nico@207:nico@207: |
nico@210:
d |
nico@210: Definition at line 236 of file lifegrd.c. nico@210:
nico@215: References struct_CO_Data::ConsumerHeartbeatCount, struct_CO_Data::ConsumerHeartBeatTimers, struct_s_timer_entry::d, DelAlarm(), struct_CO_Data::ProducerHeartBeatTimer, and UNS8. nico@210:
nico@210: Referenced by OnHeartbeatProducerUpdate(), and switchCommunicationState(). nico@210:
etisserant@240: Here is the call graph for this function:
UNS32 OnHearbeatProducerUpdate | nico@207:( | nico@215:CO_Data * | nico@215:d, | nico@215:|
nico@215: | nico@215: | const indextable * | nico@207:unsused_indextable, | nico@207:|
nico@207: | nico@207: | UNS8 | nico@207:unsused_bSubindex | nico@207: |
nico@207: | ) | nico@207:nico@207: |
nico@207: nico@207:
UNS32 OnHeartbeatProducerUpdate | nico@207:( | nico@215:CO_Data * | nico@215:d, | nico@215:|
nico@215: | nico@215: | const indextable * | nico@207:unsused_indextable, | nico@207:|
nico@207: | nico@207: | UNS8 | nico@207:unsused_bSubindex | nico@207: |
nico@207: | ) | nico@207:nico@207: |
nico@210: This is called when Index 0x1017 is updated.
nico@210:
d | ||
unsused_indextable | ||
unsused_bSubindex |
nico@210: Definition at line 194 of file lifegrd.c. nico@210:
nico@215: References struct_s_timer_entry::d, heartbeatInit(), and heartbeatStop(). nico@210:
nico@210: Referenced by heartbeatInit(). nico@210:
etisserant@240: Here is the call graph for this function:
void proceedNODE_GUARD | nico@207:( | nico@215:CO_Data * | nico@215:d, | nico@215:|
nico@215: | nico@215: | Message * | nico@207:m | nico@207: |
nico@207: | ) | nico@207:nico@207: |
nico@210:
d | ||
m |
nico@210: Notice that only the master can have sent this node guarding request
nico@215: Receiving a NMT NodeGuarding (request of the state by the master) Only answer to the NMT NodeGuarding request, the master is not checked (not implemented) nico@210:
nico@210: Definition at line 81 of file lifegrd.c. nico@210:
etisserant@240: References struct_CO_Data::bDeviceNodeId, struct_CO_Data::canHandle, canSend(), Message::cob_id, ConsumerHearbeatAlarm(), struct_CO_Data::ConsumerHeartbeatCount, struct_CO_Data::ConsumerHeartbeatEntries, struct_CO_Data::ConsumerHeartBeatTimers, struct_s_timer_entry::d, Message::data, DelAlarm(), GET_NODE_ID, Initialisation, Message::len, MS_TO_TIMEVAL, MSG_WAR, struct_CO_Data::NMTable, struct_CO_Data::nodeState, Message::rtr, SetAlarm(), TIMEVAL, struct_CO_Data::toggle, Unknown_state, UNS32, UNS8, and SHORT_CAN::w. nico@210:
nico@210: Referenced by canDispatch(). nico@210:
etisserant@240: Here is the call graph for this function:
void ProducerHearbeatAlarm | nico@207:( | nico@215:CO_Data * | nico@207:d, | nico@207:|
nico@207: | nico@207: | UNS32 | nico@207:id | nico@207: |
nico@207: | ) | nico@207:nico@207: |
nico@210: The Consumer Timer Callback
nico@210:
d | ||
id |
nico@210: Definition at line 161 of file lifegrd.c. nico@210:
etisserant@240: References struct_CO_Data::bDeviceNodeId, struct_CO_Data::canHandle, canSend(), Message::cob_id, struct_s_timer_entry::d, Message::data, DelAlarm(), Message::len, MSG_WAR, struct_CO_Data::nodeState, struct_CO_Data::ProducerHeartBeatTime, struct_CO_Data::ProducerHeartBeatTimer, Message::rtr, UNS8, and SHORT_CAN::w. nico@210:
nico@210: Referenced by heartbeatInit(). nico@210:
etisserant@240: Here is the call graph for this function:
etisserant@240: