QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
RTCMFrameDecoder Class Reference

Frames RTCM bytes while retaining the first fragment's monotonic receipt time. More...

#include <RTCMFramer.h>

Public Member Functions

 RTCMFrameDecoder ()
 
 ~RTCMFrameDecoder ()
 
std::optional< RTCMDecodedFrame > addByte (uint8_t byte, qint64 receivedAtMs)
 
std::optional< RTCMDecodedFrame > nextFrame ()
 Drain after addByte() returns a result, before feeding more bytes.
 
void reset ()
 
template<typename Deliver >
bool feed (QByteArrayView bytes, qint64 receivedAtMs, Deliver &&deliver)
 
void setWhitelist (const QVector< int > &ids)
 

Detailed Description

Frames RTCM bytes while retaining the first fragment's monotonic receipt time.

Definition at line 101 of file RTCMFramer.h.

Constructor & Destructor Documentation

◆ RTCMFrameDecoder()

RTCMFrameDecoder::RTCMFrameDecoder ( )

Definition at line 11 of file RTCMFramer.cc.

◆ ~RTCMFrameDecoder()

RTCMFrameDecoder::~RTCMFrameDecoder ( )

Definition at line 16 of file RTCMFramer.cc.

Member Function Documentation

◆ addByte()

std::optional< RTCMDecodedFrame > RTCMFrameDecoder::addByte ( uint8_t  byte,
qint64  receivedAtMs 
)

Definition at line 120 of file RTCMFramer.cc.

References RTCMFramer::addByte().

Referenced by feed().

◆ feed()

template<typename Deliver >
bool RTCMFrameDecoder::feed ( QByteArrayView  bytes,
qint64  receivedAtMs,
Deliver &&  deliver 
)
inline

Frames bytes, delivering each completed frame. A delivery that returns false, because it ended the stream or retired its owner, stops framing at once; feed() then returns false.

Definition at line 115 of file RTCMFramer.h.

References addByte(), and nextFrame().

◆ nextFrame()

std::optional< RTCMDecodedFrame > RTCMFrameDecoder::nextFrame ( )

Drain after addByte() returns a result, before feeding more bytes.

Definition at line 130 of file RTCMFramer.cc.

References RTCMFramer::nextFrame().

Referenced by feed().

◆ reset()

void RTCMFrameDecoder::reset ( )

Definition at line 149 of file RTCMFramer.cc.

References RTCMFramer::reset().

◆ setWhitelist()

void RTCMFrameDecoder::setWhitelist ( const QVector< int > &  ids)
inline

Definition at line 127 of file RTCMFramer.h.

Referenced by NTRIPHttpTransport::setRtcmWhitelist().


The documentation for this class was generated from the following files: