Board logo

标题: Cskip [打印本页]

作者: 微毫度十分个扩大飞机公婆    时间: 2007-2-6 10:49     标题: Cskip

// Cskip array should have MAX_NODE_DEPTH + 1 entries
// last entry is always zero, one prior to it is always 1
// each preceding entry has a value of the next entry..
// .. plus MAX_CHILD_NODES*MAX_ROUTER_NODES^i, where..
// .. i goes from zero for entry preceding value 1 ..
// .. and increments by 1 each time

斑竹可以结合上面的话讲讲Cskip的意思吗?谢谢
作者: 微毫度十分个扩大飞机公婆    时间: 2007-2-6 10:49

#if ( STACK_PROFILE_ID == NETWORK_SPECIFIC )
const uint16 Cskip[] = {781, 156, 31, 6, 1, 0};
#elif ( STACK_PROFILE_ID == HOME_CONTROLS )
const uint16 Cskip[] = {5181, 861, 141, 21, 1, 0};
#elif ( STACK_PROFILE_ID == GENERIC_STAR )
const uint16 Cskip[] = {1, 0};
#elif ( STACK_PROFILE_ID == GENERIC_TREE )
const uint16 Cskip[] = {820, 91, 10, 1, 0};
#endif
作者: seuafu2005    时间: 2007-2-6 14:21

cSkip的值在z-stack中有个excel文件可以计算,根据计算的值得出
最后一个元素必须为0,倒数第二个必须为1,往上根据MAX_CHILD_NODES*MAX_ROUTER_NODES^i公式计算,i依次递增




欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) Powered by Discuz! 7.0.0