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

Go to the source code of this file.

Classes

struct  s_errors
 

Typedefs

typedef enum enum_errorState e_errorState
 
typedef void(* post_emcy_t) (CO_Data *d, UNS8 nodeID, UNS16 errCode, UNS8 errReg)
 

Enumerations

enum  enum_errorState { Error_free = 0x00 , Error_occurred = 0x01 }
 

Functions

void _post_emcy (CO_Data *d, UNS8 nodeID, UNS16 errCode, UNS8 errReg)
 <BRIEF> _post_emcy
 
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 emergencyInit (CO_Data *d)
 Start EMCY consumer and producer.
 
void emergencyStop (CO_Data *d)
 Stop EMCY producer and consumer.
 
void proceedEMCY (CO_Data *d, Message *m)
 This function is responsible to process an EMCY canopen-message.
 

Detailed Description

Created on: Oct 9, 2024 Author: jenej

Definition in file emcy.h.

Typedef Documentation

◆ post_emcy_t

typedef void(* post_emcy_t) (CO_Data *d, UNS8 nodeID, UNS16 errCode, UNS8 errReg)

Definition at line 29 of file emcy.h.

Enumeration Type Documentation

◆ enum_errorState

enum enum_errorState

Definition at line 15 of file emcy.h.