0.2.0
Loading...
Searching...
No Matches
UartPacket.hpp
Go to the documentation of this file.
1// This file is part of INSTINCT, the INS Toolkit for Integrated
2// Navigation Concepts and Training by the Institute of Navigation of
3// the University of Stuttgart, Germany.
4//
5// This Source Code Form is subject to the terms of the Mozilla Public
6// License, v. 2.0. If a copy of the MPL was not distributed with this
7// file, You can obtain one at https://mozilla.org/MPL/2.0/.
8
13
14#pragma once
15
16#include "NodeData/NodeData.hpp"
17
18#include "uart/protocol/packet.hpp"
19
20namespace NAV
21{
23class UartPacket : public NodeData
24{
25 public:
28 explicit UartPacket(uart::protocol::Packet& packet)
29 : raw(packet) {}
30
33 [[nodiscard]] static std::string type()
34 {
35 return "UartPacket";
36 }
37
40 [[nodiscard]] static std::vector<std::string> parentTypes()
41 {
42 return { NodeData::type() };
43 }
44
46 uart::protocol::Packet raw;
47};
48
49} // namespace NAV
Abstract NodeData Class.
Parent class for all data transmitted over Flow pins.
Definition NodeData.hpp:27
static std::string type()
Returns the type of the data class.
Definition NodeData.hpp:44
UART Packet storage class.
Definition UartPacket.hpp:24
UartPacket(uart::protocol::Packet &packet)
Constructor.
Definition UartPacket.hpp:28
static std::vector< std::string > parentTypes()
Returns the parent types of the data class.
Definition UartPacket.hpp:40
static std::string type()
Returns the type of the data class.
Definition UartPacket.hpp:33
uart::protocol::Packet raw
Complete message raw binary data.
Definition UartPacket.hpp:46