author | Christian Taedcke <hacking@taedcke.com> |
Mon, 23 Jan 2012 21:40:59 +0100 | |
changeset 709 | 4a8b50dcc4c0 |
parent 623 | 36b62c854ee2 |
permissions | -rw-r--r-- |
281
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
1 |
|
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
2 |
/* File generated by gen_cfile.py. Should not be modified. */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
3 |
|
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
4 |
#include "example_objdict.h" |
0 | 5 |
|
6 |
/**************************************************************************/ |
|
623 | 7 |
/* Declaration of mapped variables */ |
0 | 8 |
/**************************************************************************/ |
281
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
9 |
UNS8 Time_seconds = 0x0; /* Mapped at index 0x2000, subindex 0x01 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
10 |
UNS8 Time_minutes = 0x0; /* Mapped at index 0x2000, subindex 0x02 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
11 |
UNS8 Time_hours = 0x0; /* Mapped at index 0x2000, subindex 0x03 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
12 |
UNS8 Time_days = 0x0; /* Mapped at index 0x2000, subindex 0x04 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
13 |
UNS32 canopenErrNB = 0x0; /* Mapped at index 0x2001, subindex 0x00 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
14 |
UNS32 canopenErrVal = 0x0; /* Mapped at index 0x2002, subindex 0x00 */ |
623 | 15 |
INTEGER8 strTest[10] = ""; /* Mapped at index 0x2003, subindex 0x00 */ |
16 |
||
17 |
/**************************************************************************/ |
|
18 |
/* Declaration of value range types */ |
|
19 |
/**************************************************************************/ |
|
20 |
||
21 |
#define valueRange_EMC 0x9F /* Type for index 0x1003 subindex 0x00 (only set of value 0 is possible) */ |
|
281
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
22 |
UNS32 Linux_slave_valueRangeTest (UNS8 typeValue, void * value) |
0 | 23 |
{ |
24 |
switch (typeValue) { |
|
623 | 25 |
case valueRange_EMC: |
26 |
if (*(UNS8*)value != (UNS8)0) return OD_VALUE_RANGE_EXCEEDED; |
|
27 |
break; |
|
0 | 28 |
} |
29 |
return 0; |
|
30 |
} |
|
31 |
||
32 |
/**************************************************************************/ |
|
33 |
/* The node id */ |
|
34 |
/**************************************************************************/ |
|
281
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
35 |
/* node_id default value.*/ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
36 |
UNS8 Linux_slave_bDeviceNodeId = 0x00; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
37 |
|
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
38 |
/**************************************************************************/ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
39 |
/* Array of message processing information */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
40 |
|
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
41 |
const UNS8 Linux_slave_iam_a_slave = 1; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
42 |
|
623 | 43 |
TIMER_HANDLE Linux_slave_heartBeatTimers[1] = {TIMER_NONE}; |
281
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
44 |
|
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
45 |
/* |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
46 |
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
47 |
|
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
48 |
OBJECT DICTIONARY |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
49 |
|
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
50 |
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ |
0 | 51 |
*/ |
281
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
52 |
|
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
53 |
/* index 0x1000 : Device Type. */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
54 |
UNS32 Linux_slave_obj1000 = 0x0; /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
55 |
subindex Linux_slave_Index1000[] = |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
56 |
{ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
57 |
{ RO, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1000 } |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
58 |
}; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
59 |
|
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
60 |
/* index 0x1001 : Error Register. */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
61 |
UNS8 Linux_slave_obj1001 = 0x0; /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
62 |
subindex Linux_slave_Index1001[] = |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
63 |
{ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
64 |
{ RO, uint8, sizeof (UNS8), (void*)&Linux_slave_obj1001 } |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
65 |
}; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
66 |
|
623 | 67 |
/* index 0x1003 : Pre-defined Error Field */ |
68 |
UNS8 Linux_slave_highestSubIndex_obj1003 = 0; /* number of subindex - 1*/ |
|
69 |
UNS32 Linux_slave_obj1003[] = |
|
70 |
{ |
|
71 |
0x0 /* 0 */ |
|
72 |
}; |
|
73 |
ODCallback_t Linux_slave_Index1003_callbacks[] = |
|
74 |
{ |
|
75 |
NULL, |
|
76 |
NULL, |
|
77 |
}; |
|
78 |
subindex Linux_slave_Index1003[] = |
|
79 |
{ |
|
80 |
{ RW, valueRange_EMC, sizeof (UNS8), (void*)&Linux_slave_highestSubIndex_obj1003 }, |
|
81 |
{ RO, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1003[0] } |
|
82 |
}; |
|
83 |
||
281
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
84 |
/* index 0x1005 : SYNC COB ID */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
85 |
UNS32 Linux_slave_obj1005 = 0x0; /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
86 |
|
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
87 |
/* index 0x1006 : Communication / Cycle Period */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
88 |
UNS32 Linux_slave_obj1006 = 0x0; /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
89 |
|
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
90 |
/* index 0x1008 : Manufacturer Device Name. */ |
623 | 91 |
INTEGER8 Linux_slave_obj1008[16] = "Appli_Slave_HC12"; |
281
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
92 |
subindex Linux_slave_Index1008[] = |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
93 |
{ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
94 |
{ RO, visible_string, 16, (void*)&Linux_slave_obj1008 } |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
95 |
}; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
96 |
|
623 | 97 |
/* index 0x1014 : Emergency COB ID */ |
98 |
UNS32 Linux_slave_obj1014 = 0x80 + 0x00; /* 128 + NodeID */ |
|
99 |
||
281
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
100 |
/* index 0x1016 : Consumer Heartbeat Time. */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
101 |
UNS8 Linux_slave_highestSubIndex_obj1016 = 1; /* number of subindex - 1*/ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
102 |
UNS32 Linux_slave_obj1016[] = |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
103 |
{ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
104 |
0x0 /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
105 |
}; |
0 | 106 |
subindex Linux_slave_Index1016[] = |
281
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
107 |
{ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
108 |
{ RO, uint8, sizeof (UNS8), (void*)&Linux_slave_highestSubIndex_obj1016 }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
109 |
{ RW, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1016[0] } |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
110 |
}; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
111 |
|
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
112 |
/* index 0x1017 : Producer Heartbeat Time */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
113 |
UNS16 Linux_slave_obj1017 = 0x0; /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
114 |
|
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
115 |
/* index 0x1018 : Identity. */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
116 |
UNS8 Linux_slave_highestSubIndex_obj1018 = 4; /* number of subindex - 1*/ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
117 |
UNS32 Linux_slave_obj1018_Vendor_ID = 0x0; /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
118 |
UNS32 Linux_slave_obj1018_Product_Code = 0x0; /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
119 |
UNS32 Linux_slave_obj1018_Revision_Number = 0x0; /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
120 |
UNS32 Linux_slave_obj1018_Serial_Number = 0x0; /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
121 |
subindex Linux_slave_Index1018[] = |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
122 |
{ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
123 |
{ RO, uint8, sizeof (UNS8), (void*)&Linux_slave_highestSubIndex_obj1018 }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
124 |
{ RO, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1018_Vendor_ID }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
125 |
{ RO, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1018_Product_Code }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
126 |
{ RO, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1018_Revision_Number }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
127 |
{ RO, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1018_Serial_Number } |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
128 |
}; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
129 |
|
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
130 |
/* index 0x1280 : Client SDO 1 Parameter. */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
131 |
UNS8 Linux_slave_highestSubIndex_obj1280 = 3; /* number of subindex - 1*/ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
132 |
UNS32 Linux_slave_obj1280_COB_ID_Client_to_Server_Transmit_SDO = 0x0; /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
133 |
UNS32 Linux_slave_obj1280_COB_ID_Server_to_Client_Receive_SDO = 0x0; /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
134 |
UNS8 Linux_slave_obj1280_Node_ID_of_the_SDO_Server = 0x0; /* 0 */ |
0 | 135 |
subindex Linux_slave_Index1280[] = |
281
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
136 |
{ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
137 |
{ RO, uint8, sizeof (UNS8), (void*)&Linux_slave_highestSubIndex_obj1280 }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
138 |
{ RW, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1280_COB_ID_Client_to_Server_Transmit_SDO }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
139 |
{ RW, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1280_COB_ID_Server_to_Client_Receive_SDO }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
140 |
{ RW, uint8, sizeof (UNS8), (void*)&Linux_slave_obj1280_Node_ID_of_the_SDO_Server } |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
141 |
}; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
142 |
|
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
143 |
/* index 0x1400 : Receive PDO 1 Parameter. */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
144 |
UNS8 Linux_slave_highestSubIndex_obj1400 = 5; /* number of subindex - 1*/ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
145 |
UNS32 Linux_slave_obj1400_COB_ID_used_by_PDO = 0x200; /* 512 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
146 |
UNS8 Linux_slave_obj1400_Transmission_Type = 0x0; /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
147 |
UNS16 Linux_slave_obj1400_Inhibit_Time = 0x0; /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
148 |
UNS8 Linux_slave_obj1400_Compatibility_Entry = 0x0; /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
149 |
UNS16 Linux_slave_obj1400_Event_Timer = 0x0; /* 0 */ |
0 | 150 |
subindex Linux_slave_Index1400[] = |
281
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
151 |
{ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
152 |
{ RO, uint8, sizeof (UNS8), (void*)&Linux_slave_highestSubIndex_obj1400 }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
153 |
{ RW, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1400_COB_ID_used_by_PDO }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
154 |
{ RW, uint8, sizeof (UNS8), (void*)&Linux_slave_obj1400_Transmission_Type }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
155 |
{ RW, uint16, sizeof (UNS16), (void*)&Linux_slave_obj1400_Inhibit_Time }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
156 |
{ RW, uint8, sizeof (UNS8), (void*)&Linux_slave_obj1400_Compatibility_Entry }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
157 |
{ RW, uint16, sizeof (UNS16), (void*)&Linux_slave_obj1400_Event_Timer } |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
158 |
}; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
159 |
|
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
160 |
/* index 0x1401 : Receive PDO 2 Parameter. */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
161 |
UNS8 Linux_slave_highestSubIndex_obj1401 = 5; /* number of subindex - 1*/ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
162 |
UNS32 Linux_slave_obj1401_COB_ID_used_by_PDO = 0x300; /* 768 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
163 |
UNS8 Linux_slave_obj1401_Transmission_Type = 0x0; /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
164 |
UNS16 Linux_slave_obj1401_Inhibit_Time = 0x0; /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
165 |
UNS8 Linux_slave_obj1401_Compatibility_Entry = 0x0; /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
166 |
UNS16 Linux_slave_obj1401_Event_Timer = 0x0; /* 0 */ |
0 | 167 |
subindex Linux_slave_Index1401[] = |
281
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
168 |
{ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
169 |
{ RO, uint8, sizeof (UNS8), (void*)&Linux_slave_highestSubIndex_obj1401 }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
170 |
{ RW, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1401_COB_ID_used_by_PDO }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
171 |
{ RW, uint8, sizeof (UNS8), (void*)&Linux_slave_obj1401_Transmission_Type }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
172 |
{ RW, uint16, sizeof (UNS16), (void*)&Linux_slave_obj1401_Inhibit_Time }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
173 |
{ RW, uint8, sizeof (UNS8), (void*)&Linux_slave_obj1401_Compatibility_Entry }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
174 |
{ RW, uint16, sizeof (UNS16), (void*)&Linux_slave_obj1401_Event_Timer } |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
175 |
}; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
176 |
|
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
177 |
/* index 0x1402 : Receive PDO 3 Parameter. */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
178 |
UNS8 Linux_slave_highestSubIndex_obj1402 = 5; /* number of subindex - 1*/ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
179 |
UNS32 Linux_slave_obj1402_COB_ID_used_by_PDO = 0x400; /* 1024 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
180 |
UNS8 Linux_slave_obj1402_Transmission_Type = 0x0; /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
181 |
UNS16 Linux_slave_obj1402_Inhibit_Time = 0x0; /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
182 |
UNS8 Linux_slave_obj1402_Compatibility_Entry = 0x0; /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
183 |
UNS16 Linux_slave_obj1402_Event_Timer = 0x0; /* 0 */ |
0 | 184 |
subindex Linux_slave_Index1402[] = |
281
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
185 |
{ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
186 |
{ RO, uint8, sizeof (UNS8), (void*)&Linux_slave_highestSubIndex_obj1402 }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
187 |
{ RW, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1402_COB_ID_used_by_PDO }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
188 |
{ RW, uint8, sizeof (UNS8), (void*)&Linux_slave_obj1402_Transmission_Type }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
189 |
{ RW, uint16, sizeof (UNS16), (void*)&Linux_slave_obj1402_Inhibit_Time }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
190 |
{ RW, uint8, sizeof (UNS8), (void*)&Linux_slave_obj1402_Compatibility_Entry }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
191 |
{ RW, uint16, sizeof (UNS16), (void*)&Linux_slave_obj1402_Event_Timer } |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
192 |
}; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
193 |
|
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
194 |
/* index 0x1403 : Receive PDO 4 Parameter. */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
195 |
UNS8 Linux_slave_highestSubIndex_obj1403 = 5; /* number of subindex - 1*/ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
196 |
UNS32 Linux_slave_obj1403_COB_ID_used_by_PDO = 0x500; /* 1280 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
197 |
UNS8 Linux_slave_obj1403_Transmission_Type = 0x0; /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
198 |
UNS16 Linux_slave_obj1403_Inhibit_Time = 0x0; /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
199 |
UNS8 Linux_slave_obj1403_Compatibility_Entry = 0x0; /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
200 |
UNS16 Linux_slave_obj1403_Event_Timer = 0x0; /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
201 |
subindex Linux_slave_Index1403[] = |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
202 |
{ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
203 |
{ RO, uint8, sizeof (UNS8), (void*)&Linux_slave_highestSubIndex_obj1403 }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
204 |
{ RW, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1403_COB_ID_used_by_PDO }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
205 |
{ RW, uint8, sizeof (UNS8), (void*)&Linux_slave_obj1403_Transmission_Type }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
206 |
{ RW, uint16, sizeof (UNS16), (void*)&Linux_slave_obj1403_Inhibit_Time }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
207 |
{ RW, uint8, sizeof (UNS8), (void*)&Linux_slave_obj1403_Compatibility_Entry }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
208 |
{ RW, uint16, sizeof (UNS16), (void*)&Linux_slave_obj1403_Event_Timer } |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
209 |
}; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
210 |
|
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
211 |
/* index 0x1600 : Receive PDO 1 Mapping. */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
212 |
UNS8 Linux_slave_highestSubIndex_obj1600 = 1; /* number of subindex - 1*/ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
213 |
UNS32 Linux_slave_obj1600[] = |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
214 |
{ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
215 |
0x0 /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
216 |
}; |
0 | 217 |
subindex Linux_slave_Index1600[] = |
281
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
218 |
{ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
219 |
{ RW, uint8, sizeof (UNS8), (void*)&Linux_slave_highestSubIndex_obj1600 }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
220 |
{ RW, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1600[0] } |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
221 |
}; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
222 |
|
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
223 |
/* index 0x1601 : Receive PDO 2 Mapping. */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
224 |
UNS8 Linux_slave_highestSubIndex_obj1601 = 1; /* number of subindex - 1*/ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
225 |
UNS32 Linux_slave_obj1601[] = |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
226 |
{ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
227 |
0x0 /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
228 |
}; |
0 | 229 |
subindex Linux_slave_Index1601[] = |
281
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
230 |
{ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
231 |
{ RW, uint8, sizeof (UNS8), (void*)&Linux_slave_highestSubIndex_obj1601 }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
232 |
{ RW, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1601[0] } |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
233 |
}; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
234 |
|
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
235 |
/* index 0x1602 : Receive PDO 3 Mapping. */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
236 |
UNS8 Linux_slave_highestSubIndex_obj1602 = 1; /* number of subindex - 1*/ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
237 |
UNS32 Linux_slave_obj1602[] = |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
238 |
{ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
239 |
0x0 /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
240 |
}; |
0 | 241 |
subindex Linux_slave_Index1602[] = |
281
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
242 |
{ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
243 |
{ RW, uint8, sizeof (UNS8), (void*)&Linux_slave_highestSubIndex_obj1602 }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
244 |
{ RW, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1602[0] } |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
245 |
}; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
246 |
|
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
247 |
/* index 0x1603 : Receive PDO 4 Mapping. */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
248 |
UNS8 Linux_slave_highestSubIndex_obj1603 = 1; /* number of subindex - 1*/ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
249 |
UNS32 Linux_slave_obj1603[] = |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
250 |
{ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
251 |
0x0 /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
252 |
}; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
253 |
subindex Linux_slave_Index1603[] = |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
254 |
{ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
255 |
{ RW, uint8, sizeof (UNS8), (void*)&Linux_slave_highestSubIndex_obj1603 }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
256 |
{ RW, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1603[0] } |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
257 |
}; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
258 |
|
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
259 |
/* index 0x1800 : Transmit PDO 1 Parameter. */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
260 |
UNS8 Linux_slave_highestSubIndex_obj1800 = 5; /* number of subindex - 1*/ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
261 |
UNS32 Linux_slave_obj1800_COB_ID_used_by_PDO = 0x180; /* 384 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
262 |
UNS8 Linux_slave_obj1800_Transmission_Type = 0x0; /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
263 |
UNS16 Linux_slave_obj1800_Inhibit_Time = 0x0; /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
264 |
UNS8 Linux_slave_obj1800_Compatibility_Entry = 0x0; /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
265 |
UNS16 Linux_slave_obj1800_Event_Timer = 0x0; /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
266 |
ODCallback_t Linux_slave_Index1800_callbacks[] = |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
267 |
{ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
268 |
NULL, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
269 |
NULL, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
270 |
NULL, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
271 |
NULL, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
272 |
NULL, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
273 |
NULL, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
274 |
}; |
0 | 275 |
subindex Linux_slave_Index1800[] = |
281
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
276 |
{ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
277 |
{ RO, uint8, sizeof (UNS8), (void*)&Linux_slave_highestSubIndex_obj1800 }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
278 |
{ RW, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1800_COB_ID_used_by_PDO }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
279 |
{ RW, uint8, sizeof (UNS8), (void*)&Linux_slave_obj1800_Transmission_Type }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
280 |
{ RW, uint16, sizeof (UNS16), (void*)&Linux_slave_obj1800_Inhibit_Time }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
281 |
{ RW, uint8, sizeof (UNS8), (void*)&Linux_slave_obj1800_Compatibility_Entry }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
282 |
{ RW, uint16, sizeof (UNS16), (void*)&Linux_slave_obj1800_Event_Timer } |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
283 |
}; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
284 |
|
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
285 |
/* index 0x1801 : Transmit PDO 2 Parameter. */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
286 |
UNS8 Linux_slave_highestSubIndex_obj1801 = 5; /* number of subindex - 1*/ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
287 |
UNS32 Linux_slave_obj1801_COB_ID_used_by_PDO = 0x280; /* 640 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
288 |
UNS8 Linux_slave_obj1801_Transmission_Type = 0x0; /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
289 |
UNS16 Linux_slave_obj1801_Inhibit_Time = 0x0; /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
290 |
UNS8 Linux_slave_obj1801_Compatibility_Entry = 0x0; /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
291 |
UNS16 Linux_slave_obj1801_Event_Timer = 0x0; /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
292 |
ODCallback_t Linux_slave_Index1801_callbacks[] = |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
293 |
{ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
294 |
NULL, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
295 |
NULL, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
296 |
NULL, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
297 |
NULL, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
298 |
NULL, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
299 |
NULL, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
300 |
}; |
0 | 301 |
subindex Linux_slave_Index1801[] = |
281
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
302 |
{ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
303 |
{ RO, uint8, sizeof (UNS8), (void*)&Linux_slave_highestSubIndex_obj1801 }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
304 |
{ RW, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1801_COB_ID_used_by_PDO }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
305 |
{ RW, uint8, sizeof (UNS8), (void*)&Linux_slave_obj1801_Transmission_Type }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
306 |
{ RW, uint16, sizeof (UNS16), (void*)&Linux_slave_obj1801_Inhibit_Time }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
307 |
{ RW, uint8, sizeof (UNS8), (void*)&Linux_slave_obj1801_Compatibility_Entry }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
308 |
{ RW, uint16, sizeof (UNS16), (void*)&Linux_slave_obj1801_Event_Timer } |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
309 |
}; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
310 |
|
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
311 |
/* index 0x1A00 : Transmit PDO 1 Mapping. */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
312 |
UNS8 Linux_slave_highestSubIndex_obj1A00 = 1; /* number of subindex - 1*/ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
313 |
UNS32 Linux_slave_obj1A00[] = |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
314 |
{ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
315 |
0x0 /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
316 |
}; |
0 | 317 |
subindex Linux_slave_Index1A00[] = |
281
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
318 |
{ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
319 |
{ RW, uint8, sizeof (UNS8), (void*)&Linux_slave_highestSubIndex_obj1A00 }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
320 |
{ RW, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1A00[0] } |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
321 |
}; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
322 |
|
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
323 |
/* index 0x1A01 : Transmit PDO 2 Mapping. */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
324 |
UNS8 Linux_slave_highestSubIndex_obj1A01 = 1; /* number of subindex - 1*/ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
325 |
UNS32 Linux_slave_obj1A01[] = |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
326 |
{ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
327 |
0x0 /* 0 */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
328 |
}; |
0 | 329 |
subindex Linux_slave_Index1A01[] = |
281
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
330 |
{ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
331 |
{ RW, uint8, sizeof (UNS8), (void*)&Linux_slave_highestSubIndex_obj1A01 }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
332 |
{ RW, uint32, sizeof (UNS32), (void*)&Linux_slave_obj1A01[0] } |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
333 |
}; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
334 |
|
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
335 |
/* index 0x2000 : Mapped variable Time */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
336 |
UNS8 Linux_slave_highestSubIndex_obj2000 = 4; /* number of subindex - 1*/ |
0 | 337 |
subindex Linux_slave_Index2000[] = |
338 |
{ |
|
281
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
339 |
{ RO, uint8, sizeof (UNS8), (void*)&Linux_slave_highestSubIndex_obj2000 }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
340 |
{ RW, uint8, sizeof (UNS8), (void*)&Time_seconds }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
341 |
{ RW, uint8, sizeof (UNS8), (void*)&Time_minutes }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
342 |
{ RW, uint8, sizeof (UNS8), (void*)&Time_hours }, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
343 |
{ RW, uint8, sizeof (UNS8), (void*)&Time_days } |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
344 |
}; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
345 |
|
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
346 |
/* index 0x2001 : Mapped variable canopenErrNB */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
347 |
subindex Linux_slave_Index2001[] = |
0 | 348 |
{ |
349 |
{ RW, uint32, sizeof (UNS32), (void*)&canopenErrNB } |
|
350 |
}; |
|
351 |
||
281
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
352 |
/* index 0x2002 : Mapped variable canopenErrVal */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
353 |
subindex Linux_slave_Index2002[] = |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
354 |
{ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
355 |
{ RW, uint32, sizeof (UNS32), (void*)&canopenErrVal } |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
356 |
}; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
357 |
|
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
358 |
/* index 0x2003 : Mapped variable strTest */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
359 |
subindex Linux_slave_Index2003[] = |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
360 |
{ |
623 | 361 |
{ RW, visible_string, 10, (void*)&strTest } |
362 |
}; |
|
363 |
||
364 |
/**************************************************************************/ |
|
365 |
/* Declaration of pointed variables */ |
|
366 |
/**************************************************************************/ |
|
0 | 367 |
|
368 |
const indextable Linux_slave_objdict[] = |
|
369 |
{ |
|
281
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
370 |
{ (subindex*)Linux_slave_Index1000,sizeof(Linux_slave_Index1000)/sizeof(Linux_slave_Index1000[0]), 0x1000}, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
371 |
{ (subindex*)Linux_slave_Index1001,sizeof(Linux_slave_Index1001)/sizeof(Linux_slave_Index1001[0]), 0x1001}, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
372 |
{ (subindex*)Linux_slave_Index1008,sizeof(Linux_slave_Index1008)/sizeof(Linux_slave_Index1008[0]), 0x1008}, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
373 |
{ (subindex*)Linux_slave_Index1016,sizeof(Linux_slave_Index1016)/sizeof(Linux_slave_Index1016[0]), 0x1016}, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
374 |
{ (subindex*)Linux_slave_Index1018,sizeof(Linux_slave_Index1018)/sizeof(Linux_slave_Index1018[0]), 0x1018}, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
375 |
{ (subindex*)Linux_slave_Index1280,sizeof(Linux_slave_Index1280)/sizeof(Linux_slave_Index1280[0]), 0x1280}, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
376 |
{ (subindex*)Linux_slave_Index1400,sizeof(Linux_slave_Index1400)/sizeof(Linux_slave_Index1400[0]), 0x1400}, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
377 |
{ (subindex*)Linux_slave_Index1401,sizeof(Linux_slave_Index1401)/sizeof(Linux_slave_Index1401[0]), 0x1401}, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
378 |
{ (subindex*)Linux_slave_Index1402,sizeof(Linux_slave_Index1402)/sizeof(Linux_slave_Index1402[0]), 0x1402}, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
379 |
{ (subindex*)Linux_slave_Index1403,sizeof(Linux_slave_Index1403)/sizeof(Linux_slave_Index1403[0]), 0x1403}, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
380 |
{ (subindex*)Linux_slave_Index1600,sizeof(Linux_slave_Index1600)/sizeof(Linux_slave_Index1600[0]), 0x1600}, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
381 |
{ (subindex*)Linux_slave_Index1601,sizeof(Linux_slave_Index1601)/sizeof(Linux_slave_Index1601[0]), 0x1601}, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
382 |
{ (subindex*)Linux_slave_Index1602,sizeof(Linux_slave_Index1602)/sizeof(Linux_slave_Index1602[0]), 0x1602}, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
383 |
{ (subindex*)Linux_slave_Index1603,sizeof(Linux_slave_Index1603)/sizeof(Linux_slave_Index1603[0]), 0x1603}, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
384 |
{ (subindex*)Linux_slave_Index1800,sizeof(Linux_slave_Index1800)/sizeof(Linux_slave_Index1800[0]), 0x1800}, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
385 |
{ (subindex*)Linux_slave_Index1801,sizeof(Linux_slave_Index1801)/sizeof(Linux_slave_Index1801[0]), 0x1801}, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
386 |
{ (subindex*)Linux_slave_Index1A00,sizeof(Linux_slave_Index1A00)/sizeof(Linux_slave_Index1A00[0]), 0x1A00}, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
387 |
{ (subindex*)Linux_slave_Index1A01,sizeof(Linux_slave_Index1A01)/sizeof(Linux_slave_Index1A01[0]), 0x1A01}, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
388 |
{ (subindex*)Linux_slave_Index2000,sizeof(Linux_slave_Index2000)/sizeof(Linux_slave_Index2000[0]), 0x2000}, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
389 |
{ (subindex*)Linux_slave_Index2001,sizeof(Linux_slave_Index2001)/sizeof(Linux_slave_Index2001[0]), 0x2001}, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
390 |
{ (subindex*)Linux_slave_Index2002,sizeof(Linux_slave_Index2002)/sizeof(Linux_slave_Index2002[0]), 0x2002}, |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
391 |
{ (subindex*)Linux_slave_Index2003,sizeof(Linux_slave_Index2003)/sizeof(Linux_slave_Index2003[0]), 0x2003}, |
0 | 392 |
}; |
393 |
||
281
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
394 |
const indextable * Linux_slave_scanIndexOD (UNS16 wIndex, UNS32 * errorCode, ODCallback_t **callbacks) |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
395 |
{ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
396 |
int i; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
397 |
*callbacks = NULL; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
398 |
switch(wIndex){ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
399 |
case 0x1000: i = 0;break; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
400 |
case 0x1001: i = 1;break; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
401 |
case 0x1008: i = 2;break; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
402 |
case 0x1016: i = 3;break; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
403 |
case 0x1018: i = 4;break; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
404 |
case 0x1280: i = 5;break; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
405 |
case 0x1400: i = 6;break; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
406 |
case 0x1401: i = 7;break; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
407 |
case 0x1402: i = 8;break; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
408 |
case 0x1403: i = 9;break; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
409 |
case 0x1600: i = 10;break; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
410 |
case 0x1601: i = 11;break; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
411 |
case 0x1602: i = 12;break; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
412 |
case 0x1603: i = 13;break; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
413 |
case 0x1800: i = 14;*callbacks = Linux_slave_Index1800_callbacks; break; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
414 |
case 0x1801: i = 15;*callbacks = Linux_slave_Index1801_callbacks; break; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
415 |
case 0x1A00: i = 16;break; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
416 |
case 0x1A01: i = 17;break; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
417 |
case 0x2000: i = 18;break; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
418 |
case 0x2001: i = 19;break; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
419 |
case 0x2002: i = 20;break; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
420 |
case 0x2003: i = 21;break; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
421 |
default: |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
422 |
*errorCode = OD_NO_SUCH_OBJECT; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
423 |
return NULL; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
424 |
} |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
425 |
*errorCode = OD_SUCCESSFUL; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
426 |
return &Linux_slave_objdict[i]; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
427 |
} |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
428 |
|
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
429 |
/* |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
430 |
* To count at which received SYNC a PDO must be sent. |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
431 |
* Even if no pdoTransmit are defined, at least one entry is computed |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
432 |
* for compilations issues. |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
433 |
*/ |
369 | 434 |
s_PDO_status Linux_slave_PDO_status[2] = {s_PDO_status_Initializer,s_PDO_status_Initializer}; |
0 | 435 |
|
623 | 436 |
const quick_index Linux_slave_firstIndex = { |
281
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
437 |
0, /* SDO_SVR */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
438 |
5, /* SDO_CLT */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
439 |
6, /* PDO_RCV */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
440 |
10, /* PDO_RCV_MAP */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
441 |
14, /* PDO_TRS */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
442 |
16 /* PDO_TRS_MAP */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
443 |
}; |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
444 |
|
623 | 445 |
const quick_index Linux_slave_lastIndex = { |
281
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
446 |
0, /* SDO_SVR */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
447 |
5, /* SDO_CLT */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
448 |
9, /* PDO_RCV */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
449 |
13, /* PDO_RCV_MAP */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
450 |
15, /* PDO_TRS */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
451 |
17 /* PDO_TRS_MAP */ |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
452 |
}; |
0 | 453 |
|
623 | 454 |
const UNS16 Linux_slave_ObjdictSize = sizeof(Linux_slave_objdict)/sizeof(Linux_slave_objdict[0]); |
0 | 455 |
|
281
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
456 |
CO_Data Linux_slave_Data = CANOPEN_NODE_DATA_INITIALIZER(Linux_slave); |
685d9a26e4f9
Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents:
0
diff
changeset
|
457 |