examples/gene_SYNC_HCS12/objdict.c
author leonid
Wed, 14 Feb 2007 22:19:53 +0100
changeset 100 b4c844e925ce
parent 80 37354e408645
permissions -rwxr-xr-x
file CanFestival-3.vcproj was initially added on branch BRANCH_WIN32PORT.
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     1
54
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
     2
/* File generated by gen_cfile.py. Should not be modified. */
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
     3
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     4
#include "objdict.h"
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     5
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     6
/**************************************************************************/
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     7
/* Declaration of the mapped variables                                    */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     8
/**************************************************************************/
80
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
     9
UNS16 acceptanceFilter1 = 0x0;		/* Mapped at index 0x2015, subindex 0x00 */
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
    10
UNS16 acceptanceFilter2 = 0x0;		/* Mapped at index 0x2016, subindex 0x00 */
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
    11
UNS16 acceptanceFilter3 = 0x0;		/* Mapped at index 0x2017, subindex 0x00 */
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
    12
UNS16 acceptanceFilter4 = 0x0;		/* Mapped at index 0x2018, subindex 0x00 */
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
    13
UNS16 mask1 = 0x0;		/* Mapped at index 0x2019, subindex 0x00 */
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
    14
UNS16 mask2 = 0x0;		/* Mapped at index 0x2020, subindex 0x00 */
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
    15
UNS16 mask3 = 0x0;		/* Mapped at index 0x2021, subindex 0x00 */
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
    16
UNS16 mask4 = 0x0;		/* Mapped at index 0x2022, subindex 0x00 */
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
    17
UNS8 applyDownloadedFilters = 0x0;		/* Mapped at index 0x2023, subindex 0x00 */
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    18
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    19
/**************************************************************************/
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    20
/* Declaration of the value range types                                   */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    21
/**************************************************************************/
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    22
54
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    23
UNS32 gene_SYNC_valueRangeTest (UNS8 typeValue, void * value)
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    24
{
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    25
  switch (typeValue) {
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    26
  }
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    27
  return 0;
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    28
}
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    29
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    30
/**************************************************************************/
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    31
/* The node id                                                            */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    32
/**************************************************************************/
54
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    33
/* node_id default value.*/
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    34
UNS8 gene_SYNC_bDeviceNodeId = 0x03;
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    35
80
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
    36
/**************************************************************************/
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    37
/* Array of message processing information */
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    38
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    39
const UNS8 gene_SYNC_iam_a_slave = 1;
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    40
80
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
    41
TIMER_HANDLE gene_SYNC_heartBeatTimers[1];
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
    42
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
    43
/*
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
    44
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
    45
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
    46
                               OBJECT DICTIONARY
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
    47
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
    48
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
    49
*/
54
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    50
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    51
/* index 0x1000 :   Device Type. */
80
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
    52
                    UNS32 gene_SYNC_obj1000 = 0x0;	/* 0 */
54
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    53
                    subindex gene_SYNC_Index1000[] = 
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    54
                     {
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    55
                       { RO, uint32, sizeof (UNS32), (void*)&gene_SYNC_obj1000 }
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    56
                     };
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    57
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    58
/* index 0x1001 :   Error Register. */
80
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
    59
                    UNS8 gene_SYNC_obj1001 = 0x0;	/* 0 */
54
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    60
                    subindex gene_SYNC_Index1001[] = 
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    61
                     {
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    62
                       { RO, uint8, sizeof (UNS8), (void*)&gene_SYNC_obj1001 }
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    63
                     };
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    64
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    65
/* index 0x1005 :   SYNC COB ID. */
80
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
    66
                    UNS32 gene_SYNC_obj1005 = 0x40000080;	/* 1073741952 */
54
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    67
                    ODCallback_t gene_SYNC_Index1005_callbacks[] = 
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    68
                     {
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    69
                       NULL,
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    70
                     };
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    71
                    subindex gene_SYNC_Index1005[] = 
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    72
                     {
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    73
                       { RW, uint32, sizeof (UNS32), (void*)&gene_SYNC_obj1005 }
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    74
                     };
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    75
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    76
/* index 0x1006 :   Communication / Cycle Period. */
80
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
    77
                    UNS32 gene_SYNC_obj1006 = 0x2710;	/* 10000 */
54
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    78
                    ODCallback_t gene_SYNC_Index1006_callbacks[] = 
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    79
                     {
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    80
                       NULL,
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    81
                     };
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    82
                    subindex gene_SYNC_Index1006[] = 
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    83
                     {
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    84
                       { RW, uint32, sizeof (UNS32), (void*)&gene_SYNC_obj1006 }
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    85
                     };
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    86
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    87
/* index 0x1008 :   Manufacturer Device Name. */
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    88
                    UNS8 gene_SYNC_obj1008[10] = "GENE_SYNC";
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    89
                    subindex gene_SYNC_Index1008[] = 
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    90
                     {
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    91
                       { RO, visible_string, sizeof (gene_SYNC_obj1008), (void*)&gene_SYNC_obj1008 }
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    92
                     };
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    93
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    94
/* index 0x1016 :   Consumer Heartbeat Time */
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    95
                    UNS8 gene_SYNC_highestSubIndex_obj1016 = 0;
80
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
    96
                    UNS32 gene_SYNC_obj1016[];
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
    97
                    subindex gene_SYNC_Index1016[];
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    98
54
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
    99
/* index 0x1017 :   Producer Heartbeat Time */ 
80
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
   100
                    UNS16 gene_SYNC_obj1017 = 0x0;   /* 0 */
54
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   101
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   102
/* index 0x1018 :   Identity. */
80
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
   103
                    UNS8 gene_SYNC_highestSubIndex_obj1018 = 4; /* number of subindex - 1*/
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
   104
                    UNS32 gene_SYNC_obj1018_Vendor_ID = 0x0;	/* 0 */
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
   105
                    UNS32 gene_SYNC_obj1018_Product_Code = 0x0;	/* 0 */
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
   106
                    UNS32 gene_SYNC_obj1018_Revision_Number = 0x0;	/* 0 */
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
   107
                    UNS32 gene_SYNC_obj1018_Serial_Number = 0x0;	/* 0 */
54
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   108
                    subindex gene_SYNC_Index1018[] = 
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   109
                     {
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   110
                       { RO, uint8, sizeof (UNS8), (void*)&gene_SYNC_highestSubIndex_obj1018 },
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   111
                       { RO, uint32, sizeof (UNS32), (void*)&gene_SYNC_obj1018_Vendor_ID },
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   112
                       { RO, uint32, sizeof (UNS32), (void*)&gene_SYNC_obj1018_Product_Code },
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   113
                       { RO, uint32, sizeof (UNS32), (void*)&gene_SYNC_obj1018_Revision_Number },
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   114
                       { RO, uint32, sizeof (UNS32), (void*)&gene_SYNC_obj1018_Serial_Number }
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   115
                     };
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   116
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   117
/* index 0x1200 :   Server SDO Parameter. */
80
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
   118
                    UNS8 gene_SYNC_highestSubIndex_obj1200 = 2; /* number of subindex - 1*/
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
   119
                    UNS32 gene_SYNC_obj1200_COB_ID_Client_to_Server_Receive_SDO = 0x0;	/* 0 */
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
   120
                    UNS32 gene_SYNC_obj1200_COB_ID_Server_to_Client_Transmit_SDO = 0x0;	/* 0 */
54
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   121
                    subindex gene_SYNC_Index1200[] = 
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   122
                     {
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   123
                       { RO, uint8, sizeof (UNS8), (void*)&gene_SYNC_highestSubIndex_obj1200 },
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   124
                       { RO, uint32, sizeof (UNS32), (void*)&gene_SYNC_obj1200_COB_ID_Client_to_Server_Receive_SDO },
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   125
                       { RO, uint32, sizeof (UNS32), (void*)&gene_SYNC_obj1200_COB_ID_Server_to_Client_Transmit_SDO }
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   126
                     };
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   127
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   128
/* index 0x2015 :   Mapped variable acceptanceFilter1 */
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   129
                    subindex gene_SYNC_Index2015[] = 
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   130
                     {
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   131
                       { RW, uint16, sizeof (UNS16), (void*)&acceptanceFilter1 }
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   132
                     };
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   133
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   134
/* index 0x2016 :   Mapped variable acceptanceFilter2 */
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   135
                    subindex gene_SYNC_Index2016[] = 
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   136
                     {
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   137
                       { RW, uint16, sizeof (UNS16), (void*)&acceptanceFilter2 }
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   138
                     };
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   139
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   140
/* index 0x2017 :   Mapped variable acceptanceFilter3 */
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   141
                    subindex gene_SYNC_Index2017[] = 
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   142
                     {
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   143
                       { RW, uint16, sizeof (UNS16), (void*)&acceptanceFilter3 }
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   144
                     };
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   145
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   146
/* index 0x2018 :   Mapped variable acceptanceFilter4 */
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   147
                    subindex gene_SYNC_Index2018[] = 
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   148
                     {
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   149
                       { RW, uint16, sizeof (UNS16), (void*)&acceptanceFilter4 }
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   150
                     };
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   151
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   152
/* index 0x2019 :   Mapped variable mask1 */
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   153
                    subindex gene_SYNC_Index2019[] = 
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   154
                     {
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   155
                       { RW, uint16, sizeof (UNS16), (void*)&mask1 }
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   156
                     };
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   157
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   158
/* index 0x2020 :   Mapped variable mask2 */
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   159
                    subindex gene_SYNC_Index2020[] = 
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   160
                     {
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   161
                       { RW, uint16, sizeof (UNS16), (void*)&mask2 }
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   162
                     };
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   163
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   164
/* index 0x2021 :   Mapped variable mask3 */
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   165
                    subindex gene_SYNC_Index2021[] = 
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   166
                     {
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   167
                       { RW, uint16, sizeof (UNS16), (void*)&mask3 }
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   168
                     };
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   169
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   170
/* index 0x2022 :   Mapped variable mask4 */
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   171
                    subindex gene_SYNC_Index2022[] = 
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   172
                     {
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   173
                       { RW, uint16, sizeof (UNS16), (void*)&mask4 }
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   174
                     };
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   175
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   176
/* index 0x2023 :   Mapped variable applyDownloadedFilters */
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   177
                    subindex gene_SYNC_Index2023[] = 
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   178
                     {
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   179
                       { RW, uint8, sizeof (UNS8), (void*)&applyDownloadedFilters }
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   180
                     };
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   181
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   182
const indextable gene_SYNC_objdict[] = 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   183
{
54
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   184
  { (subindex*)gene_SYNC_Index1000,sizeof(gene_SYNC_Index1000)/sizeof(gene_SYNC_Index1000[0]), 0x1000},
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   185
  { (subindex*)gene_SYNC_Index1001,sizeof(gene_SYNC_Index1001)/sizeof(gene_SYNC_Index1001[0]), 0x1001},
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   186
  { (subindex*)gene_SYNC_Index1005,sizeof(gene_SYNC_Index1005)/sizeof(gene_SYNC_Index1005[0]), 0x1005},
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   187
  { (subindex*)gene_SYNC_Index1006,sizeof(gene_SYNC_Index1006)/sizeof(gene_SYNC_Index1006[0]), 0x1006},
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   188
  { (subindex*)gene_SYNC_Index1008,sizeof(gene_SYNC_Index1008)/sizeof(gene_SYNC_Index1008[0]), 0x1008},
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   189
  { (subindex*)gene_SYNC_Index1018,sizeof(gene_SYNC_Index1018)/sizeof(gene_SYNC_Index1018[0]), 0x1018},
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   190
  { (subindex*)gene_SYNC_Index1200,sizeof(gene_SYNC_Index1200)/sizeof(gene_SYNC_Index1200[0]), 0x1200},
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   191
  { (subindex*)gene_SYNC_Index2015,sizeof(gene_SYNC_Index2015)/sizeof(gene_SYNC_Index2015[0]), 0x2015},
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   192
  { (subindex*)gene_SYNC_Index2016,sizeof(gene_SYNC_Index2016)/sizeof(gene_SYNC_Index2016[0]), 0x2016},
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   193
  { (subindex*)gene_SYNC_Index2017,sizeof(gene_SYNC_Index2017)/sizeof(gene_SYNC_Index2017[0]), 0x2017},
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   194
  { (subindex*)gene_SYNC_Index2018,sizeof(gene_SYNC_Index2018)/sizeof(gene_SYNC_Index2018[0]), 0x2018},
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   195
  { (subindex*)gene_SYNC_Index2019,sizeof(gene_SYNC_Index2019)/sizeof(gene_SYNC_Index2019[0]), 0x2019},
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   196
  { (subindex*)gene_SYNC_Index2020,sizeof(gene_SYNC_Index2020)/sizeof(gene_SYNC_Index2020[0]), 0x2020},
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   197
  { (subindex*)gene_SYNC_Index2021,sizeof(gene_SYNC_Index2021)/sizeof(gene_SYNC_Index2021[0]), 0x2021},
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   198
  { (subindex*)gene_SYNC_Index2022,sizeof(gene_SYNC_Index2022)/sizeof(gene_SYNC_Index2022[0]), 0x2022},
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   199
  { (subindex*)gene_SYNC_Index2023,sizeof(gene_SYNC_Index2023)/sizeof(gene_SYNC_Index2023[0]), 0x2023},
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   200
};
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   201
54
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   202
const indextable * gene_SYNC_scanIndexOD (UNS16 wIndex, UNS32 * errorCode, ODCallback_t **callbacks)
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   203
{
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   204
	int i;
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   205
	*callbacks = NULL;
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   206
	switch(wIndex){
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   207
		case 0x1000: i = 0;break;
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   208
		case 0x1001: i = 1;break;
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   209
		case 0x1005: i = 2;*callbacks = gene_SYNC_Index1005_callbacks; break;
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   210
		case 0x1006: i = 3;*callbacks = gene_SYNC_Index1006_callbacks; break;
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   211
		case 0x1008: i = 4;break;
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   212
		case 0x1018: i = 5;break;
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   213
		case 0x1200: i = 6;break;
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   214
		case 0x2015: i = 7;break;
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   215
		case 0x2016: i = 8;break;
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   216
		case 0x2017: i = 9;break;
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   217
		case 0x2018: i = 10;break;
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   218
		case 0x2019: i = 11;break;
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   219
		case 0x2020: i = 12;break;
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   220
		case 0x2021: i = 13;break;
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   221
		case 0x2022: i = 14;break;
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   222
		case 0x2023: i = 15;break;
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   223
		default:
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   224
			*errorCode = OD_NO_SUCH_OBJECT;
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   225
			return NULL;
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   226
	}
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   227
	*errorCode = OD_SUCCESSFUL;
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   228
	return &gene_SYNC_objdict[i];
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   229
}
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   230
80
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
   231
/* To count at which received SYNC a PDO must be sent.
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
   232
 * Even if no pdoTransmit are defined, at least one entry is computed
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
   233
 * for compilations issues.
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
   234
 */
54
a2ca09ac1523 Tested. OK on Canfestival 3 rc2
frdupin
parents: 0
diff changeset
   235
UNS8 gene_SYNC_count_sync[1] = {0,};
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   236
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   237
quick_index gene_SYNC_firstIndex = {
80
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
   238
  6, /* SDO_SVR */
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
   239
  0, /* SDO_CLT */
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
   240
  0, /* PDO_RCV */
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
   241
  0, /* PDO_RCV_MAP */
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
   242
  0, /* PDO_TRS */
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
   243
  0 /* PDO_TRS_MAP */
0
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
quick_index gene_SYNC_lastIndex = {
80
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
   247
  6, /* SDO_SVR */
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
   248
  0, /* SDO_CLT */
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
   249
  0, /* PDO_RCV */
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
   250
  0, /* PDO_RCV_MAP */
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
   251
  0, /* PDO_TRS */
37354e408645 compilers compatibility
frdupin
parents: 54
diff changeset
   252
  0 /* PDO_TRS_MAP */
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   253
};
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   254
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   255
UNS16 gene_SYNC_ObjdictSize = sizeof(gene_SYNC_objdict)/sizeof(gene_SYNC_objdict[0]); 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   256
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   257
CO_Data gene_SYNC_Data = CANOPEN_NODE_DATA_INITIALIZER(gene_SYNC);
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   258