examples/TestMasterSlave/TestSlave.c
author lbessard
Thu, 18 Oct 2007 10:23:45 +0200
changeset 310 1975e546178b
parent 307 230d55cb75a4
child 314 68e83c3ffbb5
permissions -rw-r--r--
Bugs on EDS import fixed
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
     1
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
     2
/* File generated by gen_cfile.py. Should not be modified. */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
     3
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
     4
#include "TestSlave.h"
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
     5
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
     6
/**************************************************************************/
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
     7
/* Declaration of the mapped variables                                    */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
     8
/**************************************************************************/
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
     9
UNS8 SlaveMap1 = 0x0;		/* Mapped at index 0x2000, subindex 0x00 */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    10
UNS8 SlaveMap2 = 0x0;		/* Mapped at index 0x2001, subindex 0x00 */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    11
UNS8 SlaveMap3 = 0x0;		/* Mapped at index 0x2002, subindex 0x00 */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    12
UNS8 SlaveMap4 = 0x0;		/* Mapped at index 0x2003, subindex 0x00 */
201
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
    13
UNS8 SlaveMap5 = 0x0;		/* Mapped at index 0x2004, subindex 0x00 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
    14
UNS8 SlaveMap6 = 0x0;		/* Mapped at index 0x2005, subindex 0x00 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
    15
UNS8 SlaveMap7 = 0x0;		/* Mapped at index 0x2006, subindex 0x00 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
    16
UNS8 SlaveMap8 = 0x0;		/* Mapped at index 0x2007, subindex 0x00 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
    17
UNS8 SlaveMap9 = 0x0;		/* Mapped at index 0x2008, subindex 0x00 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
    18
UNS32 SlaveMap10 = 0x0;		/* Mapped at index 0x2009, subindex 0x00 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
    19
UNS16 SlaveMap11 = 0x0;		/* Mapped at index 0x200A, subindex 0x00 */
235
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
    20
INTEGER16 SlaveMap12 = 0x0;		/* Mapped at index 0x200B, subindex 0x00 */
236
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
    21
INTEGER16 SlaveMap13 = 0x4D2;		/* Mapped at index 0x200C, subindex 0x00 */
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    22
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    23
/**************************************************************************/
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    24
/* Declaration of the value range types                                   */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    25
/**************************************************************************/
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    26
287
fa4df65d0683 Bug on gen_cfile.py valueRangeTest generation fixed
lbessard
parents: 284
diff changeset
    27
#define valueRange_EMC 0x9F /* Type for index 0x1003 subindex 0x00 (only set of value 0 is possible) */
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    28
UNS32 TestSlave_valueRangeTest (UNS8 typeValue, void * value)
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    29
{
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    30
  switch (typeValue) {
287
fa4df65d0683 Bug on gen_cfile.py valueRangeTest generation fixed
lbessard
parents: 284
diff changeset
    31
    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
    32
      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
    33
      break;
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    34
  }
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    35
  return 0;
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    36
}
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    37
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    38
/**************************************************************************/
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    39
/* The node id                                                            */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    40
/**************************************************************************/
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    41
/* 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
    42
UNS8 TestSlave_bDeviceNodeId = 0x00;
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    43
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    44
/**************************************************************************/
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    45
/* Array of message processing information */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    46
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    47
const UNS8 TestSlave_iam_a_slave = 1;
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    48
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    49
TIMER_HANDLE TestSlave_heartBeatTimers[1];
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    50
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    51
/*
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    52
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    53
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    54
                               OBJECT DICTIONARY
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    55
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    56
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    57
*/
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    58
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    59
/* index 0x1000 :   Device Type. */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    60
                    UNS32 TestSlave_obj1000 = 0x12D;	/* 301 */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    61
                    subindex TestSlave_Index1000[] = 
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    62
                     {
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    63
                       { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1000 }
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    64
                     };
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    65
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    66
/* index 0x1001 :   Error Register. */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    67
                    UNS8 TestSlave_obj1001 = 0x0;	/* 0 */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    68
                    subindex TestSlave_Index1001[] = 
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    69
                     {
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    70
                       { RO, uint8, sizeof (UNS8), (void*)&TestSlave_obj1001 }
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    71
                     };
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
    72
284
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
    73
/* index 0x1003 :   Pre-defined Error Field. */
287
fa4df65d0683 Bug on gen_cfile.py valueRangeTest generation fixed
lbessard
parents: 284
diff changeset
    74
                    UNS8 TestSlave_highestSubIndex_obj1003 = 0; /* number of subindex - 1*/
284
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
    75
                    UNS32 TestSlave_obj1003[] = 
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
    76
                    {
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
    77
                      0x0,	/* 0 */
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
    78
                      0x0,	/* 0 */
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
    79
                      0x0,	/* 0 */
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
    80
                      0x0,	/* 0 */
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
    81
                      0x0,	/* 0 */
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
    82
                      0x0,	/* 0 */
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
    83
                      0x0,	/* 0 */
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
    84
                      0x0	/* 0 */
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
    85
                    };
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
    86
                    ODCallback_t TestSlave_Index1003_callbacks[] = 
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
    87
                     {
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
    88
                       NULL,
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
    89
                       NULL,
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
    90
                       NULL,
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
    91
                       NULL,
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
    92
                       NULL,
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
    93
                       NULL,
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
    94
                       NULL,
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
    95
                       NULL,
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
    96
                       NULL,
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
    97
                     };
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
    98
                    subindex TestSlave_Index1003[] = 
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
    99
                     {
287
fa4df65d0683 Bug on gen_cfile.py valueRangeTest generation fixed
lbessard
parents: 284
diff changeset
   100
                       { RW, valueRange_EMC, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1003 },
284
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   101
                       { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1003[0] },
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   102
                       { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1003[1] },
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   103
                       { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1003[2] },
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   104
                       { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1003[3] },
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   105
                       { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1003[4] },
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   106
                       { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1003[5] },
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   107
                       { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1003[6] },
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   108
                       { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1003[7] }
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   109
                     };
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   110
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   111
/* index 0x1005 :   SYNC COB ID. */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   112
                    UNS32 TestSlave_obj1005 = 0x80;	/* 128 */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   113
                    ODCallback_t TestSlave_Index1005_callbacks[] = 
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   114
                     {
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   115
                       NULL,
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   116
                     };
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   117
                    subindex TestSlave_Index1005[] = 
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   118
                     {
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   119
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1005 }
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   120
                     };
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   121
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   122
/* index 0x1006 :   Communication / Cycle Period. */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   123
                    UNS32 TestSlave_obj1006 = 0x0;	/* 0 */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   124
                    ODCallback_t TestSlave_Index1006_callbacks[] = 
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   125
                     {
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   126
                       NULL,
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   127
                     };
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   128
                    subindex TestSlave_Index1006[] = 
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   129
                     {
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   130
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1006 }
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   131
                     };
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   132
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   133
/* index 0x1010 :   Store parameters. */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   134
                    UNS8 TestSlave_highestSubIndex_obj1010 = 4; /* number of subindex - 1*/
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   135
                    UNS32 TestSlave_obj1010_Save_All_Parameters = 0x0;	/* 0 */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   136
                    UNS32 TestSlave_obj1010_Save_Communication_Parameters = 0x0;	/* 0 */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   137
                    UNS32 TestSlave_obj1010_Save_Application_Parameters = 0x0;	/* 0 */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   138
                    UNS32 TestSlave_obj1010_Save_Manufacturer_Parameters = 0x0;	/* 0 */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   139
                    ODCallback_t TestSlave_Index1010_callbacks[] = 
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   140
                     {
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   141
                       NULL,
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   142
                       NULL,
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   143
                       NULL,
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   144
                       NULL,
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   145
                       NULL,
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   146
                     };
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   147
                    subindex TestSlave_Index1010[] = 
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   148
                     {
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   149
                       { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1010 },
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   150
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1010_Save_All_Parameters },
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   151
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1010_Save_Communication_Parameters },
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   152
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1010_Save_Application_Parameters },
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   153
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1010_Save_Manufacturer_Parameters }
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   154
                     };
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   155
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   156
/* index 0x1011 :   Restore Default Parameters. */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   157
                    UNS8 TestSlave_highestSubIndex_obj1011 = 4; /* number of subindex - 1*/
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   158
                    UNS32 TestSlave_obj1011_Restore_All_Default_Parameters = 0x0;	/* 0 */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   159
                    UNS32 TestSlave_obj1011_Restore_Communication_Default_Parameters = 0x0;	/* 0 */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   160
                    UNS32 TestSlave_obj1011_Restore_Application_Default_Parameters = 0x0;	/* 0 */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   161
                    UNS32 TestSlave_obj1011_Restore_Manufacturer_Default_Parameters = 0x0;	/* 0 */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   162
                    ODCallback_t TestSlave_Index1011_callbacks[] = 
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   163
                     {
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   164
                       NULL,
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   165
                       NULL,
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   166
                       NULL,
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   167
                       NULL,
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   168
                       NULL,
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   169
                     };
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   170
                    subindex TestSlave_Index1011[] = 
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   171
                     {
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   172
                       { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1011 },
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   173
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1011_Restore_All_Default_Parameters },
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   174
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1011_Restore_Communication_Default_Parameters },
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   175
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1011_Restore_Application_Default_Parameters },
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   176
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1011_Restore_Manufacturer_Default_Parameters }
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   177
                     };
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   178
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   179
/* index 0x1016 :   Consumer Heartbeat Time */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   180
                    UNS8 TestSlave_highestSubIndex_obj1016 = 0;
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   181
                    UNS32 TestSlave_obj1016[]={0};
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   182
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   183
/* index 0x1017 :   Producer Heartbeat Time. */
179
763b6d32c1a6 Master configure slave's heartbeat producer time by concise DCF.
greg
parents: 161
diff changeset
   184
                    UNS16 TestSlave_obj1017 = 0x0;	/* 0 */
763b6d32c1a6 Master configure slave's heartbeat producer time by concise DCF.
greg
parents: 161
diff changeset
   185
                    ODCallback_t TestSlave_Index1017_callbacks[] = 
763b6d32c1a6 Master configure slave's heartbeat producer time by concise DCF.
greg
parents: 161
diff changeset
   186
                     {
763b6d32c1a6 Master configure slave's heartbeat producer time by concise DCF.
greg
parents: 161
diff changeset
   187
                       NULL,
763b6d32c1a6 Master configure slave's heartbeat producer time by concise DCF.
greg
parents: 161
diff changeset
   188
                     };
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   189
                    subindex TestSlave_Index1017[] = 
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   190
                     {
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   191
                       { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1017 }
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   192
                     };
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   193
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   194
/* index 0x1018 :   Identity. */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   195
                    UNS8 TestSlave_highestSubIndex_obj1018 = 4; /* number of subindex - 1*/
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   196
                    UNS32 TestSlave_obj1018_Vendor_ID = 0x0;	/* 0 */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   197
                    UNS32 TestSlave_obj1018_Product_Code = 0x0;	/* 0 */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   198
                    UNS32 TestSlave_obj1018_Revision_Number = 0x0;	/* 0 */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   199
                    UNS32 TestSlave_obj1018_Serial_Number = 0x0;	/* 0 */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   200
                    subindex TestSlave_Index1018[] = 
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   201
                     {
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   202
                       { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1018 },
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   203
                       { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1018_Vendor_ID },
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   204
                       { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1018_Product_Code },
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   205
                       { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1018_Revision_Number },
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   206
                       { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1018_Serial_Number }
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   207
                     };
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   208
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   209
/* index 0x1200 :   Server SDO Parameter. */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   210
                    UNS8 TestSlave_highestSubIndex_obj1200 = 2; /* number of subindex - 1*/
307
230d55cb75a4 Updated .od files to keep compatible with $NODEID+... way to express OD entry values, as in EDS.
etisserant
parents: 287
diff changeset
   211
                    UNS32 TestSlave_obj1200_COB_ID_Client_to_Server_Receive_SDO = 0x600;	/* 1536 */
230d55cb75a4 Updated .od files to keep compatible with $NODEID+... way to express OD entry values, as in EDS.
etisserant
parents: 287
diff changeset
   212
                    UNS32 TestSlave_obj1200_COB_ID_Server_to_Client_Transmit_SDO = 0x580;	/* 1408 */
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   213
                    subindex TestSlave_Index1200[] = 
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   214
                     {
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   215
                       { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1200 },
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   216
                       { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1200_COB_ID_Client_to_Server_Receive_SDO },
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   217
                       { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1200_COB_ID_Server_to_Client_Transmit_SDO }
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   218
                     };
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   219
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   220
/* index 0x1800 :   Transmit PDO 1 Parameter. */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   221
                    UNS8 TestSlave_highestSubIndex_obj1800 = 5; /* number of subindex - 1*/
307
230d55cb75a4 Updated .od files to keep compatible with $NODEID+... way to express OD entry values, as in EDS.
etisserant
parents: 287
diff changeset
   222
                    UNS32 TestSlave_obj1800_COB_ID_used_by_PDO = 0x180;	/* 384 */
154
1b3165f2d17d Implemented writeNetworkDictCallBack test in TestMasterSlave example. Fixed callback assignement race condition in sdo.c.
etisserant
parents: 145
diff changeset
   223
                    UNS8 TestSlave_obj1800_Transmission_Type = 0x0;	/* 0 */
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   224
                    UNS16 TestSlave_obj1800_Inhibit_Time = 0x0;	/* 0 */
201
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   225
                    UNS8 TestSlave_obj1800_Compatibility_Entry = 0x0;	/* 0 */
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   226
                    UNS16 TestSlave_obj1800_Event_Timer = 0x0;	/* 0 */
236
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   227
                    ODCallback_t TestSlave_Index1800_callbacks[] = 
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   228
                     {
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   229
                       NULL,
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   230
                       NULL,
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   231
                       NULL,
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   232
                       NULL,
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   233
                       NULL,
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   234
                       NULL,
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   235
                     };
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   236
                    subindex TestSlave_Index1800[] = 
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   237
                     {
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   238
                       { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1800 },
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   239
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1800_COB_ID_used_by_PDO },
161
c4908cc776a9 SetODEntry now call CO_data->storeODSubEntry(Index,SubIndex) for variables to be Stored (when column Save==True in GUI)
etisserant
parents: 154
diff changeset
   240
                       { RW|TO_BE_SAVE, uint8, sizeof (UNS8), (void*)&TestSlave_obj1800_Transmission_Type },
c4908cc776a9 SetODEntry now call CO_data->storeODSubEntry(Index,SubIndex) for variables to be Stored (when column Save==True in GUI)
etisserant
parents: 154
diff changeset
   241
                       { RW|TO_BE_SAVE, uint16, sizeof (UNS16), (void*)&TestSlave_obj1800_Inhibit_Time },
201
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   242
                       { RW, uint8, sizeof (UNS8), (void*)&TestSlave_obj1800_Compatibility_Entry },
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   243
                       { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1800_Event_Timer }
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   244
                     };
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   245
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   246
/* index 0x1801 :   Transmit PDO 2 Parameter. */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   247
                    UNS8 TestSlave_highestSubIndex_obj1801 = 5; /* number of subindex - 1*/
307
230d55cb75a4 Updated .od files to keep compatible with $NODEID+... way to express OD entry values, as in EDS.
etisserant
parents: 287
diff changeset
   248
                    UNS32 TestSlave_obj1801_COB_ID_used_by_PDO = 0x280;	/* 640 */
154
1b3165f2d17d Implemented writeNetworkDictCallBack test in TestMasterSlave example. Fixed callback assignement race condition in sdo.c.
etisserant
parents: 145
diff changeset
   249
                    UNS8 TestSlave_obj1801_Transmission_Type = 0x0;	/* 0 */
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   250
                    UNS16 TestSlave_obj1801_Inhibit_Time = 0x0;	/* 0 */
201
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   251
                    UNS8 TestSlave_obj1801_Compatibility_Entry = 0x0;	/* 0 */
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   252
                    UNS16 TestSlave_obj1801_Event_Timer = 0x0;	/* 0 */
236
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   253
                    ODCallback_t TestSlave_Index1801_callbacks[] = 
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   254
                     {
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   255
                       NULL,
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   256
                       NULL,
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   257
                       NULL,
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   258
                       NULL,
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   259
                       NULL,
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   260
                       NULL,
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   261
                     };
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   262
                    subindex TestSlave_Index1801[] = 
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   263
                     {
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   264
                       { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1801 },
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   265
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1801_COB_ID_used_by_PDO },
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   266
                       { RW, uint8, sizeof (UNS8), (void*)&TestSlave_obj1801_Transmission_Type },
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   267
                       { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1801_Inhibit_Time },
201
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   268
                       { RW, uint8, sizeof (UNS8), (void*)&TestSlave_obj1801_Compatibility_Entry },
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   269
                       { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1801_Event_Timer }
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   270
                     };
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   271
235
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   272
/* index 0x1802 :   Transmit PDO 3 Parameter. */
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   273
                    UNS8 TestSlave_highestSubIndex_obj1802 = 5; /* number of subindex - 1*/
307
230d55cb75a4 Updated .od files to keep compatible with $NODEID+... way to express OD entry values, as in EDS.
etisserant
parents: 287
diff changeset
   274
                    UNS32 TestSlave_obj1802_COB_ID_used_by_PDO = 0x380;	/* 896 */
235
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   275
                    UNS8 TestSlave_obj1802_Transmission_Type = 0xFF;	/* 255 */
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   276
                    UNS16 TestSlave_obj1802_Inhibit_Time = 0x1388;	/* 5000 */
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   277
                    UNS8 TestSlave_obj1802_Compatibility_Entry = 0x0;	/* 0 */
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   278
                    UNS16 TestSlave_obj1802_Event_Timer = 0x3E8;	/* 1000 */
236
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   279
                    ODCallback_t TestSlave_Index1802_callbacks[] = 
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   280
                     {
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   281
                       NULL,
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   282
                       NULL,
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   283
                       NULL,
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   284
                       NULL,
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   285
                       NULL,
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   286
                       NULL,
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   287
                     };
235
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   288
                    subindex TestSlave_Index1802[] = 
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   289
                     {
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   290
                       { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1802 },
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   291
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1802_COB_ID_used_by_PDO },
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   292
                       { RW, uint8, sizeof (UNS8), (void*)&TestSlave_obj1802_Transmission_Type },
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   293
                       { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1802_Inhibit_Time },
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   294
                       { RW, uint8, sizeof (UNS8), (void*)&TestSlave_obj1802_Compatibility_Entry },
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   295
                       { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1802_Event_Timer }
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   296
                     };
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   297
236
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   298
/* index 0x1803 :   Transmit PDO 4 Parameter. */
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   299
                    UNS8 TestSlave_highestSubIndex_obj1803 = 5; /* number of subindex - 1*/
307
230d55cb75a4 Updated .od files to keep compatible with $NODEID+... way to express OD entry values, as in EDS.
etisserant
parents: 287
diff changeset
   300
                    UNS32 TestSlave_obj1803_COB_ID_used_by_PDO = 0x480;	/* 1152 */
236
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   301
                    UNS8 TestSlave_obj1803_Transmission_Type = 0xFC;	/* 252 */
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   302
                    UNS16 TestSlave_obj1803_Inhibit_Time = 0x0;	/* 0 */
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   303
                    UNS8 TestSlave_obj1803_Compatibility_Entry = 0x0;	/* 0 */
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   304
                    UNS16 TestSlave_obj1803_Event_Timer = 0x0;	/* 0 */
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   305
                    ODCallback_t TestSlave_Index1803_callbacks[] = 
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   306
                     {
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   307
                       NULL,
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   308
                       NULL,
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   309
                       NULL,
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   310
                       NULL,
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   311
                       NULL,
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   312
                       NULL,
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   313
                     };
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   314
                    subindex TestSlave_Index1803[] = 
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   315
                     {
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   316
                       { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1803 },
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   317
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1803_COB_ID_used_by_PDO },
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   318
                       { RW, uint8, sizeof (UNS8), (void*)&TestSlave_obj1803_Transmission_Type },
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   319
                       { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1803_Inhibit_Time },
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   320
                       { RW, uint8, sizeof (UNS8), (void*)&TestSlave_obj1803_Compatibility_Entry },
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   321
                       { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1803_Event_Timer }
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   322
                     };
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   323
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   324
/* index 0x1804 :   Transmit PDO 5 Parameter. */
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   325
                    UNS8 TestSlave_highestSubIndex_obj1804 = 5; /* number of subindex - 1*/
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   326
                    UNS32 TestSlave_obj1804_COB_ID_used_by_PDO = 0x401;	/* 1025 */
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   327
                    UNS8 TestSlave_obj1804_Transmission_Type = 0xFD;	/* 253 */
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   328
                    UNS16 TestSlave_obj1804_Inhibit_Time = 0x0;	/* 0 */
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   329
                    UNS8 TestSlave_obj1804_Compatibility_Entry = 0x0;	/* 0 */
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   330
                    UNS16 TestSlave_obj1804_Event_Timer = 0x0;	/* 0 */
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   331
                    ODCallback_t TestSlave_Index1804_callbacks[] = 
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   332
                     {
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   333
                       NULL,
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   334
                       NULL,
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   335
                       NULL,
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   336
                       NULL,
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   337
                       NULL,
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   338
                       NULL,
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   339
                     };
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   340
                    subindex TestSlave_Index1804[] = 
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   341
                     {
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   342
                       { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1804 },
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   343
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1804_COB_ID_used_by_PDO },
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   344
                       { RW, uint8, sizeof (UNS8), (void*)&TestSlave_obj1804_Transmission_Type },
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   345
                       { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1804_Inhibit_Time },
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   346
                       { RW, uint8, sizeof (UNS8), (void*)&TestSlave_obj1804_Compatibility_Entry },
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   347
                       { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1804_Event_Timer }
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   348
                     };
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   349
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   350
/* index 0x1A00 :   Transmit PDO 1 Mapping. */
201
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   351
                    UNS8 TestSlave_highestSubIndex_obj1A00 = 10; /* number of subindex - 1*/
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   352
                    UNS32 TestSlave_obj1A00[] = 
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   353
                    {
201
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   354
                      0x20000001,	/* 536870913 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   355
                      0x20010001,	/* 536936449 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   356
                      0x20020001,	/* 537001985 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   357
                      0x20030001,	/* 537067521 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   358
                      0x20040001,	/* 537133057 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   359
                      0x20050001,	/* 537198593 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   360
                      0x20060001,	/* 537264129 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   361
                      0x20070001,	/* 537329665 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   362
                      0x20080008,	/* 537395208 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   363
                      0x20090020	/* 537460768 */
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   364
                    };
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   365
                    subindex TestSlave_Index1A00[] = 
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   366
                     {
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   367
                       { RW, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1A00 },
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   368
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[0] },
201
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   369
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[1] },
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   370
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[2] },
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   371
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[3] },
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   372
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[4] },
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   373
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[5] },
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   374
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[6] },
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   375
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[7] },
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   376
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[8] },
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   377
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[9] }
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   378
                     };
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   379
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   380
/* index 0x1A01 :   Transmit PDO 2 Mapping. */
201
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   381
                    UNS8 TestSlave_highestSubIndex_obj1A01 = 1; /* number of subindex - 1*/
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   382
                    UNS32 TestSlave_obj1A01[] = 
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   383
                    {
201
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   384
                      0x200A0010	/* 537526288 */
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   385
                    };
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   386
                    subindex TestSlave_Index1A01[] = 
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   387
                     {
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   388
                       { RW, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1A01 },
201
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   389
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A01[0] }
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   390
                     };
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   391
235
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   392
/* index 0x1A02 :   Transmit PDO 3 Mapping. */
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   393
                    UNS8 TestSlave_highestSubIndex_obj1A02 = 1; /* number of subindex - 1*/
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   394
                    UNS32 TestSlave_obj1A02[] = 
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   395
                    {
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   396
                      0x200B0010	/* 537591824 */
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   397
                    };
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   398
                    subindex TestSlave_Index1A02[] = 
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   399
                     {
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   400
                       { RW, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1A02 },
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   401
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A02[0] }
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   402
                     };
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   403
236
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   404
/* index 0x1A03 :   Transmit PDO 4 Mapping. */
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   405
                    UNS8 TestSlave_highestSubIndex_obj1A03 = 1; /* number of subindex - 1*/
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   406
                    UNS32 TestSlave_obj1A03[] = 
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   407
                    {
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   408
                      0x200C0010	/* 537657360 */
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   409
                    };
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   410
                    subindex TestSlave_Index1A03[] = 
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   411
                     {
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   412
                       { RW, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1A03 },
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   413
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A03[0] }
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   414
                     };
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   415
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   416
/* index 0x1A04 :   Transmit PDO 5 Mapping. */
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   417
                    UNS8 TestSlave_highestSubIndex_obj1A04 = 1; /* number of subindex - 1*/
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   418
                    UNS32 TestSlave_obj1A04[] = 
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   419
                    {
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   420
                      0x200C0010	/* 537657360 */
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   421
                    };
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   422
                    subindex TestSlave_Index1A04[] = 
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   423
                     {
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   424
                       { RW, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1A04 },
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   425
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A04[0] }
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   426
                     };
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   427
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   428
/* index 0x2000 :   Mapped variable SlaveMap1 */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   429
                    subindex TestSlave_Index2000[] = 
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   430
                     {
201
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   431
                       { RW, boolean, sizeof (UNS8), (void*)&SlaveMap1 }
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   432
                     };
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   433
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   434
/* index 0x2001 :   Mapped variable SlaveMap2 */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   435
                    subindex TestSlave_Index2001[] = 
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   436
                     {
201
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   437
                       { RW, boolean, sizeof (UNS8), (void*)&SlaveMap2 }
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   438
                     };
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   439
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   440
/* index 0x2002 :   Mapped variable SlaveMap3 */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   441
                    subindex TestSlave_Index2002[] = 
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   442
                     {
201
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   443
                       { RW, boolean, sizeof (UNS8), (void*)&SlaveMap3 }
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   444
                     };
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   445
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   446
/* index 0x2003 :   Mapped variable SlaveMap4 */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   447
                    subindex TestSlave_Index2003[] = 
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   448
                     {
201
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   449
                       { RW, boolean, sizeof (UNS8), (void*)&SlaveMap4 }
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   450
                     };
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   451
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   452
/* index 0x2004 :   Mapped variable SlaveMap5 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   453
                    subindex TestSlave_Index2004[] = 
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   454
                     {
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   455
                       { RW, boolean, sizeof (UNS8), (void*)&SlaveMap5 }
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   456
                     };
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   457
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   458
/* index 0x2005 :   Mapped variable SlaveMap6 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   459
                    subindex TestSlave_Index2005[] = 
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   460
                     {
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   461
                       { RW, boolean, sizeof (UNS8), (void*)&SlaveMap6 }
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   462
                     };
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   463
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   464
/* index 0x2006 :   Mapped variable SlaveMap7 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   465
                    subindex TestSlave_Index2006[] = 
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   466
                     {
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   467
                       { RW, boolean, sizeof (UNS8), (void*)&SlaveMap7 }
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   468
                     };
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   469
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   470
/* index 0x2007 :   Mapped variable SlaveMap8 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   471
                    subindex TestSlave_Index2007[] = 
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   472
                     {
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   473
                       { RW, boolean, sizeof (UNS8), (void*)&SlaveMap8 }
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   474
                     };
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   475
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   476
/* index 0x2008 :   Mapped variable SlaveMap9 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   477
                    subindex TestSlave_Index2008[] = 
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   478
                     {
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   479
                       { RW, uint8, sizeof (UNS8), (void*)&SlaveMap9 }
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   480
                     };
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   481
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   482
/* index 0x2009 :   Mapped variable SlaveMap10 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   483
                    subindex TestSlave_Index2009[] = 
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   484
                     {
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   485
                       { RW, uint32, sizeof (UNS32), (void*)&SlaveMap10 }
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   486
                     };
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   487
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   488
/* index 0x200A :   Mapped variable SlaveMap11 */
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   489
                    subindex TestSlave_Index200A[] = 
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   490
                     {
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   491
                       { RW, uint16, sizeof (UNS16), (void*)&SlaveMap11 }
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   492
                     };
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   493
235
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   494
/* index 0x200B :   Mapped variable SlaveMap12 */
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   495
                    subindex TestSlave_Index200B[] = 
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   496
                     {
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   497
                       { RW, int16, sizeof (INTEGER16), (void*)&SlaveMap12 }
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   498
                     };
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   499
236
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   500
/* index 0x200C :   Mapped variable SlaveMap13 */
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   501
                    subindex TestSlave_Index200C[] = 
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   502
                     {
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   503
                       { RW, int16, sizeof (INTEGER16), (void*)&SlaveMap13 }
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   504
                     };
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   505
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   506
const indextable TestSlave_objdict[] = 
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   507
{
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   508
  { (subindex*)TestSlave_Index1000,sizeof(TestSlave_Index1000)/sizeof(TestSlave_Index1000[0]), 0x1000},
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   509
  { (subindex*)TestSlave_Index1001,sizeof(TestSlave_Index1001)/sizeof(TestSlave_Index1001[0]), 0x1001},
284
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   510
  { (subindex*)TestSlave_Index1003,sizeof(TestSlave_Index1003)/sizeof(TestSlave_Index1003[0]), 0x1003},
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   511
  { (subindex*)TestSlave_Index1005,sizeof(TestSlave_Index1005)/sizeof(TestSlave_Index1005[0]), 0x1005},
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   512
  { (subindex*)TestSlave_Index1006,sizeof(TestSlave_Index1006)/sizeof(TestSlave_Index1006[0]), 0x1006},
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   513
  { (subindex*)TestSlave_Index1010,sizeof(TestSlave_Index1010)/sizeof(TestSlave_Index1010[0]), 0x1010},
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   514
  { (subindex*)TestSlave_Index1011,sizeof(TestSlave_Index1011)/sizeof(TestSlave_Index1011[0]), 0x1011},
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   515
  { (subindex*)TestSlave_Index1017,sizeof(TestSlave_Index1017)/sizeof(TestSlave_Index1017[0]), 0x1017},
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   516
  { (subindex*)TestSlave_Index1018,sizeof(TestSlave_Index1018)/sizeof(TestSlave_Index1018[0]), 0x1018},
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   517
  { (subindex*)TestSlave_Index1200,sizeof(TestSlave_Index1200)/sizeof(TestSlave_Index1200[0]), 0x1200},
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   518
  { (subindex*)TestSlave_Index1800,sizeof(TestSlave_Index1800)/sizeof(TestSlave_Index1800[0]), 0x1800},
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   519
  { (subindex*)TestSlave_Index1801,sizeof(TestSlave_Index1801)/sizeof(TestSlave_Index1801[0]), 0x1801},
235
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   520
  { (subindex*)TestSlave_Index1802,sizeof(TestSlave_Index1802)/sizeof(TestSlave_Index1802[0]), 0x1802},
236
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   521
  { (subindex*)TestSlave_Index1803,sizeof(TestSlave_Index1803)/sizeof(TestSlave_Index1803[0]), 0x1803},
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   522
  { (subindex*)TestSlave_Index1804,sizeof(TestSlave_Index1804)/sizeof(TestSlave_Index1804[0]), 0x1804},
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   523
  { (subindex*)TestSlave_Index1A00,sizeof(TestSlave_Index1A00)/sizeof(TestSlave_Index1A00[0]), 0x1A00},
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   524
  { (subindex*)TestSlave_Index1A01,sizeof(TestSlave_Index1A01)/sizeof(TestSlave_Index1A01[0]), 0x1A01},
235
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   525
  { (subindex*)TestSlave_Index1A02,sizeof(TestSlave_Index1A02)/sizeof(TestSlave_Index1A02[0]), 0x1A02},
236
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   526
  { (subindex*)TestSlave_Index1A03,sizeof(TestSlave_Index1A03)/sizeof(TestSlave_Index1A03[0]), 0x1A03},
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   527
  { (subindex*)TestSlave_Index1A04,sizeof(TestSlave_Index1A04)/sizeof(TestSlave_Index1A04[0]), 0x1A04},
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   528
  { (subindex*)TestSlave_Index2000,sizeof(TestSlave_Index2000)/sizeof(TestSlave_Index2000[0]), 0x2000},
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   529
  { (subindex*)TestSlave_Index2001,sizeof(TestSlave_Index2001)/sizeof(TestSlave_Index2001[0]), 0x2001},
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   530
  { (subindex*)TestSlave_Index2002,sizeof(TestSlave_Index2002)/sizeof(TestSlave_Index2002[0]), 0x2002},
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   531
  { (subindex*)TestSlave_Index2003,sizeof(TestSlave_Index2003)/sizeof(TestSlave_Index2003[0]), 0x2003},
201
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   532
  { (subindex*)TestSlave_Index2004,sizeof(TestSlave_Index2004)/sizeof(TestSlave_Index2004[0]), 0x2004},
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   533
  { (subindex*)TestSlave_Index2005,sizeof(TestSlave_Index2005)/sizeof(TestSlave_Index2005[0]), 0x2005},
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   534
  { (subindex*)TestSlave_Index2006,sizeof(TestSlave_Index2006)/sizeof(TestSlave_Index2006[0]), 0x2006},
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   535
  { (subindex*)TestSlave_Index2007,sizeof(TestSlave_Index2007)/sizeof(TestSlave_Index2007[0]), 0x2007},
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   536
  { (subindex*)TestSlave_Index2008,sizeof(TestSlave_Index2008)/sizeof(TestSlave_Index2008[0]), 0x2008},
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   537
  { (subindex*)TestSlave_Index2009,sizeof(TestSlave_Index2009)/sizeof(TestSlave_Index2009[0]), 0x2009},
2966cd34162a Boolean variable mapped in PDO
greg
parents: 179
diff changeset
   538
  { (subindex*)TestSlave_Index200A,sizeof(TestSlave_Index200A)/sizeof(TestSlave_Index200A[0]), 0x200A},
235
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   539
  { (subindex*)TestSlave_Index200B,sizeof(TestSlave_Index200B)/sizeof(TestSlave_Index200B[0]), 0x200B},
236
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   540
  { (subindex*)TestSlave_Index200C,sizeof(TestSlave_Index200C)/sizeof(TestSlave_Index200C[0]), 0x200C},
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   541
};
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   542
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   543
const indextable * TestSlave_scanIndexOD (UNS16 wIndex, UNS32 * errorCode, ODCallback_t **callbacks)
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   544
{
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   545
	int i;
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   546
	*callbacks = NULL;
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   547
	switch(wIndex){
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   548
		case 0x1000: i = 0;break;
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   549
		case 0x1001: i = 1;break;
284
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   550
		case 0x1003: i = 2;*callbacks = TestSlave_Index1003_callbacks; break;
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   551
		case 0x1005: i = 3;*callbacks = TestSlave_Index1005_callbacks; break;
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   552
		case 0x1006: i = 4;*callbacks = TestSlave_Index1006_callbacks; break;
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   553
		case 0x1010: i = 5;*callbacks = TestSlave_Index1010_callbacks; break;
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   554
		case 0x1011: i = 6;*callbacks = TestSlave_Index1011_callbacks; break;
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   555
		case 0x1017: i = 7;*callbacks = TestSlave_Index1017_callbacks; break;
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   556
		case 0x1018: i = 8;break;
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   557
		case 0x1200: i = 9;break;
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   558
		case 0x1800: i = 10;*callbacks = TestSlave_Index1800_callbacks; break;
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   559
		case 0x1801: i = 11;*callbacks = TestSlave_Index1801_callbacks; break;
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   560
		case 0x1802: i = 12;*callbacks = TestSlave_Index1802_callbacks; break;
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   561
		case 0x1803: i = 13;*callbacks = TestSlave_Index1803_callbacks; break;
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   562
		case 0x1804: i = 14;*callbacks = TestSlave_Index1804_callbacks; break;
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   563
		case 0x1A00: i = 15;break;
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   564
		case 0x1A01: i = 16;break;
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   565
		case 0x1A02: i = 17;break;
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   566
		case 0x1A03: i = 18;break;
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   567
		case 0x1A04: i = 19;break;
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   568
		case 0x2000: i = 20;break;
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   569
		case 0x2001: i = 21;break;
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   570
		case 0x2002: i = 22;break;
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   571
		case 0x2003: i = 23;break;
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   572
		case 0x2004: i = 24;break;
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   573
		case 0x2005: i = 25;break;
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   574
		case 0x2006: i = 26;break;
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   575
		case 0x2007: i = 27;break;
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   576
		case 0x2008: i = 28;break;
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   577
		case 0x2009: i = 29;break;
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   578
		case 0x200A: i = 30;break;
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   579
		case 0x200B: i = 31;break;
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   580
		case 0x200C: i = 32;break;
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   581
		default:
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   582
			*errorCode = OD_NO_SUCH_OBJECT;
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   583
			return NULL;
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   584
	}
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   585
	*errorCode = OD_SUCCESSFUL;
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   586
	return &TestSlave_objdict[i];
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   587
}
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   588
235
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   589
/* 
f812bf6b7237 Preliminary implementation of Event Timer and Inhibit Timer driven TPDO
etisserant
parents: 201
diff changeset
   590
 * To count at which received SYNC a PDO must be sent.
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   591
 * Even if no pdoTransmit are defined, at least one entry is computed
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   592
 * for compilations issues.
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   593
 */
236
905677ed00f3 Full preliminary implementation of TPDO transmit type:
etisserant
parents: 235
diff changeset
   594
s_PDO_status TestSlave_PDO_status[5] = {s_PDO_staus_Initializer,s_PDO_staus_Initializer,s_PDO_staus_Initializer,s_PDO_staus_Initializer,s_PDO_staus_Initializer};
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   595
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   596
quick_index TestSlave_firstIndex = {
284
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   597
  9, /* SDO_SVR */
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   598
  0, /* SDO_CLT */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   599
  0, /* PDO_RCV */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   600
  0, /* PDO_RCV_MAP */
284
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   601
  10, /* PDO_TRS */
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   602
  15 /* PDO_TRS_MAP */
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   603
};
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   604
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   605
quick_index TestSlave_lastIndex = {
284
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   606
  9, /* SDO_SVR */
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   607
  0, /* SDO_CLT */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   608
  0, /* PDO_RCV */
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   609
  0, /* PDO_RCV_MAP */
284
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   610
  14, /* PDO_TRS */
24bf3d692993 Implemented EMCY objects.
luis
parents: 236
diff changeset
   611
  19 /* PDO_TRS_MAP */
145
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   612
};
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   613
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   614
UNS16 TestSlave_ObjdictSize = sizeof(TestSlave_objdict)/sizeof(TestSlave_objdict[0]); 
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   615
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   616
CO_Data TestSlave_Data = CANOPEN_NODE_DATA_INITIALIZER(TestSlave);
e747d2e26af0 Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff changeset
   617