Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

emgcy.c File Reference

#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)

Function Documentation

void netErrorCallback void   
 

void processReceivedEmergency s_rx_buffer_message   canopenMessage
 

This function is called by proccessRxCanMessages( ). It is responsible for analysing remotely received Emergency messages.

void sendEmergency WORD    emergencyCode,
BYTE FAR *    userDefinedInformations
 

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

void setError BYTE    bError
 

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


Generated on Wed Dec 25 01:04:57 2002 for CANopen SlaveLib by doxygen1.2.17