F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
ComPacket.hpp
Go to the documentation of this file.
1
/*
2
* ComPacket.hpp
3
*
4
* Created on: May 24, 2014
5
* Author: Timothy Canham
6
*/
7
8
#ifndef COMPACKET_HPP_
9
#define COMPACKET_HPP_
10
11
#include <
Fw/Types/Serializable.hpp
>
12
#include "
config/ApidEnumAc.hpp
"
13
14
// Packet format:
15
// | packet type (width = FwPacketDescriptorType) | packet type-specific data |
16
17
namespace
Fw
{
18
19
// This type is defined in config/ComCfg.fpp
20
using
ComPacketType
=
ComCfg::Apid::T
;
21
22
class
ComPacket
:
public
Serializable
{
23
public
:
24
ComPacket
();
25
virtual
~ComPacket
();
26
27
protected
:
28
ComPacketType
m_type
;
29
SerializeStatus
serializeBase
(
30
SerializeBufferBase
& buffer)
const
;
// called by derived classes to serialize common fields
31
SerializeStatus
deserializeBase
(
32
SerializeBufferBase
& buffer);
// called by derived classes to deserialize common fields
33
};
34
35
}
/* namespace Fw */
36
37
#endif
/* COMPACKET_HPP_ */
Fw::ComPacket::m_type
ComPacketType m_type
Definition:
ComPacket.hpp:28
Fw::SerializeStatus
SerializeStatus
forward declaration for string
Definition:
Serializable.hpp:14
ApidEnumAc.hpp
Fw::ComPacket::serializeBase
SerializeStatus serializeBase(SerializeBufferBase &buffer) const
Definition:
ComPacket.cpp:16
Fw::ComPacket::~ComPacket
virtual ~ComPacket()
Definition:
ComPacket.cpp:14
Fw::SerializeBufferBase
Definition:
Serializable.hpp:70
ComCfg::Apid::T
T
The raw enum type.
Definition:
ApidEnumAc.hpp:31
Fw::ComPacket
Definition:
ComPacket.hpp:22
Fw::ComPacket::deserializeBase
SerializeStatus deserializeBase(SerializeBufferBase &buffer)
Definition:
ComPacket.cpp:20
Fw::Serializable
forward declaration
Definition:
Serializable.hpp:25
Fw
Definition:
FppConstantsAc.hpp:121
Serializable.hpp
Fw::ComPacket::ComPacket
ComPacket()
Definition:
ComPacket.cpp:12
Fw
Com
ComPacket.hpp
Generated by
1.8.14