F´ Flight Software - C/C++ Documentation
NASA-v2.0.1
A framework for building embedded system applications to NASA flight quality standards.
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Functions
a
b
c
d
g
h
i
m
r
s
t
v
w
Variables
Typedefs
Enumerations
Enumerator
a
b
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
b
d
e
f
g
h
i
l
m
n
p
q
s
t
u
v
w
Typedefs
Enumerations
Enumerator
a
b
c
d
e
f
g
h
l
m
n
o
p
q
r
s
t
w
Related Functions
Files
File List
File Members
All
_
a
b
c
d
f
g
h
i
k
l
m
n
p
r
s
t
u
v
Functions
f
i
m
s
u
Variables
Typedefs
Enumerations
Enumerator
c
d
f
m
p
r
s
t
Macros
a
c
d
f
g
h
i
k
l
m
n
p
r
s
t
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
DataBuffer.cpp
Go to the documentation of this file.
1
#include <
Drv/DataTypes/DataBuffer.hpp
>
2
#include <
Fw/Types/Assert.hpp
>
3
4
namespace
Drv
{
5
6
DataBuffer::DataBuffer
(
const
U8
*args,
NATIVE_UINT_TYPE
size) {
7
Fw::SerializeStatus
stat =
Fw::SerializeBufferBase::setBuff
(args,size);
8
FW_ASSERT
(
Fw::FW_SERIALIZE_OK
== stat,
static_cast<
NATIVE_INT_TYPE
>
(stat));
9
}
10
11
DataBuffer::DataBuffer
() {
12
}
13
14
DataBuffer::~DataBuffer
() {
15
}
16
17
DataBuffer::DataBuffer
(
const
DataBuffer
& other) :
Fw
::SerializeBufferBase() {
18
Fw::SerializeStatus
stat =
Fw::SerializeBufferBase::setBuff
(other.m_data,other.
getBuffLength
());
19
FW_ASSERT
(
Fw::FW_SERIALIZE_OK
== stat,
static_cast<
NATIVE_INT_TYPE
>
(stat));
20
}
21
22
const
DataBuffer
&
DataBuffer::operator=
(
const
DataBuffer
& other) {
23
Fw::SerializeStatus
stat =
Fw::SerializeBufferBase::setBuff
(other.m_data,other.
getBuffLength
());
24
FW_ASSERT
(
Fw::FW_SERIALIZE_OK
== stat,
static_cast<
NATIVE_INT_TYPE
>
(stat));
25
return
*
this
;
26
}
27
28
NATIVE_UINT_TYPE
DataBuffer::getBuffCapacity
(
void
)
const
{
29
return
sizeof
(this->m_data);
30
}
31
32
const
U8
*
DataBuffer::getBuffAddr
(
void
)
const
{
33
return
this->m_data;
34
}
35
36
U8
*
DataBuffer::getBuffAddr
(
void
) {
37
return
this->m_data;
38
}
39
40
}
Drv::DataBuffer
Definition:
DataBuffer.hpp:9
Fw::SerializeStatus
SerializeStatus
forward declaration for string
Definition:
Serializable.hpp:14
Drv::DataBuffer::getBuffAddr
U8 * getBuffAddr(void)
gets buffer address for data filling
Definition:
DataBuffer.cpp:36
U8
uint8_t U8
8-bit unsigned integer
Definition:
BasicTypes.hpp:76
Drv::DataBuffer::getBuffCapacity
NATIVE_UINT_TYPE getBuffCapacity(void) const
returns capacity, not current size, of buffer
Definition:
DataBuffer.cpp:28
Drv::DataBuffer::DataBuffer
DataBuffer()
Definition:
DataBuffer.cpp:11
Drv
Definition:
BlockDriverImpl.cpp:5
Assert.hpp
Fw::FW_SERIALIZE_OK
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.
Definition:
Serializable.hpp:15
NATIVE_UINT_TYPE
unsigned int NATIVE_UINT_TYPE
native unsigned integer type declaration
Definition:
BasicTypes.hpp:30
Drv::DataBuffer::~DataBuffer
virtual ~DataBuffer()
Definition:
DataBuffer.cpp:14
FW_ASSERT
#define FW_ASSERT(...)
Definition:
Assert.hpp:9
Fw::SerializeBufferBase::getBuffLength
NATIVE_UINT_TYPE getBuffLength() const
returns current buffer size
Definition:
Serializable.cpp:587
Fw::SerializeBufferBase::setBuff
SerializeStatus setBuff(const U8 *src, NATIVE_UINT_TYPE length)
sets buffer contents and size
Definition:
Serializable.cpp:591
Drv::DataBuffer::operator=
const DataBuffer & operator=(const DataBuffer &other)
Definition:
DataBuffer.cpp:22
DataBuffer.hpp
NATIVE_INT_TYPE
int NATIVE_INT_TYPE
native integer type declaration
Definition:
BasicTypes.hpp:29
Fw
Definition:
Buffer.cpp:21
Drv
DataTypes
DataBuffer.cpp
Generated by
1.8.17