NNP STM Generic Remote Module git-main
Loading...
Searching...
No Matches
emcy.c File Reference
#include <data.h>
#include "emcy.h"
#include "canfestival.h"
#include "sysdep.h"

Go to the source code of this file.

Functions

UNS32 OnNumberOfErrorsUpdate (CO_Data *d, const indextable *unsused_indextable, UNS8 unsused_bSubindex)
 This is called when Index 0x1003 is updated.
 
UNS8 sendEMCY (CO_Data *d, UNS16 errCode, UNS8 errRegister)
 <BRIEF> sendEMCY
 
void emergencyInit (CO_Data *d)
 Start EMCY consumer and producer.
 
void emergencyStop (CO_Data *d)
 Stop EMCY producer and consumer.
 
UNS8 EMCY_setError (CO_Data *d, UNS16 errCode, UNS8 errRegMask, UNS16 addInfo)
 Sets a new error with code errCode. Also sets corresponding bits in Error register (1001h)
 
void EMCY_errorRecovered (CO_Data *d, UNS16 errCode)
 Indicates it has recovered from error errCode. Also clears corresponding bits in Error register (1001h)
 
void proceedEMCY (CO_Data *d, Message *m)
 This function is responsible to process an EMCY canopen-message.
 
void _post_emcy (CO_Data *d, UNS8 nodeID, UNS16 errCode, UNS8 errReg)
 <BRIEF> _post_emcy
 

Detailed Description

Date
Created on: Oct 10, 2024
Author
Jerry Ukwela (jeu6@.nosp@m.case.nosp@m..edu)

Definition in file emcy.c.