objdictgen/examples/example_objdict.h
author luis
Wed, 26 Sep 2007 16:02:00 +0200
changeset 284 24bf3d692993
parent 281 685d9a26e4f9
child 623 36b62c854ee2
permissions -rw-r--r--
Implemented EMCY objects.
Added emcy.c and emcy.h
Modified data.h for necessary variables.
Added some EMCY message sendings in TestMasterSlave example.
Modified configure script to define EMCY_MAX_ERRORS.
Modified python scripts to make 1003h object always available (with a callback).

/* File generated by gen_cfile.py. Should not be modified. */

#ifndef EXAMPLE_OBJDICT_H
#define EXAMPLE_OBJDICT_H

#include "data.h"

/* Prototypes of function provided by object dictionnary */
UNS32 Linux_slave_valueRangeTest (UNS8 typeValue, void * value);
const indextable * Linux_slave_scanIndexOD (UNS16 wIndex, UNS32 * errorCode, ODCallback_t **callbacks);

/* Master node data struct */
extern CO_Data Linux_slave_Data;
extern ODCallback_t Transmit_PDO_1_Parameter_callbacks[];		/* Callbacks of index0x1800 */
extern ODCallback_t Transmit_PDO_2_Parameter_callbacks[];		/* Callbacks of index0x1801 */
extern UNS8 Time_seconds;		/* Mapped at index 0x2000, subindex 0x01 */
extern UNS8 Time_minutes;		/* Mapped at index 0x2000, subindex 0x02 */
extern UNS8 Time_hours;		/* Mapped at index 0x2000, subindex 0x03 */
extern UNS8 Time_days;		/* Mapped at index 0x2000, subindex 0x04 */
extern UNS32 canopenErrNB;		/* Mapped at index 0x2001, subindex 0x00*/
extern UNS32 canopenErrVal;		/* Mapped at index 0x2002, subindex 0x00*/
extern UNS8 strTest[10];		/* Mapped at index 0x2003, subindex 0x00*/

#endif // EXAMPLE_OBJDICT_H