author | etisserant |
Fri, 08 Jun 2007 14:41:39 +0200 | |
changeset 218 | 3bc225b6fb43 |
parent 201 | 2966cd34162a |
child 230 | aa5ac69398bb |
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 |
|
b6fbc1c59a44
Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff
changeset
|
23 |
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
|
24 |
{ |
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 |
switch (typeValue) { |
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 |
} |
b6fbc1c59a44
Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff
changeset
|
27 |
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
|
28 |
} |
b6fbc1c59a44
Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff
changeset
|
29 |
|
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 |
/* 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
|
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 |
/* node_id default 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
|
34 |
UNS8 TestMaster_bDeviceNodeId = 0x01; |
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 |
|
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 |
/* 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
|
38 |
|
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 |
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
|
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 |
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
|
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 |
/* |
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 |
|
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 |
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
|
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 |
|
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 |
/* 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
|
52 |
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
|
53 |
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
|
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 |
{ 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
|
56 |
}; |
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 |
|
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 |
/* 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
|
59 |
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
|
60 |
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
|
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 |
{ 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
|
63 |
}; |
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 |
|
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 |
/* 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
|
66 |
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
|
67 |
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
|
68 |
{ |
b6fbc1c59a44
Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff
changeset
|
69 |
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
|
70 |
}; |
b6fbc1c59a44
Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff
changeset
|
71 |
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
|
72 |
{ |
b6fbc1c59a44
Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff
changeset
|
73 |
{ 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
|
74 |
}; |
b6fbc1c59a44
Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff
changeset
|
75 |
|
b6fbc1c59a44
Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff
changeset
|
76 |
/* 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
|
77 |
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
|
78 |
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
|
79 |
{ |
b6fbc1c59a44
Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff
changeset
|
80 |
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
|
81 |
}; |
b6fbc1c59a44
Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff
changeset
|
82 |
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
|
83 |
{ |
b6fbc1c59a44
Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff
changeset
|
84 |
{ 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
|
85 |
}; |
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 |
|
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 |
/* 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
|
88 |
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
|
89 |
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
|
90 |
{ |
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 |
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
|
92 |
}; |
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 |
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
|
94 |
{ |
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 |
{ 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
|
96 |
{ 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
|
97 |
}; |
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 |
|
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 |
/* 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
|
100 |
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
|
101 |
|
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 |
/* 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
|
103 |
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
|
104 |
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
|
105 |
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
|
106 |
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
|
107 |
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
|
108 |
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
|
109 |
{ |
b6fbc1c59a44
Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff
changeset
|
110 |
{ 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
|
111 |
{ 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
|
112 |
{ 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
|
113 |
{ 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
|
114 |
{ 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
|
115 |
}; |
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 |
/* 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
|
118 |
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
|
119 |
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
|
120 |
UNS32 TestMaster_obj1280_COB_ID_Server_to_Client_Receive_SDO = 0x5C0; /* 1472 */ |
201 | 121 |
INTEGER32 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
|
122 |
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
|
123 |
{ |
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 |
{ 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
|
125 |
{ 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
|
126 |
{ RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1280_COB_ID_Server_to_Client_Receive_SDO }, |
201 | 127 |
{ RW, int32, sizeof (INTEGER32), (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
|
128 |
}; |
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 |
|
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 |
/* 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
|
131 |
UNS8 TestMaster_highestSubIndex_obj1400 = 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
|
132 |
UNS32 TestMaster_obj1400_COB_ID_used_by_PDO = 0x220; /* 544 */ |
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 |
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
|
134 |
UNS16 TestMaster_obj1400_Inhibit_Time = 0x0; /* 0 */ |
201 | 135 |
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
|
136 |
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
|
137 |
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
|
138 |
{ |
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 |
{ 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
|
140 |
{ 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
|
141 |
{ 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
|
142 |
{ RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1400_Inhibit_Time }, |
201 | 143 |
{ 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
|
144 |
{ 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
|
145 |
}; |
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 |
|
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 |
/* index 0x1600 : Receive PDO 1 Mapping. */ |
201 | 148 |
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
|
149 |
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
|
150 |
{ |
201 | 151 |
0x200F0001, /* 537853953 */ |
152 |
0x20100001, /* 537919489 */ |
|
153 |
0x20110001, /* 537985025 */ |
|
154 |
0x20120001, /* 538050561 */ |
|
155 |
0x20130001, /* 538116097 */ |
|
156 |
0x20140001, /* 538181633 */ |
|
157 |
0x20150001, /* 538247169 */ |
|
158 |
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
|
159 |
}; |
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 |
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
|
161 |
{ |
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 |
{ RW, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1600 }, |
201 | 163 |
{ RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[0] }, |
164 |
{ RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[1] }, |
|
165 |
{ RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[2] }, |
|
166 |
{ RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[3] }, |
|
167 |
{ RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[4] }, |
|
168 |
{ RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[5] }, |
|
169 |
{ RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1600[6] }, |
|
170 |
{ 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
|
171 |
}; |
b6fbc1c59a44
Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff
changeset
|
172 |
|
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 |
/* 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
|
174 |
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
|
175 |
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
|
176 |
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
|
177 |
UNS16 TestMaster_obj1800_Inhibit_Time = 0x0; /* 0 */ |
201 | 178 |
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
|
179 |
UNS16 TestMaster_obj1800_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
|
180 |
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
|
181 |
{ |
b6fbc1c59a44
Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff
changeset
|
182 |
{ 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
|
183 |
{ 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
|
184 |
{ 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
|
185 |
{ RW, uint16, sizeof (UNS16), (void*)&TestMaster_obj1800_Inhibit_Time }, |
201 | 186 |
{ 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
|
187 |
{ 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
|
188 |
}; |
b6fbc1c59a44
Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff
changeset
|
189 |
|
b6fbc1c59a44
Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff
changeset
|
190 |
/* 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
|
191 |
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
|
192 |
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
|
193 |
{ |
b6fbc1c59a44
Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff
changeset
|
194 |
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
|
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 |
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
|
197 |
{ |
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 |
{ 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
|
199 |
{ 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
|
200 |
}; |
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 |
|
b6fbc1c59a44
Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff
changeset
|
202 |
/* 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
|
203 |
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
|
204 |
{ |
b6fbc1c59a44
Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff
changeset
|
205 |
{ 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
|
206 |
}; |
b6fbc1c59a44
Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff
changeset
|
207 |
|
201 | 208 |
/* index 0x200F : Mapped variable DI1 */ |
209 |
subindex TestMaster_Index200F[] = |
|
210 |
{ |
|
211 |
{ RW, boolean, sizeof (UNS8), (void*)&DI1 } |
|
212 |
}; |
|
213 |
||
214 |
/* index 0x2010 : Mapped variable DI2 */ |
|
215 |
subindex TestMaster_Index2010[] = |
|
216 |
{ |
|
217 |
{ RW, boolean, sizeof (UNS8), (void*)&DI2 } |
|
218 |
}; |
|
219 |
||
220 |
/* index 0x2011 : Mapped variable DI3 */ |
|
221 |
subindex TestMaster_Index2011[] = |
|
222 |
{ |
|
223 |
{ RW, boolean, sizeof (UNS8), (void*)&DI3 } |
|
224 |
}; |
|
225 |
||
226 |
/* index 0x2012 : Mapped variable DI4 */ |
|
227 |
subindex TestMaster_Index2012[] = |
|
228 |
{ |
|
229 |
{ RW, boolean, sizeof (UNS8), (void*)&DI4 } |
|
230 |
}; |
|
231 |
||
232 |
/* index 0x2013 : Mapped variable DI5 */ |
|
233 |
subindex TestMaster_Index2013[] = |
|
234 |
{ |
|
235 |
{ RW, boolean, sizeof (UNS8), (void*)&DI5 } |
|
236 |
}; |
|
237 |
||
238 |
/* index 0x2014 : Mapped variable DI6 */ |
|
239 |
subindex TestMaster_Index2014[] = |
|
240 |
{ |
|
241 |
{ RW, boolean, sizeof (UNS8), (void*)&DI6 } |
|
242 |
}; |
|
243 |
||
244 |
/* index 0x2015 : Mapped variable DI7 */ |
|
245 |
subindex TestMaster_Index2015[] = |
|
246 |
{ |
|
247 |
{ RW, boolean, sizeof (UNS8), (void*)&DI7 } |
|
248 |
}; |
|
249 |
||
250 |
/* index 0x2016 : Mapped variable DI8 */ |
|
251 |
subindex TestMaster_Index2016[] = |
|
252 |
{ |
|
253 |
{ 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
|
254 |
}; |
b6fbc1c59a44
Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff
changeset
|
255 |
|
b6fbc1c59a44
Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff
changeset
|
256 |
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
|
257 |
{ |
b6fbc1c59a44
Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff
changeset
|
258 |
{ (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
|
259 |
{ (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
|
260 |
{ (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
|
261 |
{ (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
|
262 |
{ (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
|
263 |
{ (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
|
264 |
{ (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
|
265 |
{ (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
|
266 |
{ (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
|
267 |
{ (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
|
268 |
{ (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
|
269 |
{ (subindex*)TestMaster_Index2000,sizeof(TestMaster_Index2000)/sizeof(TestMaster_Index2000[0]), 0x2000}, |
201 | 270 |
{ (subindex*)TestMaster_Index200F,sizeof(TestMaster_Index200F)/sizeof(TestMaster_Index200F[0]), 0x200F}, |
271 |
{ (subindex*)TestMaster_Index2010,sizeof(TestMaster_Index2010)/sizeof(TestMaster_Index2010[0]), 0x2010}, |
|
272 |
{ (subindex*)TestMaster_Index2011,sizeof(TestMaster_Index2011)/sizeof(TestMaster_Index2011[0]), 0x2011}, |
|
273 |
{ (subindex*)TestMaster_Index2012,sizeof(TestMaster_Index2012)/sizeof(TestMaster_Index2012[0]), 0x2012}, |
|
274 |
{ (subindex*)TestMaster_Index2013,sizeof(TestMaster_Index2013)/sizeof(TestMaster_Index2013[0]), 0x2013}, |
|
275 |
{ (subindex*)TestMaster_Index2014,sizeof(TestMaster_Index2014)/sizeof(TestMaster_Index2014[0]), 0x2014}, |
|
276 |
{ (subindex*)TestMaster_Index2015,sizeof(TestMaster_Index2015)/sizeof(TestMaster_Index2015[0]), 0x2015}, |
|
277 |
{ (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
|
278 |
}; |
b6fbc1c59a44
Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff
changeset
|
279 |
|
b6fbc1c59a44
Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff
changeset
|
280 |
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
|
281 |
{ |
b6fbc1c59a44
Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff
changeset
|
282 |
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
|
283 |
*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
|
284 |
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
|
285 |
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
|
286 |
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
|
287 |
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
|
288 |
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
|
289 |
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
|
290 |
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
|
291 |
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
|
292 |
case 0x1400: i = 7;break; |
201 | 293 |
case 0x1600: i = 8;break; |
294 |
case 0x1800: i = 9;break; |
|
295 |
case 0x1A00: i = 10;break; |
|
296 |
case 0x2000: i = 11;break; |
|
297 |
case 0x200F: i = 12;break; |
|
298 |
case 0x2010: i = 13;break; |
|
299 |
case 0x2011: i = 14;break; |
|
300 |
case 0x2012: i = 15;break; |
|
301 |
case 0x2013: i = 16;break; |
|
302 |
case 0x2014: i = 17;break; |
|
303 |
case 0x2015: i = 18;break; |
|
304 |
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
|
305 |
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
|
306 |
*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
|
307 |
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
|
308 |
} |
b6fbc1c59a44
Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff
changeset
|
309 |
*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
|
310 |
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
|
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 |
/* To count at which received SYNC a PDO must be sent. |
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 |
* 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
|
315 |
* 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
|
316 |
*/ |
201 | 317 |
UNS8 TestMaster_count_sync[1] = {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
|
318 |
|
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 |
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
|
320 |
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
|
321 |
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
|
322 |
7, /* PDO_RCV */ |
201 | 323 |
8, /* PDO_RCV_MAP */ |
324 |
9, /* PDO_TRS */ |
|
325 |
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
|
326 |
}; |
b6fbc1c59a44
Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff
changeset
|
327 |
|
b6fbc1c59a44
Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff
changeset
|
328 |
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
|
329 |
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
|
330 |
6, /* SDO_CLT */ |
201 | 331 |
7, /* PDO_RCV */ |
332 |
8, /* PDO_RCV_MAP */ |
|
333 |
9, /* PDO_TRS */ |
|
334 |
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
|
335 |
}; |
b6fbc1c59a44
Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff
changeset
|
336 |
|
b6fbc1c59a44
Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
diff
changeset
|
337 |
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
|
338 |
|
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 |
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
|
340 |