⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 zblevel.m

📁 在matlab实现的zigbee源代码
💻 M
字号:
function [level, child] = zblevel(Cm, Lm, id)
% return the level of id in the ZigBee tree, and it is the 'child'th child of its parent

if id == 0
    level = 0;
    child = 1;
    return
end
i=1;
while(mod(id-1, cskip(Cm, Lm, i)))
    id=mod(id-1, cskip(Cm, Lm, i));
    i=i+1;            
end
level = i;
child = floor((id-1)/cskip(Cm, Lm, i)) + 1;
return

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -