/** * @file monitoring.c * * @copyright Nehemis SARL reserves all rights even in the event of industrial * property rights. We reserve all rights of disposal such as * copying and passing on to third parties. * * @brief * */ /****************************************************************************** * Include Header Files ******************************************************************************/ #include "monitoring.h" /* CANopen includes */ #include #include /****************************************************************************** * Macro constant declarations ******************************************************************************/ /****************************************************************************** * Global variable declarations ******************************************************************************/ static bool appSleep_b = CO_FALSE; /**< application sleep flag */ static CO_NMT_STATE_T nodeNMTState_gau[3]; /**< saved NMT states */ /****************************************************************************** * Public Function Definitions ******************************************************************************/ void MonitoringRun(void) { uint8 arrIndex_u8; if (appSleep_b != CO_TRUE) { for (arrIndex_u8 = 0u; arrIndex_u8 < 3; arrIndex_u8++) { if (nodeNMTState_gau[arrIndex_u8] == CO_NMT_STATE_PREOP) { LssConfigureNode(arrIndex_u8); } if (nodeNMTState[arrIndex] == CO_NMT_STATE_OPERATIONAL) { /* Do nothing */ } } } appSleep_b = CO_TRUE; }