|
发表于 2015-11-10 16:03:42
|
显示全部楼层
楼主这个部分- /* index 0x1A00 : Transmit PDO 1 Mapping. */
- UNS8 ObjDict_highestSubIndex_obj1A00 = 3; /* number of subindex - 1*/
- UNS32 ObjDict_obj1A00[] =
- {
- 0x60400110,
- 0x60c10220,
- };
- subindex ObjDict_Index1A00[] =
- {
- { RW, uint8, sizeof (UNS8), (void*)&ObjDict_highestSubIndex_obj1A00 },
- { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1A00[0] },
- { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1A00[1] },
- { RW, uint32, sizeof (UNS32), (void*)&ObjDict_obj1A00[2] },
- };
复制代码
为什么ObjDict_obj1A00这个数组只有两个元素,下面却用了三个呢? |
|