protocol
nmea_protocol
Protocol for parsing NMEA 0183 sentences and projecting supported sentence types into typed semantic terms.
logtalk_load(nmea(loader))staticPublic predicates
parse/2
Parses NMEA sentences from a source specification into canonical raw sentence terms. Supported source specifications are atom(Atom), chars(List), codes(List), stream(Stream), and file(Path).
staticparse(Source,Sentences)parse(++compound,--list(compound)) - one_or_errorSource is a variable or contains a variable source argument:instantiation_errorSource is neither a variable nor a valid source specification:domain_error(nmea_source,Source)Source is a valid source specification but contains a line that cannot be parsed as a sentence:domain_error(nmea_sentence,Line)parse/3
Parses NMEA sentences from a source specification using parser options. Supported options are checksum(required), checksum(optional), checksum(ignore), unknown_type(keep), and unknown_type(error).
staticparse(Source,Sentences,Options)parse(++compound,--list(compound),++list(compound)) - one_or_errorSource is a variable or contains a variable source argument:instantiation_errorSource is neither a variable nor a valid source specification:domain_error(nmea_source,Source)Source is a valid source specification but contains a line that cannot be parsed as a sentence:domain_error(nmea_sentence,Line)Options is a variable or a partial list:instantiation_errorOptions is neither a variable nor a list:type_error(list,Options)Option of the list Options is neither a variable nor a compound term:type_error(compound,Option)Option of the list Options is a compound term but not a valid option:domain_error(option,Option)talker/2
Returns the normalized talker identifier for a parsed sentence. Proprietary sentences use the atom proprietary.
statictalker(Sentence,Talker)talker(+compound,-atom) - onesentence_type/2
Returns the normalized sentence type identifier for a parsed sentence.
staticsentence_type(Sentence,Type)sentence_type(+compound,-atom) - onefields/2
Returns the lossless ordered list of sentence fields after the sentence identifier.
staticfields(Sentence,Fields)fields(+compound,-list(atom)) - onechecksum/2
Returns the checksum information as checksum(Provided,Computed) where Provided is either a normalized two-digit hexadecimal atom or missing.
staticchecksum(Sentence,Checksum)checksum(+compound,-compound) - onedata/2
Projects a parsed sentence into a typed semantic term for the supported sentence types gga, rmc, gsa, gsv, vtg, and gll.
staticdata(Sentence,Data)data(+compound,-compound) - zero_or_oneProtected predicates
(none)
Private predicates
(none)
Operators
(none)