NNP STM Generic Remote Module git-main
Loading...
Searching...
No Matches
lifegrd.h File Reference

Go to the source code of this file.

Typedefs

typedef void(* heartbeatError_t) (CO_Data *, UNS8)
 
typedef void(* post_SlaveBootup_t) (CO_Data *, UNS8)
 

Functions

void _heartbeatError (CO_Data *d, UNS8 heartbeatID)
 heartbeat Error
 
void _post_SlaveBootup (CO_Data *d, UNS8 SlaveID)
 post slave bootup
 
e_nodeState getNodeState (CO_Data *d, UNS8 nodeId)
 To read the state of a node This can be used by the master after having sent a life guard request, of by any node if it is waiting for heartbeat.
 
void heartbeatInit (CO_Data *d)
 Start heartbeat consumer and producer with respect to 0x1016 and 0x1017 object dictionary entries.
 
void heartbeatStop (CO_Data *d)
 Stop heartbeat consumer and producer.
 
void processNODE_GUARD (CO_Data *d, Message *m)
 This function is responsible to process a canopen-message which seams to be an NMT Error Control Messages. At them moment we assume that every NMT error control message is a heartbeat message. If a BootUp message is detected, it will return the nodeId of the Slave who booted up.
 

Detailed Description

Created on: Oct 9, 2024 Author: jenej

Definition in file lifegrd.h.

Typedef Documentation

◆ heartbeatError_t

typedef void(* heartbeatError_t) (CO_Data *, UNS8)

Definition at line 12 of file lifegrd.h.

◆ post_SlaveBootup_t

typedef void(* post_SlaveBootup_t) (CO_Data *, UNS8)

Definition at line 15 of file lifegrd.h.