中级会员
- 积分
- 482
- 金钱
- 482
- 注册时间
- 2017-10-31
- 在线时间
- 90 小时
|
发表于 2020-7-18 13:30:31
|
显示全部楼层
/* index 0x1000 : Device Type. */
UNS32 EwtCanAnalysis_obj1000 = 0x0; /* 0 */
subindex EwtCanAnalysis_Index1000[] =
{
{ RO, uint32, sizeof (UNS32), (void*)&EwtCanAnalysis_obj1000, NULL }
};
我的
---------------------------------------------------------------------------------------------------------------- (1)
例程
/* index 0x1000 : Device Type. */
UNS32 EwtCanAnalysis_obj1000 = 0x0; /* 0 */
subindex EwtCanAnalysis_Index1000[] =
{
{ RO, uint32, sizeof (UNS32), (void*)&EwtCanAnalysis_obj1000 }
};
----------------------------------------------------------------------------------------------------------------
/* index 0x1017 : Producer Heartbeat Time. */
UNS16 EwtCanAnalysis_obj1017 = 0xBB8; /* 3000 */
subindex EwtCanAnalysis_Index1017[] =
{
{ RW, uint16, sizeof (UNS16), (void*)&EwtCanAnalysis_obj1017, NULL }
};
----------------------------------------------------------------------------------------------------------------(2)
/* index 0x1017 : Producer Heartbeat Time. */
UNS16 EwtCanAnalysis_obj1017 = 0xB88; /* 0xB88 */
ODCallback_t EwtCanAnalysis_Index1017_callbacks[] =
{
NULL,
};
subindex EwtCanAnalysis_Index1017[] =
{
{ RW, uint16, sizeof (UNS16), (void*)&EwtCanAnalysis_obj1017 }
};
----------------------------------------------------------------------------------------------------------------
case 0x1800: i = 16;break;
case 0x1801: i = 17;break;
case 0x1802: i = 18;break;
case 0x1803: i = 19;break;
----------------------------------------------------------------------------------------------------------------(3)
case 0x1800: i = 16;*callbacks = EwtCanAnalysis_Index1800_callbacks; break;
case 0x1801: i = 17;*callbacks = EwtCanAnalysis_Index1801_callbacks; break;
case 0x1802: i = 18;*callbacks = EwtCanAnalysis_Index1802_callbacks; break;
case 0x1803: i = 19;*callbacks = EwtCanAnalysis_Index1803_callbacks; break;
|
|