point_one::fusion_engine::messages::VersionInfoMessage Struct Reference

Detailed Description

Software version information, (MessageType::VERSION_INFO, version 1.0).

This message contains version strings for each of the following, where available:

  • Firmware - The current version of the platform software/firmware being used
  • Engine - The version of Point One FusionEngine being used
  • OS - The version of the operating system/kernel/bootloader being used
  • GNSS Receiver - The version of firmware being used by the device's GNSS receiver

The message payload specifies the length of each string (in bytes). It is followed by each of the listed version strings consecutively. The strings are not null-terminated.

{MessageHeader, VersionInfoMessage, "Firmware Version", "Engine Version",
"OS Version", "Receiver Version"}

The following is an example of extracting the firmware and engine version strings from a byte array containing the entire message:

auto message = *reinterpret_cast<const VersionInfoMessage*>(buffer);
buffer += sizeof(VersionInfoMessage);
std::string fw_version(buffer, message.fw_version_length);
buffer += message.fw_version_length;
std::string engine_version(buffer, message.engine_version_length);

Definition at line 63 of file device.h.

Inheritance diagram for point_one::fusion_engine::messages::VersionInfoMessage:
point_one::fusion_engine::messages::MessagePayload

#include <point_one/fusion_engine/messages/device.h>

Public Attributes

uint8_t engine_version_length = 0
 The length of the FusionEngine version string (in bytes). More...
 
uint8_t fw_version_length = 0
 The length of the firmware version string (in bytes). More...
 
uint8_t os_version_length = 0
 The length of the OS version string (in bytes). More...
 
uint8_t rx_version_length = 0
 The length of the GNSS receiver version string (in bytes). More...
 
int64_t system_time_ns = 0
 The current system timestamp (in ns). More...
 

Static Public Attributes

static constexpr MessageType MESSAGE_TYPE = MessageType::VERSION_INFO
 
static constexpr uint8_t MESSAGE_VERSION = 0
 

Member Data Documentation

◆ engine_version_length

uint8_t point_one::fusion_engine::messages::VersionInfoMessage::engine_version_length = 0

The length of the FusionEngine version string (in bytes).

Definition at line 74 of file device.h.

◆ fw_version_length

uint8_t point_one::fusion_engine::messages::VersionInfoMessage::fw_version_length = 0

The length of the firmware version string (in bytes).

Definition at line 71 of file device.h.

◆ MESSAGE_TYPE

constexpr MessageType point_one::fusion_engine::messages::VersionInfoMessage::MESSAGE_TYPE = MessageType::VERSION_INFO
staticconstexpr

Definition at line 64 of file device.h.

◆ MESSAGE_VERSION

constexpr uint8_t point_one::fusion_engine::messages::VersionInfoMessage::MESSAGE_VERSION = 0
staticconstexpr

Definition at line 65 of file device.h.

◆ os_version_length

uint8_t point_one::fusion_engine::messages::VersionInfoMessage::os_version_length = 0

The length of the OS version string (in bytes).

Definition at line 77 of file device.h.

◆ rx_version_length

uint8_t point_one::fusion_engine::messages::VersionInfoMessage::rx_version_length = 0

The length of the GNSS receiver version string (in bytes).

Definition at line 80 of file device.h.

◆ system_time_ns

int64_t point_one::fusion_engine::messages::VersionInfoMessage::system_time_ns = 0

The current system timestamp (in ns).

Definition at line 68 of file device.h.


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