Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

sdoc.h File Reference

Functions for accessing object dictionary of this device by other devices. More...

Go to the source code of this file.

Defines

#define COUNT_SDO_CLIENT   3

Functions

void processReceivedSDO (s_rx_buffer_message *canopenMessage)
void saveOD (BYTE bSubindex)
void loadOD (BYTE bSubindex)


Detailed Description

Functions for accessing object dictionary of this device by other devices.

SDO client related functions. They are used for accessing a slave modules object dictionary

Warning:
No functions are implemented yet, because SDO transfer hasn't been implemented yet. Feel free to implement it ;-) (you can more or less copy the needed source from CanFestival at http://canfestival.sourceforge.net - thanks to Edouard Tisserant)

Define Documentation

#define COUNT_SDO_CLIENT   3
 


Function Documentation

void loadOD BYTE    bSubindex
 

A remote node can call this function (by SDO) to load the standard Object dictionary (OD) from a persistent memore (EEProm, Flash, ...). This is useful, if the OD has been modified, but you want to undo this changes. the argument indicates which subindex is called (different subindicies stands for different load-options. see standard)

void processReceivedSDO s_rx_buffer_message   canopenMessage
 

this function is called by proccessRxCanMessages. it is responsible for proccessing SDO messages. e.g. if the server wants to read/write an entry in the Object dictionary

Parameters:
canopenMessage  Contains the CAN-Message that has been received by this device.

void saveOD BYTE    bSubindex
 

A remote node can call this function (by SDO) to save the state of the Object dictionary into a persistend memory (EEProm, Flash, ...). the argument indicates which subindex is called (different subindicies stands for different save-options. see standard)


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