writepacketheader.m

来自「基于串行接口的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 + -
显示快捷键?