function SendEndPacket(gps, cmd) % SENDENDPACKET Send the standard ending packet WritePacketHeader(gps, pid_xfer_cmplt, 2) fw…
GPS Terminal 源代码
汇集 GPS Terminal 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
function WritePacket(gps, id, data, type) % WritePacket Write the a packet with the given id and data % Since pid_dle_byte is us…
function [id, sz] = ReadPacketHeader(gps); dle = 16; etx = 3; nak = 21; ack = 6; % Three byte heade…
function data = ReadProductDataType(gps) % ReadProductDataType Read product id, version number and descriptive text global…
function [gps, pid, version, text, protocols] = OpenGPS(port) global pid_product_rqst % Initialize global consta…
function protocols = ReadProtocols(gps) % READPROTOCOLS Read the Protocol Capability Protocol data from the GPS % Return a struc…
function WritePacketHeader(gps, id, sz) global pid_dle_byte % Three byte header: (DLE, id, size) fwrite(gps, pid_dle_byte); …
function SendBeginPacket(gps, count) % SENDBEGINPACKET Send the standard begin command packet WritePacketHeader(gps, pid_recor…
function cksum = ReadPacketTerminator(gps) % ReadPacketTerminator Read the three byte sequence terminating a packet global pid_d…
function routes = ReadRoutes(gps) % READROUTES Read all the route data from the GPS global pid_command_data cmd_transfer_rte p…