www.pudn.com > SerialGPS.zip > SendEndPacket.m


function SendEndPacket(gps, cmd) 
% SENDENDPACKET Send the standard ending packet 
 
WritePacketHeader(gps, pid_xfer_cmplt, 2) 
fwrite(gps, cmd, 'int16'); 
WritePacketTerminator(gps, pid_xfer_cmplt, cmd);