F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
DataBuffer.hpp
Go to the documentation of this file.
1
#ifndef _DrvDataBuffer_hpp_
2
#define _DrvDataBuffer_hpp_
3
4
#include <
Fw/FPrimeBasicTypes.hpp
>
5
#include <
Fw/Types/Serializable.hpp
>
6
7
namespace
Drv
{
8
9
class
DataBuffer
:
public
Fw::SerializeBufferBase
{
10
public
:
11
enum
{
12
DATA_BUFFER_SIZE
= 256,
13
SERIALIZED_TYPE_ID
= 1010,
14
SERIALIZED_SIZE
=
DATA_BUFFER_SIZE
+
sizeof
(
FwBuffSizeType
)
15
};
16
17
DataBuffer
(
const
U8
* args,
FwSizeType
size);
18
DataBuffer
();
19
DataBuffer
(
const
DataBuffer
& other);
20
virtual
~DataBuffer
();
21
DataBuffer
&
operator=
(
const
DataBuffer
& other);
22
23
DEPRECATED
(
FwSizeType
getBuffCapacity()
const
,
"Use getCapacity() instead"
);
24
FwSizeType
getCapacity
()
const
;
25
26
U8
*
getBuffAddr
();
27
const
U8
*
getBuffAddr
()
const
;
28
29
private
:
30
U8
m_data[
DATA_BUFFER_SIZE
];
// packet data buffer
31
};
32
}
// namespace Drv
33
34
#endif
Drv::DataBuffer::DataBuffer
DataBuffer()
Definition:
DataBuffer.cpp:11
FwSizeType
PlatformSizeType FwSizeType
Definition:
FwSizeTypeAliasAc.h:15
Drv::DataBuffer::getCapacity
FwSizeType getCapacity() const
Get buffer capacity.
Definition:
DataBuffer.cpp:30
FPrimeBasicTypes.hpp
Drv::DataBuffer
Definition:
DataBuffer.hpp:9
FwBuffSizeType
FwSizeStoreType FwBuffSizeType
Definition:
FPrimeBasicTypes.h:57
Drv::DataBuffer::operator=
DataBuffer & operator=(const DataBuffer &other)
Definition:
DataBuffer.cpp:20
Drv::DataBuffer::getBuffAddr
U8 * getBuffAddr()
Get buffer address for data filling (non-const version)
Definition:
DataBuffer.cpp:42
Drv::DataBuffer::~DataBuffer
virtual ~DataBuffer()
Definition:
DataBuffer.cpp:13
Drv::DataBuffer::SERIALIZED_TYPE_ID
Definition:
DataBuffer.hpp:13
Drv::DataBuffer::DEPRECATED
DEPRECATED(FwSizeType getBuffCapacity() const, "Use getCapacity() instead")
U8
uint8_t U8
8-bit unsigned integer
Definition:
BasicTypes.h:53
Fw::LinearBufferBase
Definition:
Serializable.hpp:672
Drv::DataBuffer::DATA_BUFFER_SIZE
Definition:
DataBuffer.hpp:12
Drv
Definition:
ByteStreamDataPortAc.cpp:11
Drv::DataBuffer::SERIALIZED_SIZE
Definition:
DataBuffer.hpp:14
Serializable.hpp
Drv
Ports
DataTypes
DataBuffer.hpp
Generated by
1.8.14