writepacketheader.m
来自「Serial Application of GPS」· M 代码 · 共 11 行
M
11 行
function WritePacketHeader(gps, id, sz)
global pid_dle_byte
% Three byte header: (DLE, id, size)
fwrite(gps, pid_dle_byte);
fwrite(gps, id);
fwrite(gps, sz);
if (pid_dle_byte == sz)
fwrite(gps, pid_dle_byte);
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?