F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
Functions
c
d
e
f
g
i
m
p
r
s
t
v
w
Variables
b
c
d
f
l
m
o
p
s
t
z
Typedefs
Enumerations
c
f
o
p
s
Enumerator
a
b
c
e
f
h
i
m
n
o
p
r
s
t
u
v
w
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Typedefs
c
e
p
s
t
u
Enumerations
b
c
d
g
h
l
m
o
p
s
t
u
w
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Related Functions
a
b
c
d
e
f
g
h
l
o
p
r
s
t
u
v
Files
File List
File Members
All
_
a
b
c
d
f
g
h
i
l
m
p
q
r
s
t
u
v
Functions
c
i
m
s
u
Variables
Typedefs
b
c
d
f
i
m
q
r
s
t
u
Enumerations
Enumerator
a
b
c
d
f
g
h
p
r
s
t
Macros
_
a
c
d
f
h
l
m
p
r
s
u
v
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
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
// |32-bit packet type|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
APIDEnumAc.hpp
Fw::SerializeStatus
SerializeStatus
forward declaration for string
Definition:
Serializable.hpp:14
ComCfg::APID::T
T
The raw enum type.
Definition:
APIDEnumAc.hpp:31
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:64
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