QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
QuectelCodec.h File Reference
#include <array>
#include <cstddef>
#include <string_view>
#include "GPSCommand.h"
#include "NMEASentence.h"
+ Include dependency graph for QuectelCodec.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QuectelCodec::Fields
 Borrowed fields for the largest supported PQTM reply, including empty trailing fields. More...
 

Namespaces

namespace  QuectelCodec
 PQTM reply fields and the acknowledgement and readback rules every command shares.
 

Functions

template<typename T >
bool QuectelCodec::number (std::string_view text, T &result)
 
std::string_view QuectelCodec::checkedBody (std::string_view line)
 The body of a checksum-valid "$<body>*hh" line; empty otherwise.
 
bool QuectelCodec::rejected (const Fields &reply, std::string_view command)
 
GPSCommandOutcome QuectelCodec::acknowledgement (const Fields &reply, std::string_view command)
 "<command>,OK" acknowledges and "<command>,ERROR,<code>" rejects a setting.
 
GPSCommandOutcome QuectelCodec::readback (const Fields &reply, std::string_view command, bool matches)