F´ Flight Software - C/C++ Documentation
NASA-v2.0.1
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
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Functions
a
b
c
d
g
h
i
m
r
s
t
v
w
Variables
Typedefs
Enumerations
Enumerator
a
b
f
h
i
n
o
p
s
v
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
d
e
f
g
h
i
l
m
n
p
q
s
t
u
v
w
Typedefs
Enumerations
Enumerator
a
b
c
d
e
f
g
h
l
m
n
o
p
q
r
s
t
w
Related Functions
Files
File List
File Members
All
_
a
b
c
d
f
g
h
i
k
l
m
n
p
r
s
t
u
v
Functions
f
i
m
s
u
Variables
Typedefs
Enumerations
Enumerator
c
d
f
m
p
r
s
t
Macros
a
c
d
f
g
h
i
k
l
m
n
p
r
s
t
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
ComPacket.cpp
Go to the documentation of this file.
1
/*
2
* ComPacket.cpp
3
*
4
* Created on: May 24, 2014
5
* Author: Timothy Canham
6
*/
7
8
#include <
Fw/Com/ComPacket.hpp
>
9
10
namespace
Fw
{
11
12
ComPacket::ComPacket
() : m_type(FW_PACKET_UNKNOWN) {
13
}
14
15
ComPacket::~ComPacket
() {
16
}
17
18
SerializeStatus
ComPacket::serializeBase
(
SerializeBufferBase
& buffer)
const
{
19
return
buffer.
serialize
(
static_cast<
FwPacketDescriptorType
>
(this->
m_type
));
20
}
21
22
SerializeStatus
ComPacket::deserializeBase
(
SerializeBufferBase
& buffer) {
23
FwPacketDescriptorType
serVal;
24
SerializeStatus
stat = buffer.
deserialize
(serVal);
25
if
(
FW_SERIALIZE_OK
== stat) {
26
this->
m_type
=
static_cast<
ComPacketType
>
(serVal);
27
}
28
return
stat;
29
}
30
31
32
}
/* namespace Fw */
Fw::ComPacket::deserializeBase
SerializeStatus deserializeBase(SerializeBufferBase &buffer)
Definition:
ComPacket.cpp:22
Fw::SerializeBufferBase
Definition:
Serializable.hpp:43
Fw::SerializeStatus
SerializeStatus
forward declaration for string
Definition:
Serializable.hpp:14
Fw::SerializeBufferBase::serialize
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
Definition:
Serializable.cpp:67
FwPacketDescriptorType
#define FwPacketDescriptorType
Type representation for a packet descriptor.
Definition:
FpConfig.hpp:58
Fw::ComPacket::serializeBase
SerializeStatus serializeBase(SerializeBufferBase &buffer) const
Definition:
ComPacket.cpp:18
Fw::FW_SERIALIZE_OK
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.
Definition:
Serializable.hpp:15
Fw::ComPacket::ComPacket
ComPacket()
Definition:
ComPacket.cpp:12
Fw::ComPacket::~ComPacket
virtual ~ComPacket()
Definition:
ComPacket.cpp:15
Fw::ComPacket::m_type
ComPacketType m_type
Definition:
ComPacket.hpp:35
Fw::SerializeBufferBase::deserialize
SerializeStatus deserialize(U8 &val)
deserialize 8-bit unsigned int
Definition:
Serializable.cpp:290
Fw::ComPacket::ComPacketType
ComPacketType
Definition:
ComPacket.hpp:21
ComPacket.hpp
Fw
Definition:
Buffer.cpp:21
Fw
Com
ComPacket.cpp
Generated by
1.8.17