F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
ComBuffer.hpp
Go to the documentation of this file.
1
/*
2
* FwComBuffer.hpp
3
*
4
* Created on: May 24, 2014
5
* Author: tcanham
6
*/
7
8
/*
9
* Description:
10
* This object contains the ComBuffer type, used for sending and receiving packets from the ground
11
*/
12
#ifndef FW_COM_BUFFER_HPP
13
#define FW_COM_BUFFER_HPP
14
15
#include <
Fw/FPrimeBasicTypes.hpp
>
16
#include <
Fw/Types/Serializable.hpp
>
17
18
namespace
Fw
{
19
20
class
ComBuffer
final :
public
SerializeBufferBase
{
21
public
:
22
23
enum
{
24
SERIALIZED_TYPE_ID
= 1010,
25
SERIALIZED_SIZE
=
FW_COM_BUFFER_MAX_SIZE
+
sizeof
(
FwBuffSizeType
)
// size of buffer + storage of size word
26
};
27
28
ComBuffer
(
const
U8
*args,
FwSizeType
size);
29
ComBuffer
();
30
ComBuffer
(
const
ComBuffer
& other);
31
virtual
~ComBuffer
();
32
ComBuffer
&
operator=
(
const
ComBuffer
& other);
33
34
FwSizeType
getBuffCapacity
()
const
;
// !< returns capacity, not current size, of buffer
35
U8
*
getBuffAddr
();
36
const
U8
*
getBuffAddr
()
const
;
37
38
private
:
39
U8
m_bufferData[
FW_COM_BUFFER_MAX_SIZE
];
// packet data buffer
40
};
41
42
}
43
44
#endif
Fw::ComBuffer::getBuffCapacity
FwSizeType getBuffCapacity() const
returns capacity, not current size, of buffer
Definition:
ComBuffer.cpp:32
FwSizeType
PlatformSizeType FwSizeType
Definition:
FwSizeTypeAliasAc.h:15
FPrimeBasicTypes.hpp
Fw::ComBuffer::~ComBuffer
virtual ~ComBuffer()
Definition:
ComBuffer.cpp:14
FwBuffSizeType
FwSizeStoreType FwBuffSizeType
Definition:
FPrimeBasicTypes.h:56
Fw::SerializeBufferBase
Definition:
Serializable.hpp:54
Fw::ComBuffer::ComBuffer
ComBuffer()
Definition:
ComBuffer.cpp:11
Fw::ComBuffer::getBuffAddr
U8 * getBuffAddr()
gets buffer address for data filling
Definition:
ComBuffer.cpp:40
FW_COM_BUFFER_MAX_SIZE
#define FW_COM_BUFFER_MAX_SIZE
Definition:
FpConfig.h:182
Fw::ComBuffer::operator=
ComBuffer & operator=(const ComBuffer &other)
Definition:
ComBuffer.cpp:22
U8
uint8_t U8
8-bit unsigned integer
Definition:
BasicTypes.h:56
Fw::ComBuffer
Definition:
ComBuffer.hpp:20
Fw::ComBuffer::SERIALIZED_TYPE_ID
Definition:
ComBuffer.hpp:24
Fw::ComBuffer::SERIALIZED_SIZE
Definition:
ComBuffer.hpp:25
Fw
Definition:
FppConstantsAc.hpp:121
Serializable.hpp
Fw
Com
ComBuffer.hpp
Generated by
1.8.14