F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
Toggle main menu visibility
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
a
b
c
d
g
h
i
m
o
p
r
s
t
v
w
Variables
Typedefs
a
b
c
d
e
f
g
h
l
o
p
r
s
t
u
w
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
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
c
e
s
t
w
Enumerations
b
c
d
g
h
m
o
q
s
t
u
w
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Related Symbols
a
b
c
d
f
g
h
l
p
r
s
t
u
Files
File List
File Members
All
_
a
b
c
d
f
g
h
i
l
m
n
p
r
s
t
u
v
Functions
i
m
p
s
u
Variables
_
b
c
f
i
l
p
r
s
Typedefs
b
c
f
i
n
p
s
u
Enumerations
Enumerator
a
b
c
f
g
h
p
r
s
t
Macros
_
a
c
d
f
g
h
i
l
m
p
r
s
t
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
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
}
12
ComPacket::ComPacket
() : m_type(FW_PACKET_UNKNOWN) {
…
}
14
15
ComPacket::~ComPacket
() {
16
}
15
ComPacket::~ComPacket
() {
…
}
17
18
SerializeStatus
ComPacket::serializeBase
(
SerializeBufferBase
& buffer)
const
{
19
return
buffer.
serialize
(
static_cast<
FwPacketDescriptorType
>
(this->
m_type
));
20
}
18
SerializeStatus
ComPacket::serializeBase
(
SerializeBufferBase
& buffer)
const
{
…
}
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
}
22
SerializeStatus
ComPacket::deserializeBase
(
SerializeBufferBase
& buffer) {
…
}
30
31
32
}
/* namespace Fw */
ComPacket.hpp
FwPacketDescriptorType
U32 FwPacketDescriptorType
Definition
FpConfig.h:53
Fw::ComPacket::serializeBase
SerializeStatus serializeBase(SerializeBufferBase &buffer) const
Definition
ComPacket.cpp:18
Fw::ComPacket::m_type
ComPacketType m_type
Definition
ComPacket.hpp:35
Fw::ComPacket::deserializeBase
SerializeStatus deserializeBase(SerializeBufferBase &buffer)
Definition
ComPacket.cpp:22
Fw::ComPacket::ComPacketType
ComPacketType
Definition
ComPacket.hpp:21
Fw::ComPacket::~ComPacket
virtual ~ComPacket()
Definition
ComPacket.cpp:15
Fw::ComPacket::ComPacket
ComPacket()
Definition
ComPacket.cpp:12
Fw::SerializeBufferBase
Definition
Serializable.hpp:41
Fw::SerializeBufferBase::deserialize
SerializeStatus deserialize(U8 &val)
deserialize 8-bit unsigned int
Definition
Serializable.cpp:290
Fw::SerializeBufferBase::serialize
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
Definition
Serializable.cpp:67
Fw
Definition
BufferGetPortAc.cpp:11
Fw::SerializeStatus
SerializeStatus
forward declaration for string
Definition
Serializable.hpp:13
Fw::FW_SERIALIZE_OK
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.
Definition
Serializable.hpp:14
Fw
Com
ComPacket.cpp
Generated by
1.10.0