examples/TestMasterMicroMod/TestMaster.c
author etisserant
Fri, 25 Jul 2008 10:57:20 +0200
changeset 504 ad574af3628d
parent 422 43a4d6deb007
permissions -rw-r--r--
Added removal of dynamically loaded CAN driver interface library in clean make target
166
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
     1
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
     2
/* File generated by gen_cfile.py. Should not be modified. */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
     3
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
     4
#include "TestMaster.h"
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
     5
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
     6
/**************************************************************************/
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
     7
/* Declaration of the mapped variables                                    */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
     8
/**************************************************************************/
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
     9
UNS8 DO = 0x0;		/* Mapped at index 0x2000, subindex 0x00 */
201
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
    10
UNS8 DI1 = 0x0;		/* Mapped at index 0x200F, subindex 0x00 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
    11
UNS8 DI2 = 0x0;		/* Mapped at index 0x2010, subindex 0x00 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
    12
UNS8 DI3 = 0x0;		/* Mapped at index 0x2011, subindex 0x00 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
    13
UNS8 DI4 = 0x0;		/* Mapped at index 0x2012, subindex 0x00 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
    14
UNS8 DI5 = 0x0;		/* Mapped at index 0x2013, subindex 0x00 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
    15
UNS8 DI6 = 0x0;		/* Mapped at index 0x2014, subindex 0x00 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
    16
UNS8 DI7 = 0x0;		/* Mapped at index 0x2015, subindex 0x00 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
    17
UNS8 DI8 = 0x0;		/* Mapped at index 0x2016, subindex 0x00 */
166
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    18
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    19
/**************************************************************************/
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    20
/* Declaration of the value range types                                   */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    21
/**************************************************************************/
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    22
287
fa4df65d0683 Bug on gen_cfile.py valueRangeTest generation fixed
lbessard
parents: 284
diff changeset
    23
#define valueRange_EMC 0x9F /* Type for index 0x1003 subindex 0x00 (only set of value 0 is possible) */
166
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    24
UNS32 TestMaster_valueRangeTest (UNS8 typeValue, void * value)
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    25
{
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    26
  switch (typeValue) {
287
fa4df65d0683 Bug on gen_cfile.py valueRangeTest generation fixed
lbessard
parents: 284
diff changeset
    27
    case valueRange_EMC:
307
230d55cb75a4 Updated .od files to keep compatible with $NODEID+... way to express OD entry values, as in EDS.
etisserant
parents: 287
diff changeset
    28
      if (*(UNS8*)value != (UNS8)0) return OD_VALUE_RANGE_EXCEEDED;
287
fa4df65d0683 Bug on gen_cfile.py valueRangeTest generation fixed
lbessard
parents: 284
diff changeset
    29
      break;
166
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    30
  }
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    31
  return 0;
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    32
}
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    33
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    34
/**************************************************************************/
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    35
/* The node id                                                            */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    36
/**************************************************************************/
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    37
/* node_id default value.*/
307
230d55cb75a4 Updated .od files to keep compatible with $NODEID+... way to express OD entry values, as in EDS.
etisserant
parents: 287
diff changeset
    38
UNS8 TestMaster_bDeviceNodeId = 0x00;
166
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    39
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    40
/**************************************************************************/
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    41
/* Array of message processing information */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    42
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    43
const UNS8 TestMaster_iam_a_slave = 0;
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    44
422
43a4d6deb007 Fixed herbeat timer array partial initialization in generated OD code.
etisserant
parents: 369
diff changeset
    45
TIMER_HANDLE TestMaster_heartBeatTimers[1] = {TIMER_NONE};
166
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    46
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    47
/*
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    48
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    49
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    50
                               OBJECT DICTIONARY
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    51
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    52
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    53
*/
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    54
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    55
/* index 0x1000 :   Device Type. */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    56
                    UNS32 TestMaster_obj1000 = 0x191;	/* 401 */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    57
                    subindex TestMaster_Index1000[] = 
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    58
                     {
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    59
                       { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1000 }
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    60
                     };
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    61
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    62
/* index 0x1001 :   Error Register. */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    63
                    UNS8 TestMaster_obj1001 = 0x0;	/* 0 */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    64
                    subindex TestMaster_Index1001[] = 
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    65
                     {
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    66
                       { RO, uint8, sizeof (UNS8), (void*)&TestMaster_obj1001 }
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    67
                     };
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    68
284
24bf3d692993 Implemented EMCY objects.
luis
parents: 235
diff changeset
    69
/* index 0x1003 :   Pre-defined Error Field */
24bf3d692993 Implemented EMCY objects.
luis
parents: 235
diff changeset
    70
                    UNS8 TestMaster_highestSubIndex_obj1003 = 0; /* number of subindex - 1*/
24bf3d692993 Implemented EMCY objects.
luis
parents: 235
diff changeset
    71
                    UNS32 TestMaster_obj1003[] = 
24bf3d692993 Implemented EMCY objects.
luis
parents: 235
diff changeset
    72
                    {
24bf3d692993 Implemented EMCY objects.
luis
parents: 235
diff changeset
    73
                      0x0	/* 0 */
24bf3d692993 Implemented EMCY objects.
luis
parents: 235
diff changeset
    74
                    };
24bf3d692993 Implemented EMCY objects.
luis
parents: 235
diff changeset
    75
                    ODCallback_t TestMaster_Index1003_callbacks[] = 
24bf3d692993 Implemented EMCY objects.
luis
parents: 235
diff changeset
    76
                     {
24bf3d692993 Implemented EMCY objects.
luis
parents: 235
diff changeset
    77
                       NULL,
24bf3d692993 Implemented EMCY objects.
luis
parents: 235
diff changeset
    78
                       NULL,
24bf3d692993 Implemented EMCY objects.
luis
parents: 235
diff changeset
    79
                     };
24bf3d692993 Implemented EMCY objects.
luis
parents: 235
diff changeset
    80
                    subindex TestMaster_Index1003[] = 
24bf3d692993 Implemented EMCY objects.
luis
parents: 235
diff changeset
    81
                     {
287
fa4df65d0683 Bug on gen_cfile.py valueRangeTest generation fixed
lbessard
parents: 284
diff changeset
    82
                       { RW, valueRange_EMC, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1003 },
284
24bf3d692993 Implemented EMCY objects.
luis
parents: 235
diff changeset
    83
                       { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1003[0] }
24bf3d692993 Implemented EMCY objects.
luis
parents: 235
diff changeset
    84
                     };
24bf3d692993 Implemented EMCY objects.
luis
parents: 235
diff changeset
    85
166
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    86
/* index 0x1005 :   SYNC COB ID. */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    87
                    UNS32 TestMaster_obj1005 = 0x40000080;	/* 1073741952 */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    88
                    ODCallback_t TestMaster_Index1005_callbacks[] = 
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    89
                     {
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    90
                       NULL,
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    91
                     };
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    92
                    subindex TestMaster_Index1005[] = 
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    93
                     {
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    94
                       { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1005 }
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    95
                     };
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    96
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    97
/* index 0x1006 :   Communication / Cycle Period. */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    98
                    UNS32 TestMaster_obj1006 = 0xC350;	/* 50000 */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
    99
                    ODCallback_t TestMaster_Index1006_callbacks[] = 
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   100
                     {
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   101
                       NULL,
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   102
                     };
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   103
                    subindex TestMaster_Index1006[] = 
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   104
                     {
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   105
                       { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1006 }
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   106
                     };
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   107
314
68e83c3ffbb5 Better EMCY support. Now EMCY COB-ID depend on OD 1014h entry, as told in DS-301.
etisserant
parents: 307
diff changeset
   108
/* index 0x1014 :   Emergency COB ID */
68e83c3ffbb5 Better EMCY support. Now EMCY COB-ID depend on OD 1014h entry, as told in DS-301.
etisserant
parents: 307
diff changeset
   109
                    UNS32 TestMaster_obj1014 = 0x0;   /* 0 */
68e83c3ffbb5 Better EMCY support. Now EMCY COB-ID depend on OD 1014h entry, as told in DS-301.
etisserant
parents: 307
diff changeset
   110
166
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   111
/* index 0x1016 :   Consumer Heartbeat Time. */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   112
                    UNS8 TestMaster_highestSubIndex_obj1016 = 1; /* number of subindex - 1*/
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   113
                    UNS32 TestMaster_obj1016[] = 
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   114
                    {
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   115
                      0x4005DC	/* 4195804 */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   116
                    };
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   117
                    subindex TestMaster_Index1016[] = 
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   118
                     {
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   119
                       { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1016 },
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   120
                       { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1016[0] }
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   121
                     };
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   122
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   123
/* index 0x1017 :   Producer Heartbeat Time */ 
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   124
                    UNS16 TestMaster_obj1017 = 0x0;   /* 0 */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   125
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   126
/* index 0x1018 :   Identity. */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   127
                    UNS8 TestMaster_highestSubIndex_obj1018 = 4; /* number of subindex - 1*/
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   128
                    UNS32 TestMaster_obj1018_Vendor_ID = 0x0;	/* 0 */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   129
                    UNS32 TestMaster_obj1018_Product_Code = 0x0;	/* 0 */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   130
                    UNS32 TestMaster_obj1018_Revision_Number = 0x0;	/* 0 */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   131
                    UNS32 TestMaster_obj1018_Serial_Number = 0x0;	/* 0 */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   132
                    subindex TestMaster_Index1018[] = 
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   133
                     {
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   134
                       { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1018 },
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   135
                       { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1018_Vendor_ID },
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   136
                       { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1018_Product_Code },
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   137
                       { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1018_Revision_Number },
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   138
                       { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1018_Serial_Number }
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   139
                     };
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   140
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   141
/* index 0x1280 :   Client SDO 1 Parameter. */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   142
                    UNS8 TestMaster_highestSubIndex_obj1280 = 3; /* number of subindex - 1*/
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   143
                    UNS32 TestMaster_obj1280_COB_ID_Client_to_Server_Transmit_SDO = 0x640;	/* 1600 */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   144
                    UNS32 TestMaster_obj1280_COB_ID_Server_to_Client_Receive_SDO = 0x5C0;	/* 1472 */
284
24bf3d692993 Implemented EMCY objects.
luis
parents: 235
diff changeset
   145
                    UNS8 TestMaster_obj1280_Node_ID_of_the_SDO_Server = 0x40;	/* 64 */
166
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   146
                    subindex TestMaster_Index1280[] = 
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   147
                     {
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   148
                       { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1280 },
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   149
                       { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1280_COB_ID_Client_to_Server_Transmit_SDO },
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   150
                       { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1280_COB_ID_Server_to_Client_Receive_SDO },
284
24bf3d692993 Implemented EMCY objects.
luis
parents: 235
diff changeset
   151
                       { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1280_Node_ID_of_the_SDO_Server }
166
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   152
                     };
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   153
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   154
/* index 0x1400 :   Receive PDO 1 Parameter. */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   155
                    UNS8 TestMaster_highestSubIndex_obj1400 = 5; /* number of subindex - 1*/
230
aa5ac69398bb Fixed tipo
etisserant
parents: 201
diff changeset
   156
                    UNS32 TestMaster_obj1400_COB_ID_used_by_PDO = 0x1C0;	/* 448 */
166
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   157
                    UNS8 TestMaster_obj1400_Transmission_Type = 0x1;	/* 1 */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   158
                    UNS16 TestMaster_obj1400_Inhibit_Time = 0x0;	/* 0 */
201
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   159
                    UNS8 TestMaster_obj1400_Compatibility_Entry = 0x0;	/* 0 */
166
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   160
                    UNS16 TestMaster_obj1400_Event_Timer = 0x0;	/* 0 */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   161
                    subindex TestMaster_Index1400[] = 
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   162
                     {
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   163
                       { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1400 },
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   164
                       { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1400_COB_ID_used_by_PDO },
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   165
                       { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1400_Transmission_Type },
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   166
                       { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1400_Inhibit_Time },
201
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   167
                       { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1400_Compatibility_Entry },
166
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   168
                       { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1400_Event_Timer }
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   169
                     };
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   170
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   171
/* index 0x1600 :   Receive PDO 1 Mapping. */
201
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   172
                    UNS8 TestMaster_highestSubIndex_obj1600 = 8; /* number of subindex - 1*/
166
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   173
                    UNS32 TestMaster_obj1600[] = 
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   174
                    {
201
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   175
                      0x200F0001,	/* 537853953 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   176
                      0x20100001,	/* 537919489 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   177
                      0x20110001,	/* 537985025 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   178
                      0x20120001,	/* 538050561 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   179
                      0x20130001,	/* 538116097 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   180
                      0x20140001,	/* 538181633 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   181
                      0x20150001,	/* 538247169 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   182
                      0x20160001	/* 538312705 */
166
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   183
                    };
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   184
                    subindex TestMaster_Index1600[] = 
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   185
                     {
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   186
                       { RW, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1600 },
201
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   187
                       { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[0] },
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   188
                       { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[1] },
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   189
                       { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[2] },
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   190
                       { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[3] },
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   191
                       { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[4] },
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   192
                       { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[5] },
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   193
                       { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[6] },
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   194
                       { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[7] }
166
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   195
                     };
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   196
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   197
/* index 0x1800 :   Transmit PDO 1 Parameter. */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   198
                    UNS8 TestMaster_highestSubIndex_obj1800 = 5; /* number of subindex - 1*/
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   199
                    UNS32 TestMaster_obj1800_COB_ID_used_by_PDO = 0x240;	/* 576 */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   200
                    UNS8 TestMaster_obj1800_Transmission_Type = 0x1;	/* 1 */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   201
                    UNS16 TestMaster_obj1800_Inhibit_Time = 0x0;	/* 0 */
201
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   202
                    UNS8 TestMaster_obj1800_Compatibility_Entry = 0x0;	/* 0 */
166
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   203
                    UNS16 TestMaster_obj1800_Event_Timer = 0x0;	/* 0 */
284
24bf3d692993 Implemented EMCY objects.
luis
parents: 235
diff changeset
   204
                    ODCallback_t TestMaster_Index1800_callbacks[] = 
24bf3d692993 Implemented EMCY objects.
luis
parents: 235
diff changeset
   205
                     {
24bf3d692993 Implemented EMCY objects.
luis
parents: 235
diff changeset
   206
                       NULL,
24bf3d692993 Implemented EMCY objects.
luis
parents: 235
diff changeset
   207
                       NULL,
24bf3d692993 Implemented EMCY objects.
luis
parents: 235
diff changeset
   208
                       NULL,
24bf3d692993 Implemented EMCY objects.
luis
parents: 235
diff changeset
   209
                       NULL,
24bf3d692993 Implemented EMCY objects.
luis
parents: 235
diff changeset
   210
                       NULL,
24bf3d692993 Implemented EMCY objects.
luis
parents: 235
diff changeset
   211
                       NULL,
24bf3d692993 Implemented EMCY objects.
luis
parents: 235
diff changeset
   212
                     };
166
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   213
                    subindex TestMaster_Index1800[] = 
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   214
                     {
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   215
                       { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1800 },
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   216
                       { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1800_COB_ID_used_by_PDO },
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   217
                       { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1800_Transmission_Type },
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   218
                       { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1800_Inhibit_Time },
201
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   219
                       { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1800_Compatibility_Entry },
166
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   220
                       { RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1800_Event_Timer }
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   221
                     };
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   222
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   223
/* index 0x1A00 :   Transmit PDO 1 Mapping. */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   224
                    UNS8 TestMaster_highestSubIndex_obj1A00 = 1; /* number of subindex - 1*/
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   225
                    UNS32 TestMaster_obj1A00[] = 
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   226
                    {
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   227
                      0x20000008	/* 536870920 */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   228
                    };
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   229
                    subindex TestMaster_Index1A00[] = 
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   230
                     {
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   231
                       { RW, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1A00 },
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   232
                       { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1A00[0] }
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   233
                     };
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   234
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   235
/* index 0x2000 :   Mapped variable DO */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   236
                    subindex TestMaster_Index2000[] = 
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   237
                     {
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   238
                       { RW, uint8, sizeof (UNS8), (void*)&DO }
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   239
                     };
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   240
201
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   241
/* index 0x200F :   Mapped variable DI1 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   242
                    subindex TestMaster_Index200F[] = 
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   243
                     {
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   244
                       { RW, boolean, sizeof (UNS8), (void*)&DI1 }
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   245
                     };
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   246
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   247
/* index 0x2010 :   Mapped variable DI2 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   248
                    subindex TestMaster_Index2010[] = 
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   249
                     {
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   250
                       { RW, boolean, sizeof (UNS8), (void*)&DI2 }
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   251
                     };
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   252
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   253
/* index 0x2011 :   Mapped variable DI3 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   254
                    subindex TestMaster_Index2011[] = 
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   255
                     {
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   256
                       { RW, boolean, sizeof (UNS8), (void*)&DI3 }
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   257
                     };
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   258
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   259
/* index 0x2012 :   Mapped variable DI4 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   260
                    subindex TestMaster_Index2012[] = 
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   261
                     {
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   262
                       { RW, boolean, sizeof (UNS8), (void*)&DI4 }
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   263
                     };
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   264
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   265
/* index 0x2013 :   Mapped variable DI5 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   266
                    subindex TestMaster_Index2013[] = 
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   267
                     {
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   268
                       { RW, boolean, sizeof (UNS8), (void*)&DI5 }
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   269
                     };
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   270
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   271
/* index 0x2014 :   Mapped variable DI6 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   272
                    subindex TestMaster_Index2014[] = 
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   273
                     {
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   274
                       { RW, boolean, sizeof (UNS8), (void*)&DI6 }
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   275
                     };
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   276
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   277
/* index 0x2015 :   Mapped variable DI7 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   278
                    subindex TestMaster_Index2015[] = 
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   279
                     {
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   280
                       { RW, boolean, sizeof (UNS8), (void*)&DI7 }
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   281
                     };
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   282
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   283
/* index 0x2016 :   Mapped variable DI8 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   284
                    subindex TestMaster_Index2016[] = 
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   285
                     {
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   286
                       { RW, boolean, sizeof (UNS8), (void*)&DI8 }
166
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   287
                     };
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   288
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   289
const indextable TestMaster_objdict[] = 
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   290
{
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   291
  { (subindex*)TestMaster_Index1000,sizeof(TestMaster_Index1000)/sizeof(TestMaster_Index1000[0]), 0x1000},
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   292
  { (subindex*)TestMaster_Index1001,sizeof(TestMaster_Index1001)/sizeof(TestMaster_Index1001[0]), 0x1001},
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   293
  { (subindex*)TestMaster_Index1005,sizeof(TestMaster_Index1005)/sizeof(TestMaster_Index1005[0]), 0x1005},
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   294
  { (subindex*)TestMaster_Index1006,sizeof(TestMaster_Index1006)/sizeof(TestMaster_Index1006[0]), 0x1006},
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   295
  { (subindex*)TestMaster_Index1016,sizeof(TestMaster_Index1016)/sizeof(TestMaster_Index1016[0]), 0x1016},
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   296
  { (subindex*)TestMaster_Index1018,sizeof(TestMaster_Index1018)/sizeof(TestMaster_Index1018[0]), 0x1018},
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   297
  { (subindex*)TestMaster_Index1280,sizeof(TestMaster_Index1280)/sizeof(TestMaster_Index1280[0]), 0x1280},
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   298
  { (subindex*)TestMaster_Index1400,sizeof(TestMaster_Index1400)/sizeof(TestMaster_Index1400[0]), 0x1400},
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   299
  { (subindex*)TestMaster_Index1600,sizeof(TestMaster_Index1600)/sizeof(TestMaster_Index1600[0]), 0x1600},
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   300
  { (subindex*)TestMaster_Index1800,sizeof(TestMaster_Index1800)/sizeof(TestMaster_Index1800[0]), 0x1800},
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   301
  { (subindex*)TestMaster_Index1A00,sizeof(TestMaster_Index1A00)/sizeof(TestMaster_Index1A00[0]), 0x1A00},
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   302
  { (subindex*)TestMaster_Index2000,sizeof(TestMaster_Index2000)/sizeof(TestMaster_Index2000[0]), 0x2000},
201
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   303
  { (subindex*)TestMaster_Index200F,sizeof(TestMaster_Index200F)/sizeof(TestMaster_Index200F[0]), 0x200F},
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   304
  { (subindex*)TestMaster_Index2010,sizeof(TestMaster_Index2010)/sizeof(TestMaster_Index2010[0]), 0x2010},
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   305
  { (subindex*)TestMaster_Index2011,sizeof(TestMaster_Index2011)/sizeof(TestMaster_Index2011[0]), 0x2011},
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   306
  { (subindex*)TestMaster_Index2012,sizeof(TestMaster_Index2012)/sizeof(TestMaster_Index2012[0]), 0x2012},
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   307
  { (subindex*)TestMaster_Index2013,sizeof(TestMaster_Index2013)/sizeof(TestMaster_Index2013[0]), 0x2013},
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   308
  { (subindex*)TestMaster_Index2014,sizeof(TestMaster_Index2014)/sizeof(TestMaster_Index2014[0]), 0x2014},
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   309
  { (subindex*)TestMaster_Index2015,sizeof(TestMaster_Index2015)/sizeof(TestMaster_Index2015[0]), 0x2015},
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   310
  { (subindex*)TestMaster_Index2016,sizeof(TestMaster_Index2016)/sizeof(TestMaster_Index2016[0]), 0x2016},
166
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   311
};
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   312
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   313
const indextable * TestMaster_scanIndexOD (UNS16 wIndex, UNS32 * errorCode, ODCallback_t **callbacks)
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   314
{
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   315
	int i;
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   316
	*callbacks = NULL;
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   317
	switch(wIndex){
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   318
		case 0x1000: i = 0;break;
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   319
		case 0x1001: i = 1;break;
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   320
		case 0x1005: i = 2;*callbacks = TestMaster_Index1005_callbacks; break;
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   321
		case 0x1006: i = 3;*callbacks = TestMaster_Index1006_callbacks; break;
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   322
		case 0x1016: i = 4;break;
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   323
		case 0x1018: i = 5;break;
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   324
		case 0x1280: i = 6;break;
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   325
		case 0x1400: i = 7;break;
201
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   326
		case 0x1600: i = 8;break;
284
24bf3d692993 Implemented EMCY objects.
luis
parents: 235
diff changeset
   327
		case 0x1800: i = 9;*callbacks = TestMaster_Index1800_callbacks; break;
201
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   328
		case 0x1A00: i = 10;break;
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   329
		case 0x2000: i = 11;break;
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   330
		case 0x200F: i = 12;break;
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   331
		case 0x2010: i = 13;break;
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   332
		case 0x2011: i = 14;break;
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   333
		case 0x2012: i = 15;break;
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   334
		case 0x2013: i = 16;break;
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   335
		case 0x2014: i = 17;break;
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   336
		case 0x2015: i = 18;break;
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   337
		case 0x2016: i = 19;break;
166
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   338
		default:
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   339
			*errorCode = OD_NO_SUCH_OBJECT;
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   340
			return NULL;
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   341
	}
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   342
	*errorCode = OD_SUCCESSFUL;
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   343
	return &TestMaster_objdict[i];
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   344
}
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   345
235
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 230
diff changeset
   346
/* 
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 230
diff changeset
   347
 * To count at which received SYNC a PDO must be sent.
166
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   348
 * Even if no pdoTransmit are defined, at least one entry is computed
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   349
 * for compilations issues.
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   350
 */
369
8b67289d50b5 fix name "staus" in c generated files with "status
greg
parents: 314
diff changeset
   351
s_PDO_status TestMaster_PDO_status[1] = {s_PDO_status_Initializer};
166
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   352
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   353
quick_index TestMaster_firstIndex = {
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   354
  0, /* SDO_SVR */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   355
  6, /* SDO_CLT */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   356
  7, /* PDO_RCV */
201
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   357
  8, /* PDO_RCV_MAP */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   358
  9, /* PDO_TRS */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   359
  10 /* PDO_TRS_MAP */
166
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   360
};
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   361
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   362
quick_index TestMaster_lastIndex = {
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   363
  0, /* SDO_SVR */
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   364
  6, /* SDO_CLT */
201
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   365
  7, /* PDO_RCV */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   366
  8, /* PDO_RCV_MAP */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   367
  9, /* PDO_TRS */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 166
diff changeset
   368
  10 /* PDO_TRS_MAP */
166
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   369
};
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   370
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   371
UNS16 TestMaster_ObjdictSize = sizeof(TestMaster_objdict)/sizeof(TestMaster_objdict[0]); 
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   372
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   373
CO_Data TestMaster_Data = CANOPEN_NODE_DATA_INITIALIZER(TestMaster);
b6fbc1c59a44 Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff changeset
   374