F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
Functions
a
b
c
d
g
h
i
m
o
p
r
s
t
v
w
Variables
Typedefs
a
b
c
d
e
f
g
h
l
o
p
r
s
t
u
w
Enumerations
Enumerator
a
b
c
f
h
i
n
o
p
s
v
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
Typedefs
c
e
s
t
u
w
Enumerations
b
c
d
g
h
m
o
q
s
t
u
w
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Related Symbols
a
b
c
d
f
g
h
l
p
r
s
t
u
Files
File List
File Members
All
_
a
b
c
d
f
g
h
i
l
m
n
p
r
s
t
u
v
Functions
c
i
m
p
s
u
Variables
_
b
c
f
i
l
p
r
s
Typedefs
b
c
f
i
n
p
s
u
Enumerations
Enumerator
a
b
c
d
f
g
h
p
r
s
t
Macros
_
a
c
d
f
g
h
i
l
m
p
r
s
t
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
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
};
9
class
DataBuffer
:
public
Fw::SerializeBufferBase
{
…
};
31
}
32
33
#endif
U8
uint8_t U8
8-bit unsigned integer
Definition
BasicTypes.h:26
NATIVE_UINT_TYPE
PlatformUIntType NATIVE_UINT_TYPE
Definition
BasicTypes.h:52
FwBuffSizeType
U16 FwBuffSizeType
Definition
FpConfig.h:30
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:41
Drv
Definition
BlockDriverComponentAc.cpp:15
Drv
DataTypes
DataBuffer.hpp
Generated by
1.10.0