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