#include <emgcy.h>
#include <def.h>
Functions | |
void | processReceivedEmergency (s_rx_buffer_message *canopenMessage) |
void | netErrorCallback (void) |
void | setError (BYTE bError) |
void | sendEmergency (WORD EmergencyCode_p, BYTE FAR *userDefinedInformations) |
|
|
|
This function is called by proccessRxCanMessages( ). It is responsible for analysing remotely received Emergency messages. |
|
This function sends an emergency message, where the user can define the values of the last 5 bytes. (see standard). This user-defined informations consists of a 5 Byte long BYTE-array. The first argument (emergencyCode) stands for one of the defined errors like: NO_ERROR, GENERIC_ERROR, CURRENT_ERROR, VOLTAGE_ERROR, HARDWARE_ERROR this constants are defined in the file def.h |
|
this function sets the actual error of this node. after setting a new error, you should call sendEmergency, so the error is sent to the other nodes |