#include <canop.h>
Go to the source code of this file.
Functions | |
void | processReceivedEmergency (s_rx_buffer_message *canopenMessage) |
void | sendEmergency (WORD emergencyCode, BYTE FAR *userDefinedInformations) |
void | NetErrorCallback (void) |
void | setError (BYTE bError) |
This file contains functions that can handle emergency related things
|
If an error occures somewhere out in the CANopen network, this function is called. The user is then able to analyse the error, decide wheter this error is interessting for him and react appropriately. The error is saved in a global variable called: WORD netError; |
|
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 |