F´ Flight Software - C/C++ Documentation
devel
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
13
// Packet format:
14
// |32-bit packet type|packet type-specific data|
15
16
namespace
Fw
{
17
18
class
ComPacket
:
public
Serializable
{
19
public
:
20
21
typedef
enum
{
22
FW_PACKET_COMMAND
,
// !< Command packet type - incoming
23
FW_PACKET_TELEM
,
// !< Telemetry packet type - outgoing
24
FW_PACKET_LOG
,
// !< Log type - outgoing
25
FW_PACKET_FILE
,
// !< File type - incoming and outgoing
26
FW_PACKET_PACKETIZED_TLM
,
// !< Packetized telemetry packet type
27
FW_PACKET_DP
,
28
FW_PACKET_IDLE
,
// !< Idle packet
29
FW_PACKET_UNKNOWN
= 0xFF
// !< Unknown packet
30
}
ComPacketType
;
31
32
ComPacket
();
33
virtual
~ComPacket
();
34
35
protected
:
36
ComPacketType
m_type
;
37
SerializeStatus
serializeBase
(
SerializeBufferBase
& buffer)
const
;
// called by derived classes to serialize common fields
38
SerializeStatus
deserializeBase
(
SerializeBufferBase
& buffer);
// called by derived classes to deserialize common fields
39
};
40
41
}
/* namespace Fw */
42
43
#endif
/* COMPACKET_HPP_ */
Serializable.hpp
Fw::ComPacket
Definition:
ComPacket.hpp:18
Fw::ComPacket::serializeBase
SerializeStatus serializeBase(SerializeBufferBase &buffer) const
Definition:
ComPacket.cpp:18
Fw::ComPacket::m_type
ComPacketType m_type
Definition:
ComPacket.hpp:36
Fw::ComPacket::deserializeBase
SerializeStatus deserializeBase(SerializeBufferBase &buffer)
Definition:
ComPacket.cpp:22
Fw::ComPacket::ComPacketType
ComPacketType
Definition:
ComPacket.hpp:21
Fw::ComPacket::FW_PACKET_FILE
@ FW_PACKET_FILE
Definition:
ComPacket.hpp:25
Fw::ComPacket::FW_PACKET_LOG
@ FW_PACKET_LOG
Definition:
ComPacket.hpp:24
Fw::ComPacket::FW_PACKET_UNKNOWN
@ FW_PACKET_UNKNOWN
Definition:
ComPacket.hpp:29
Fw::ComPacket::FW_PACKET_PACKETIZED_TLM
@ FW_PACKET_PACKETIZED_TLM
Definition:
ComPacket.hpp:26
Fw::ComPacket::FW_PACKET_DP
@ FW_PACKET_DP
Data product packet.
Definition:
ComPacket.hpp:27
Fw::ComPacket::FW_PACKET_COMMAND
@ FW_PACKET_COMMAND
Definition:
ComPacket.hpp:22
Fw::ComPacket::FW_PACKET_IDLE
@ FW_PACKET_IDLE
Definition:
ComPacket.hpp:28
Fw::ComPacket::FW_PACKET_TELEM
@ FW_PACKET_TELEM
Definition:
ComPacket.hpp:23
Fw::ComPacket::~ComPacket
virtual ~ComPacket()
Definition:
ComPacket.cpp:15
Fw::ComPacket::ComPacket
ComPacket()
Definition:
ComPacket.cpp:12
Fw::Serializable
forward declaration
Definition:
Serializable.hpp:25
Fw::SerializeBufferBase
Definition:
Serializable.hpp:54
Fw
Definition:
FppConstantsAc.hpp:121
Fw::SerializeStatus
SerializeStatus
forward declaration for string
Definition:
Serializable.hpp:14
Fw
Com
ComPacket.hpp
Generated by
1.9.1