摘要: 1. rootparams.h中 添加 SVAR(GatewayInfo);2. rootparams.c文件中 去掉 gwInfoDesc[]的注释。3. 下面要进行 生成gatewayinfoparams.c文件 其中有gwInfoDesc[]节点描述 TRxObjNode gwInfoDesc[] = {... }4. 在gatewayinfoparams.h文件中 声明gwInfoDesc[]={}中 各个parameter的SVAR(parameter);5. 在 gatewayinfoparams.c文件中 声明TRXGFUNC (parameter);6. 在gatewayin. 阅读全文
posted @ 2013-05-31 18:04 安心种田 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 以Device下的Device.DeviceInfo为例1. grep DeviceInfo -r ./ (1) rootparams.h 文件中 /* InternetGatewayDevice.DeviceInfo. */ SVAR(DeviceInfo); (2) rootparams.c 文件中 TRxObjNode DeviceDesc[] = {.... {DeviceInfo,{{tObject,0,0}}, NULL,NULL, deviceInfoDesc,NULL}, ....2. grep deviceInfoDesc -r ./ (1) rootparams.c ... 阅读全文
posted @ 2013-05-31 17:26 安心种田 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 1. external/tr69c/inc/tr69cdefs.htypedef struct TRxObjNode{ const char *name; TRxPAtrrib paramAttrib; TRxSETFUNC setTRxParam; /* only set if param is writeable */ TRxGETFUNC getTRxParam; void *objDetail; InstanceDope *instanceDope;}TRxObjNode;2. (1)typedef union TRxPAttrib { struct Attrib { eTRxType 阅读全文
posted @ 2013-05-31 15:11 安心种田 阅读(305) 评论(0) 推荐(0) 编辑