F´ Flight Software - C/C++ Documentation
devel
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 <
FpConfig.hpp
>
5
#include <
Fw/Types/Serializable.hpp
>
6
7
namespace
Drv
{
8
9
class
DataBuffer
:
public
Fw::SerializeBufferBase
{
10
public
:
11
12
enum
{
13
DATA_BUFFER_SIZE
= 256,
14
SERIALIZED_TYPE_ID
= 1010,
15
SERIALIZED_SIZE
=
DATA_BUFFER_SIZE
+
sizeof
(
FwBuffSizeType
)
16
};
17
18
DataBuffer
(
const
U8
*args,
NATIVE_UINT_TYPE
size);
19
DataBuffer
();
20
DataBuffer
(
const
DataBuffer
& other);
21
virtual
~DataBuffer
();
22
DataBuffer
&
operator=
(
const
DataBuffer
& other);
23
24
NATIVE_UINT_TYPE
getBuffCapacity
()
const
;
// !< returns capacity, not current size, of buffer
25
U8
*
getBuffAddr
();
26
const
U8
*
getBuffAddr
()
const
;
27
28
private
:
29
U8
m_data[
DATA_BUFFER_SIZE
];
// packet data buffer
30
};
31
}
32
33
#endif
U8
uint8_t U8
8-bit unsigned integer
Definition:
BasicTypes.h:30
NATIVE_UINT_TYPE
PlatformUIntType NATIVE_UINT_TYPE
Definition:
BasicTypes.h:56
FwBuffSizeType
FwSizeStoreType FwBuffSizeType
Definition:
FpConfig.h:452
FpConfig.hpp
C++-compatible configuration header for fprime configuration.
Serializable.hpp
Drv::DataBuffer
Definition:
DataBuffer.hpp:9
Drv::DataBuffer::DataBuffer
DataBuffer()
Definition:
DataBuffer.cpp:11
Drv::DataBuffer::operator=
DataBuffer & operator=(const DataBuffer &other)
Definition:
DataBuffer.cpp:22
Drv::DataBuffer::SERIALIZED_TYPE_ID
@ SERIALIZED_TYPE_ID
Definition:
DataBuffer.hpp:14
Drv::DataBuffer::DATA_BUFFER_SIZE
@ DATA_BUFFER_SIZE
Definition:
DataBuffer.hpp:13
Drv::DataBuffer::SERIALIZED_SIZE
@ SERIALIZED_SIZE
Definition:
DataBuffer.hpp:15
Drv::DataBuffer::~DataBuffer
virtual ~DataBuffer()
Definition:
DataBuffer.cpp:14
Drv::DataBuffer::getBuffCapacity
NATIVE_UINT_TYPE getBuffCapacity() const
returns capacity, not current size, of buffer
Definition:
DataBuffer.cpp:32
Drv::DataBuffer::getBuffAddr
U8 * getBuffAddr()
gets buffer address for data filling
Definition:
DataBuffer.cpp:40
Fw::SerializeBufferBase
Definition:
Serializable.hpp:54
Drv
Definition:
BlockDriverComponentAc.cpp:14
Drv
Ports
DataTypes
DataBuffer.hpp
Generated by
1.9.1