Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

emgcy.h File Reference

Contains emergency-service related functions. More...

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


Detailed Description

Contains emergency-service related functions.

This file contains functions that can handle emergency related things

Warning:
No functions of this file are implemented yet!

Function Documentation

void NetErrorCallback void   
 

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;

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