objdictgen/examples/example_objdict.c
author leonid
Wed, 14 Feb 2007 22:19:53 +0100
changeset 105 dd6a1f057294
parent 0 4472ee7c6c3e
child 281 685d9a26e4f9
permissions -rw-r--r--
file configure.win32.bat was initially added on branch BRANCH_WIN32PORT.
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     1
/*
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     2
This file is part of CanFestival, a library implementing CanOpen Stack. 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     3
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     4
Copyright (C): Edouard TISSERANT and Francis DUPIN
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     5
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     6
See COPYING file for copyrights details.
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     7
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     8
This library is free software; you can redistribute it and/or
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     9
modify it under the terms of the GNU Lesser General Public
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    10
License as published by the Free Software Foundation; either
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    11
version 2.1 of the License, or (at your option) any later version.
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    12
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    13
This library is distributed in the hope that it will be useful,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    14
but WITHOUT ANY WARRANTY; without even the implied warranty of
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    16
Lesser General Public License for more details.
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    17
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    18
You should have received a copy of the GNU Lesser General Public
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    19
License along with this library; if not, write to the Free Software
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    20
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    21
*/
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    22
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    23
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    24
#include <stddef.h>
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    25
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    26
#include <canfestival/applicfg.h>
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    27
#include "canfestival/def.h"
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    28
#include "canfestival/can.h"
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    29
#include "canfestival/objdictdef.h"
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    30
#include "canfestival/pdo.h"
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    31
#include "canfestival/sdo.h"
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    32
#include "canfestival/sync.h"
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    33
#include "canfestival/lifegrd.h"
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    34
#include "canfestival/nmtSlave.h"
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    35
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    36
/**************************************************************************/
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    37
/* Declaration of the mapped variables                                    */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    38
/**************************************************************************/
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    39
UNS8 seconds = 0;		// Mapped at index 0x2000, subindex 0x01
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    40
UNS8 minutes = 0;		// Mapped at index 0x2000, subindex 0x02
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    41
UNS8 hours = 0;		// Mapped at index 0x2000, subindex 0x03
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    42
UNS8 day = 0;		// Mapped at index 0x2000, subindex 0x04
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    43
UNS32 canopenErrNB = 0;		// Mapped at index 0x6000, subindex 0x00
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    44
UNS32 canopenErrVAL = 0;		// Mapped at index 0x6001, subindex 0x00
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    45
UNS8 strTest[10] = 0;		// Mapped at index 0x6002, subindex 0x00
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    46
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    47
/**************************************************************************/
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    48
/* Declaration of the value range types                                   */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    49
/**************************************************************************/
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    50
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    51
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    52
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    53
UNS32 Linux_slave_valueRangeTest (UNS8 typeValue, UNS32 unsValue, REAL32 realValue)
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    54
{
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    55
  switch (typeValue) {
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    56
  }
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    57
  return 0;
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    58
}
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    59
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    60
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    61
/**************************************************************************/
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    62
/* The node id                                                            */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    63
/**************************************************************************/
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    64
/* node_id default value. 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    65
   This default value is deprecated.
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    66
   You should always overwrite this by using the function setNodeId(UNS8 nodeId) in your C code.
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    67
*/
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    68
#define NODE_ID 0x01
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    69
UNS8 Linux_slave_bDeviceNodeId = NODE_ID;
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    70
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    71
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    72
//*****************************************************************************/
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    73
/* Array of message processing information */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    74
/* Should not be modified */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    75
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    76
const UNS8 Linux_slave_iam_a_slave = 1
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    77
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    78
  // Macros definition
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    79
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    80
/* Beware : 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    81
index                 *must* be writen 4 numbers in hexa
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    82
sub_index             *must* be writen 2 numbers in hexa
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    83
size_variable_in_UNS8 *must* be writen 2 numbers in hexa
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    84
*/
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    85
#define PDO_MAP(index, sub_index, size_variable_in_bits)\
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    86
0x ## index ## sub_index ## size_variable_in_bits
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    87
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    88
/** This macro helps creating the object dictionary entries.
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    89
 *  by calling this macro
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    90
 *  it creates an entry in form of: 7 of entries, pointer to the entry. 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    91
 */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    92
#define DeclareIndexTableEntry(entryname, index)    { (subindex*)entryname,sizeof(entryname)/sizeof(entryname[0]), index}
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    93
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    94
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    95
//
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    96
//                       OBJECT DICTIONARY
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    97
//                   
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    98
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    99
// Make your change, depending of your application
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   100
 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   101
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   102
/* index 0x1000 :   Device type. 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   103
                    You have to change the value below, so
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   104
                    it fits your canopen-slave-module */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   105
 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   106
                    /* Not used, so, should not be modified */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   107
                    
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   108
                    UNS32 Linux_slave_obj1000 = 0;
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   109
                    subindex Linux_slave_Index1000[] =
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   110
                    {
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   111
                      { RO, uint32, sizeof(UNS32), (void*)&Linux_slave_obj1000 }
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   112
                    };
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   113
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   114
/* index 0x1001 :   Error register. 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   115
                    Change the entries to fit your application 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   116
                    Not used, so, should not be modified */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   117
                    /*const*/ UNS8 Linux_slave_obj1001 = 0x0;
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   118
                    /*const*/ subindex Linux_slave_Index1001[] =
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   119
                    {
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   120
                      { RO, uint8, sizeof(UNS8), (void*)&Linux_slave_obj1001 }
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   121
                    };
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   122
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   123
/* index 0x1005 :   COB_ID SYNC */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   124
                    /* Should not be modified */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   125
                    UNS32 Linux_slave_obj1005 = 0x00000080; // bit 30 = 1 : device can generate a SYNC message
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   126
                                                // Beware, it is over written when the node 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   127
                                                // enters in reset mode
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   128
                                                // See initResetMode() in init.c
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   129
                    /*const*/ subindex Linux_slave_Index1005[] =
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   130
                    {
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   131
                      { RW, uint32, sizeof(UNS32), (void*)&Linux_slave_obj1005 }
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   132
                    };
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   133
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   134
/* index 0x1006 :   SYNC period */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   135
                    // For producing the SYNC signal every n micro-seconds.
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   136
                    // Put 0 to not producing SYNC
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   137
                    /*const*/ UNS32 Linux_slave_obj1006 = 0x0; 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   138
                                         // Default 0 to not produce SYNC //
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   139
                                         // Beware, it is over written when the 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   140
                                         // node enters in reset mode.
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   141
                                         // See initResetMode() in init.c
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   142
                    /*const*/ subindex Linux_slave_Index1006[] =
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   143
                    {
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   144
                      { RW, uint32, sizeof(UNS32), (void*)&Linux_slave_obj1006 }
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   145
                    };
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   146
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   147
/* index 0x1007 :   Synchronous Window Length
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   148
                    Seems to be needed by DS401 to generate the SYNC signal ! */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   149
                    /*const*/ UNS32 Linux_slave_obj1007 = 0x0; /* Default 0 */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   150
                    /*const*/ subindex Linux_slave_Index1007[] =
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   151
                    {
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   152
                      { RW, uint32, sizeof(UNS32), (void*)&Linux_slave_obj1007 }
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   153
                    };
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   154
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   155
/* index 0x1008 :   Manufacturer device name */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   156
                    UNS8 Linux_slave_obj1008[] = "Appli_Slave_HC12"; /* Default 0 */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   157
                    subindex Linux_slave_Index1008[] =
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   158
                    {
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   159
                      { RO, uint32, sizeof(Linux_slave_obj1008), (void*)&Linux_slave_obj1008 }
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   160
                    };
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   161
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   162
/* index 0x1009 :   Manufacturer hardware version */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   163
                    UNS8 Linux_slave_obj1009[] = "__DATE__"; /* Default 0 */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   164
                    subindex Linux_slave_Index1009[] =
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   165
                    {
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   166
                      { RO, uint32, sizeof(Linux_slave_obj1009), (void*)&Linux_slave_obj1009 }
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   167
                    };
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   168
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   169
/* index 0x100A :   Manufacturer software version */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   170
                    UNS8 Linux_slave_obj100A[] = __TIME__; /* Default 0 */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   171
                    subindex Linux_slave_Index100A[] =
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   172
                    {
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   173
                      { RO, uint32, Linux_slave_sizeof(obj100A), (void*)&Linux_slave_obj100A}
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   174
                    };
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   175
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   176
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   177
                    TIMER_HANDLE Linux_slave_heartBeatTimers[1] = {TIMER_NONE,};
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   178
/* index 0x1016 :   HeartBeat consumers 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   179
                    The nodes which can send a heartbeat */ 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   180
                    UNS32 Linux_slave_obj1016[] = {// Consumer time for each node 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   181
                    0x00000000}; // Format 0x00NNTTTT (N=Node T=time in ms)
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   182
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   183
                    UNS8 Linux_slave_obj1016_cnt = 1; // 1 nodes could send me
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   184
                                                  // their heartbeat.
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   185
                    subindex Linux_slave_Index1016[] = 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   186
                    {
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   187
                      { RO, uint8, sizeof(UNS8), (void*)&Linux_slave_obj1016_cnt },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   188
                      { RW, uint32, sizeof(UNS32), (void*)&Linux_slave_obj1016[0] }
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   189
                    }; 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   190
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   191
/* index 0x1017 :   Heartbeat producer                    
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   192
                    Every HBProducerTime, the node sends its heartbeat */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   193
                    UNS16 Linux_slave_obj1017 = 0; //HBProducerTime in ms. If 0 : not activated 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   194
                                                     // Beware, it is over written when the 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   195
                                                     // node enters in reset mode.
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   196
                                                     // See initResetMode() in init.c
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   197
                    subindex Linux_slave_Index1017[] =
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   198
                    {
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   199
	              { RW, uint16, sizeof(UNS16), &Linux_slave_obj1017 }
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   200
                    };
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   201
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   202
/* index 0x1018 :   Identity object */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   203
                    /** index 1018: identify object. Adjust the entries for your node/company
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   204
                    */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   205
                    /* Values can be modified */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   206
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   207
                    s_identity Linux_slave_obj1018 =
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   208
                    {
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   209
                      4,       // number of supported entries
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   210
                      0,  // Vendor-ID (given by the can-cia)
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   211
                      0,  // Product Code
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   212
                      0,  // Revision number
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   213
                      0  // serial number
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   214
                    };
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   215
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   216
                    subindex Linux_slave_Index1018[] =
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   217
                    {
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   218
                      { RO, uint8,  sizeof(UNS8),  (void*)&Linux_slave_obj1018.count },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   219
                      { RO, uint32, sizeof(UNS32), (void*)&Linux_slave_obj1018.vendor_id},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   220
                      { RO, uint32, sizeof(UNS32), (void*)&Linux_slave_obj1018.product_code},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   221
                      { RO, uint32, sizeof(UNS32), (void*)&Linux_slave_obj1018.revision_number},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   222
                      { RO, uint32, sizeof(UNS32), (void*)&Linux_slave_obj1018.serial_number}
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   223
                    };
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   224
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   225
/* index 0x1200 :   The SDO Server parameters */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   226
                    /* BEWARE You cannot define more than one SDO server */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   227
                    /* The values should not be modified here, 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   228
                    but can be changed at runtime */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   229
                    // Beware that the default values that you could put here
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   230
                    // will be over written at the initialisation of the node. 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   231
                    // See setNodeId() in init.c
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   232
                    s_sdo_parameter Linux_slave_obj1200  = 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   233
                      { 3,                   // Number of entries. Always 3 for the SDO	       
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   234
                        0x601,     // The cob_id transmited in CAN msg to the server     
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   235
                        0x581,     // The cob_id received in CAN msg from the server  
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   236
                        0x01      // The node id of the client. Should not be modified
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   237
                      };
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   238
                    subindex Linux_slave_Index1200[] =
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   239
                    {
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   240
                      { RO, uint8,  sizeof( UNS8 ), (void*)&Linux_slave_obj1200.count },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   241
                      { RO, uint32, sizeof( UNS32), (void*)&Linux_slave_obj1200.cob_id_client },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   242
                      { RO, uint32, sizeof( UNS32), (void*)&Linux_slave_obj1200.cob_id_server },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   243
                      { RW, uint8,  sizeof( UNS8),  (void*)&Linux_slave_obj1200.node_id }
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   244
                    };
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   245
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   246
/* index 0x1280 :   SDO client parameter */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   247
                    s_sdo_parameter Linux_slave_obj1280 = 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   248
                      { 3,     // Nb of entries 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   249
                        0x600, // cobid transmited to the server. The good value should be 0x600 + server nodeId
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   250
                        0x580, // cobid received from the server. The good value should be 0x580 + server nodeId
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   251
                        0x01  // server NodeId
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   252
                      };
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   253
                    subindex Linux_slave_Index1280[] = 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   254
                      { 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   255
                        { RO, uint8, sizeof( UNS8  ), (void*)&Linux_slave_obj1280.count },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   256
                        { RW, uint8, sizeof( UNS32 ), (void*)&Linux_slave_obj1280.cob_id_client },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   257
                        { RW, uint8, sizeof( UNS32 ), (void*)&Linux_slave_obj1280.cob_id_server },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   258
                        { RW, uint8, sizeof( UNS8  ), (void*)&Linux_slave_obj1280.node_id }
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   259
                      }; 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   260
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   261
/* index 0x1400 :   PDO receive communication parameter */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   262
                    s_pdo_communication_parameter Linux_slave_obj1400 = 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   263
                      { 2, // Largest subindex supported 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   264
                        0x0, // Default COBID (overwritten at init for index 0x1400 to 0x1403)
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   265
                        253 // Transmission type. See objdictdef.h 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   266
                      };
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   267
                    subindex Linux_slave_Index1400[] = 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   268
                      { 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   269
                        { RO, uint8, sizeof( UNS8  ), (void*)&Linux_slave_obj1400.count },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   270
                        { RW, uint8, sizeof( UNS32 ), (void*)&Linux_slave_obj1400.cob_id },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   271
                        { RW, uint8, sizeof( UNS8  ), (void*)&Linux_slave_obj1400.type },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   272
                      }; 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   273
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   274
/* index 0x1401 :   PDO receive communication parameter */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   275
                    s_pdo_communication_parameter Linux_slave_obj1401 = 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   276
                      { 2, // Largest subindex supported 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   277
                        0x0, // Default COBID (overwritten at init for index 0x1400 to 0x1403)
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   278
                        253 // Transmission type. See objdictdef.h 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   279
                      };
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   280
                    subindex Linux_slave_Index1401[] = 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   281
                      { 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   282
                        { RO, uint8, sizeof( UNS8  ), (void*)&Linux_slave_obj1401.count },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   283
                        { RW, uint8, sizeof( UNS32 ), (void*)&Linux_slave_obj1401.cob_id },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   284
                        { RW, uint8, sizeof( UNS8  ), (void*)&Linux_slave_obj1401.type },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   285
                      }; 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   286
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   287
/* index 0x1402 :   PDO receive communication parameter */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   288
                    s_pdo_communication_parameter Linux_slave_obj1402 = 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   289
                      { 2, // Largest subindex supported 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   290
                        0x0, // Default COBID (overwritten at init for index 0x1400 to 0x1403)
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   291
                        253 // Transmission type. See objdictdef.h 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   292
                      };
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   293
                    subindex Linux_slave_Index1402[] = 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   294
                      { 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   295
                        { RO, uint8, sizeof( UNS8  ), (void*)&Linux_slave_obj1402.count },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   296
                        { RW, uint8, sizeof( UNS32 ), (void*)&Linux_slave_obj1402.cob_id },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   297
                        { RW, uint8, sizeof( UNS8  ), (void*)&Linux_slave_obj1402.type },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   298
                      }; 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   299
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   300
/* index 0x1600 :   PDO receive mapping parameter of PDO communication index 0x1400 */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   301
                    UNS8 Linux_slave_obj1600_cnt = 0; // Number of mapped variables
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   302
                    UNS32 Linux_slave_obj1600_mappedVar[] = { 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   303
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   304
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   305
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   306
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   307
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   308
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   309
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   310
                        0x00000000
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   311
                      };
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   312
                    subindex Linux_slave_Index1600[] = 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   313
                      { 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   314
                        { RW, uint8, sizeof( UNS8  ), (void*)&Linux_slave_obj1600_cnt },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   315
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1600_mappedVar[0]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   316
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1600_mappedVar[1]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   317
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1600_mappedVar[2]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   318
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1600_mappedVar[3]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   319
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1600_mappedVar[4]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   320
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1600_mappedVar[5]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   321
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1600_mappedVar[6]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   322
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1600_mappedVar[7]}
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   323
                      }; 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   324
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   325
/* index 0x1601 :   PDO receive mapping parameter of PDO communication index 0x1401 */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   326
                    UNS8 Linux_slave_obj1601_cnt = 0; // Number of mapped variables
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   327
                    UNS32 Linux_slave_obj1601_mappedVar[] = { 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   328
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   329
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   330
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   331
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   332
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   333
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   334
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   335
                        0x00000000
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   336
                      };
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   337
                    subindex Linux_slave_Index1601[] = 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   338
                      { 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   339
                        { RW, uint8, sizeof( UNS8  ), (void*)&Linux_slave_obj1601_cnt },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   340
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1601_mappedVar[0]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   341
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1601_mappedVar[1]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   342
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1601_mappedVar[2]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   343
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1601_mappedVar[3]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   344
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1601_mappedVar[4]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   345
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1601_mappedVar[5]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   346
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1601_mappedVar[6]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   347
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1601_mappedVar[7]}
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   348
                      }; 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   349
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   350
/* index 0x1602 :   PDO receive mapping parameter of PDO communication index 0x1402 */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   351
                    UNS8 Linux_slave_obj1602_cnt = 0; // Number of mapped variables
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   352
                    UNS32 Linux_slave_obj1602_mappedVar[] = { 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   353
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   354
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   355
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   356
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   357
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   358
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   359
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   360
                        0x00000000
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   361
                      };
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   362
                    subindex Linux_slave_Index1602[] = 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   363
                      { 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   364
                        { RW, uint8, sizeof( UNS8  ), (void*)&Linux_slave_obj1602_cnt },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   365
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1602_mappedVar[0]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   366
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1602_mappedVar[1]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   367
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1602_mappedVar[2]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   368
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1602_mappedVar[3]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   369
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1602_mappedVar[4]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   370
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1602_mappedVar[5]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   371
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1602_mappedVar[6]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   372
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1602_mappedVar[7]}
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   373
                      }; 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   374
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   375
/* index 0x1800 :   PDO transmit communication parameter */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   376
                    s_pdo_communication_parameter Linux_slave_obj1800 = 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   377
                      { 2, // Largest subindex supported 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   378
                        0x0, // Default COBID (overwritten at init for index 0x1400 to 0x1403)
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   379
                        253 // Transmission type. See objdictdef.h 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   380
                      };
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   381
                    subindex Linux_slave_Index1800[] = 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   382
                      { 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   383
                        { RO, uint8, sizeof( UNS8  ), (void*)&Linux_slave_obj1800.count },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   384
                        { RW, uint8, sizeof( UNS32 ), (void*)&Linux_slave_obj1800.cob_id },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   385
                        { RW, uint8, sizeof( UNS8  ), (void*)&Linux_slave_obj1800.type },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   386
                      }; 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   387
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   388
/* index 0x1801 :   PDO transmit communication parameter */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   389
                    s_pdo_communication_parameter Linux_slave_obj1801 = 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   390
                      { 2, // Largest subindex supported 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   391
                        0x0, // Default COBID (overwritten at init for index 0x1400 to 0x1403)
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   392
                        253 // Transmission type. See objdictdef.h 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   393
                      };
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   394
                    subindex Linux_slave_Index1801[] = 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   395
                      { 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   396
                        { RO, uint8, sizeof( UNS8  ), (void*)&Linux_slave_obj1801.count },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   397
                        { RW, uint8, sizeof( UNS32 ), (void*)&Linux_slave_obj1801.cob_id },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   398
                        { RW, uint8, sizeof( UNS8  ), (void*)&Linux_slave_obj1801.type },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   399
                      }; 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   400
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   401
/* index 0x1802 :   PDO transmit communication parameter */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   402
                    s_pdo_communication_parameter Linux_slave_obj1802 = 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   403
                      { 2, // Largest subindex supported 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   404
                        0x0, // Default COBID (overwritten at init for index 0x1400 to 0x1403)
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   405
                        253 // Transmission type. See objdictdef.h 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   406
                      };
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   407
                    subindex Linux_slave_Index1802[] = 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   408
                      { 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   409
                        { RO, uint8, sizeof( UNS8  ), (void*)&Linux_slave_obj1802.count },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   410
                        { RW, uint8, sizeof( UNS32 ), (void*)&Linux_slave_obj1802.cob_id },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   411
                        { RW, uint8, sizeof( UNS8  ), (void*)&Linux_slave_obj1802.type },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   412
                      }; 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   413
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   414
/* index 0x1A00 :   PDO transmit mapping parameter of PDO communication index 0x1800 */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   415
                    UNS8 Linux_slave_obj1A00_cnt = 0; // Number of mapped variables
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   416
                    UNS32 Linux_slave_obj1A00_mappedVar[] = { 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   417
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   418
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   419
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   420
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   421
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   422
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   423
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   424
                        0x00000000
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   425
                      };
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   426
                    subindex Linux_slave_Index1A00[] = 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   427
                      { 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   428
                        { RW, uint8, sizeof( UNS8  ), (void*)&Linux_slave_obj1A00_cnt },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   429
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1A00_mappedVar[0]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   430
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1A00_mappedVar[1]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   431
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1A00_mappedVar[2]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   432
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1A00_mappedVar[3]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   433
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1A00_mappedVar[4]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   434
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1A00_mappedVar[5]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   435
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1A00_mappedVar[6]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   436
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1A00_mappedVar[7]}
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   437
                      }; 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   438
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   439
/* index 0x1A01 :   PDO transmit mapping parameter of PDO communication index 0x1801 */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   440
                    UNS8 Linux_slave_obj1A01_cnt = 0; // Number of mapped variables
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   441
                    UNS32 Linux_slave_obj1A01_mappedVar[] = { 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   442
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   443
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   444
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   445
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   446
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   447
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   448
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   449
                        0x00000000
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   450
                      };
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   451
                    subindex Linux_slave_Index1A01[] = 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   452
                      { 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   453
                        { RW, uint8, sizeof( UNS8  ), (void*)&Linux_slave_obj1A01_cnt },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   454
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1A01_mappedVar[0]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   455
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1A01_mappedVar[1]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   456
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1A01_mappedVar[2]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   457
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1A01_mappedVar[3]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   458
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1A01_mappedVar[4]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   459
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1A01_mappedVar[5]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   460
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1A01_mappedVar[6]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   461
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1A01_mappedVar[7]}
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   462
                      }; 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   463
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   464
/* index 0x1A02 :   PDO transmit mapping parameter of PDO communication index 0x1802 */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   465
                    UNS8 Linux_slave_obj1A02_cnt = 0; // Number of mapped variables
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   466
                    UNS32 Linux_slave_obj1A02_mappedVar[] = { 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   467
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   468
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   469
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   470
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   471
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   472
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   473
                        0x00000000,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   474
                        0x00000000
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   475
                      };
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   476
                    subindex Linux_slave_Index1A02[] = 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   477
                      { 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   478
                        { RW, uint8, sizeof( UNS8  ), (void*)&Linux_slave_obj1A02_cnt },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   479
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1A02_mappedVar[0]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   480
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1A02_mappedVar[1]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   481
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1A02_mappedVar[2]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   482
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1A02_mappedVar[3]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   483
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1A02_mappedVar[4]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   484
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1A02_mappedVar[5]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   485
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1A02_mappedVar[6]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   486
                        { RW, uint32, sizeof( UNS32 ), (void*)&Linux_slave_obj1A02_mappedVar[7]}
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   487
                      }; 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   488
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   489
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   490
/* index 0x2000 :   Mapped variable */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   491
                    UNS8 Linux_slave_highestSubIndex_2000 = 4; // number of subindex - 1
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   492
                    subindex Linux_slave_Index2000[] = 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   493
                     {
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   494
                       { RO, uint8, sizeof (UNS8), (void*)&Linux_slave_highestSubIndex_2000 },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   495
                       { RW, uint8, sizeof (UNS8), (void*)&seconds },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   496
                       { RW, uint8, sizeof (UNS8), (void*)&minutes },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   497
                       { RW, uint8, sizeof (UNS8), (void*)&hours },
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   498
                       { RW, uint8, sizeof (UNS8), (void*)&day }
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   499
                     };
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   500
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   501
/* index 0x6000 :   Mapped variable */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   502
                    UNS8 Linux_slave_highestSubIndex_6000 = 0; // number of subindex - 1
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   503
                    subindex Linux_slave_Index6000[] = 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   504
                     {
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   505
                       { RW, uint32, sizeof (UNS32), (void*)&canopenErrNB }
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   506
                     };
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   507
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   508
/* index 0x6001 :   Mapped variable */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   509
                    UNS8 Linux_slave_highestSubIndex_6001 = 0; // number of subindex - 1
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   510
                    subindex Linux_slave_Index6001[] = 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   511
                     {
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   512
                       { RW, uint32, sizeof (UNS32), (void*)&canopenErrVAL }
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   513
                     };
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   514
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   515
/* index 0x6002 :   Mapped variable */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   516
                    UNS8 Linux_slave_highestSubIndex_6002 = 0; // number of subindex - 1
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   517
                    subindex Linux_slave_Index6002[] = 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   518
                     {
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   519
                       { RW, visible_string, sizeof (strTest), (void*)&strTest }
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   520
                     };
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   521
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   522
const indextable Linux_slave_objdict[] = 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   523
{
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   524
  DeclareIndexTableEntry(Linux_slave_Index1000, 0x1000),
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   525
  DeclareIndexTableEntry(Linux_slave_Index1001, 0x1001),
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   526
  DeclareIndexTableEntry(Linux_slave_Index1005, 0x1005),
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   527
  DeclareIndexTableEntry(Linux_slave_Index1006, 0x1006),
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   528
  DeclareIndexTableEntry(Linux_slave_Index1007, 0x1007),
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   529
  DeclareIndexTableEntry(Linux_slave_Index1008, 0x1008),
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   530
  DeclareIndexTableEntry(Linux_slave_Index1009, 0x1009),
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   531
  DeclareIndexTableEntry(Linux_slave_Index100A, 0x100A),
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   532
  DeclareIndexTableEntry(Linux_slave_Index1016, 0x1016),
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   533
  DeclareIndexTableEntry(Linux_slave_Index1017, 0x1017),
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   534
  DeclareIndexTableEntry(Linux_slave_Index1018, 0x1018),
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   535
  DeclareIndexTableEntry(Linux_slave_Index1200, 0x1200),
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   536
  DeclareIndexTableEntry(Linux_slave_Index1280, 0x1280),
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   537
  DeclareIndexTableEntry(Linux_slave_Index1400, 0x1400),
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   538
  DeclareIndexTableEntry(Linux_slave_Index1401, 0x1401),
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   539
  DeclareIndexTableEntry(Linux_slave_Index1402, 0x1402),
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   540
  DeclareIndexTableEntry(Linux_slave_Index1600, 0x1600),
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   541
  DeclareIndexTableEntry(Linux_slave_Index1601, 0x1601),
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   542
  DeclareIndexTableEntry(Linux_slave_Index1602, 0x1602),
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   543
  DeclareIndexTableEntry(Linux_slave_Index1800, 0x1800),
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   544
  DeclareIndexTableEntry(Linux_slave_Index1801, 0x1801),
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   545
  DeclareIndexTableEntry(Linux_slave_Index1802, 0x1802),
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   546
  DeclareIndexTableEntry(Linux_slave_Index1A00, 0x1A00),
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   547
  DeclareIndexTableEntry(Linux_slave_Index1A01, 0x1A01),
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   548
  DeclareIndexTableEntry(Linux_slave_Index1A02, 0x1A02),
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   549
  DeclareIndexTableEntry(Linux_slave_Index2000, 0x2000),
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   550
  DeclareIndexTableEntry(Linux_slave_Index6000, 0x6000),
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   551
  DeclareIndexTableEntry(Linux_slave_Index6001, 0x6001),
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   552
  DeclareIndexTableEntry(Linux_slave_Index6002, 0x6002),
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   553
};
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   554
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   555
// To count at which received SYNC a PDO must be sent.
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   556
// Even if no pdoTransmit are defined, at least one entry is computed
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   557
// for compilations issues.
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   558
UNS8 Linux_slave_count_sync[1] = {0, };
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   559
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   560
quick_index Linux_slave_firstIndex = {
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   561
    SDO_SVR : 11,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   562
    SDO_CLT : 12,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   563
    PDO_RCV : 13,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   564
    PDO_RCV_MAP : 16,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   565
    PDO_TRS : 19,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   566
    PDO_TRS_MAP : 22
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   567
}
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   568
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   569
quick_index Linux_slave_lastIndex{
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   570
    SDO_SVR : 11,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   571
    SDO_CLT : 12,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   572
    PDO_RCV : 15,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   573
    PDO_RCV_MAP : 18,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   574
    PDO_TRS : 21,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   575
    PDO_TRS_MAP : 24
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   576
}
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   577
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   578
UNS16 Linux_slave_ObjdictSize = sizeof(Linux_slave_objdict)/sizeof(Linux_slave_objdict[0]); 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   579