Fixposition SDK 0.0.0-heads/main-0-g90a51ff
Collection of c++ libraries and apps for use with Fixposition products
Loading...
Searching...
No Matches
fpsdk::common::parser::nmea::NmeaZdaPayload Struct Reference

NMEA-Gx-ZDA message payload. More...

#include <nmea.hpp>

Inheritance diagram for fpsdk::common::parser::nmea::NmeaZdaPayload:
Collaboration diagram for fpsdk::common::parser::nmea::NmeaZdaPayload:

Public Member Functions

bool SetFromMsg (const uint8_t *msg, const std::size_t msg_size)
 Set data from sentence.
 
- Public Member Functions inherited from fpsdk::common::parser::nmea::NmeaPayload
virtual ~NmeaPayload ()=default
 Virtual dtor for polymorphism.
 

Public Attributes

NmeaTime time
 Time.
 
NmeaDate date
 Date.
 
NmeaInt local_hr
 Local zone hours, always 00 (= UTC)
 
NmeaInt local_min
 Local zone minutes, always 00 (= UTC)
 
- Public Attributes inherited from fpsdk::common::parser::nmea::NmeaPayload
NmeaTalkerId talker = NmeaTalkerId::UNSPECIFIED
 Talker.
 
bool valid_ = false
 Payload successfully decoded (true), or not (yet) decoded (false)
 

Static Public Attributes

static constexpr const char * FORMATTER = "ZDA"
 Formatter.
 

Detailed Description

NMEA-Gx-ZDA message payload.

Definition at line 623 of file nmea.hpp.

Member Function Documentation

◆ SetFromMsg()

bool fpsdk::common::parser::nmea::NmeaZdaPayload::SetFromMsg ( const uint8_t * msg,
const std::size_t msg_size )

Set data from sentence.

Parameters
[in]msgPointer to the NMEA message
[in]msg_sizeSize of the NMEA message (>= 11)
Returns
true if sentence payload was correct and all data could be extracted (fields are now valid), or false otherwise (fields are now invalid)

Member Data Documentation

◆ time

NmeaTime fpsdk::common::parser::nmea::NmeaZdaPayload::time

Time.

Definition at line 625 of file nmea.hpp.

◆ date

NmeaDate fpsdk::common::parser::nmea::NmeaZdaPayload::date

Date.

Definition at line 626 of file nmea.hpp.

◆ local_hr

NmeaInt fpsdk::common::parser::nmea::NmeaZdaPayload::local_hr

Local zone hours, always 00 (= UTC)

Definition at line 627 of file nmea.hpp.

◆ local_min

NmeaInt fpsdk::common::parser::nmea::NmeaZdaPayload::local_min

Local zone minutes, always 00 (= UTC)

Definition at line 628 of file nmea.hpp.

◆ FORMATTER

const char* fpsdk::common::parser::nmea::NmeaZdaPayload::FORMATTER = "ZDA"
staticconstexpr

Formatter.

Definition at line 641 of file nmea.hpp.


The documentation for this struct was generated from the following file: