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
FwSizeType
getBuffCapacity
()
const
;
// !< returns capacity, not current size, of buffer
24
U8
*
getBuffAddr
();
25
const
U8
*
getBuffAddr
()
const
;
26
27
private
:
28
U8
m_data[
DATA_BUFFER_SIZE
];
// packet data buffer
29
};
30
}
// namespace Drv
31
32
#endif
Drv::DataBuffer::DataBuffer
DataBuffer()
Definition:
DataBuffer.cpp:11
FwSizeType
PlatformSizeType FwSizeType
Definition:
FwSizeTypeAliasAc.h:15
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()
gets buffer address for data filling
Definition:
DataBuffer.cpp:38
Fw::SerializeBufferBase
Definition:
Serializable.hpp:70
Drv::DataBuffer::~DataBuffer
virtual ~DataBuffer()
Definition:
DataBuffer.cpp:13
U8
uint8_t U8
8-bit unsigned integer
Definition:
BasicTypes.h:53
Drv::DataBuffer::SERIALIZED_SIZE
Definition:
DataBuffer.hpp:14
Drv
Definition:
ByteStreamDataPortAc.cpp:11
Drv::DataBuffer::DATA_BUFFER_SIZE
Definition:
DataBuffer.hpp:12
Drv::DataBuffer::SERIALIZED_TYPE_ID
Definition:
DataBuffer.hpp:13
Drv::DataBuffer::getBuffCapacity
FwSizeType getBuffCapacity() const
returns capacity, not current size, of buffer
Definition:
DataBuffer.cpp:30
Serializable.hpp
Drv
Ports
DataTypes
DataBuffer.hpp
Generated by
1.8.14