F´ Flight Software - C/C++ Documentation
NASA-v1.6.0
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
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
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
x
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
d
e
f
g
h
i
l
m
n
p
q
r
s
t
u
v
w
x
Typedefs
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
w
Related Functions
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
Functions
i
m
p
s
u
Variables
Typedefs
Enumerations
Enumerator
c
d
e
f
m
o
p
r
s
t
v
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
PrmBuffer.hpp
Go to the documentation of this file.
1
/*
2
* Cmd.hpp
3
*
4
* Created on: Sep 10, 2012
5
* Author: ppandian
6
*/
7
8
/*
9
* Description:
10
* This object contains the ParamBuffer type, used for storing parameters
11
*/
12
#ifndef FW_PRM_BUFFER_HPP
13
#define FW_PRM_BUFFER_HPP
14
15
#include <FpConfig.hpp>
16
#include <Fw/Types/BasicTypes.hpp>
17
#include <Fw/Types/Serializable.hpp>
18
#include <Fw/Cfg/SerIds.hpp>
19
20
namespace
Fw
{
21
22
class
ParamBuffer
:
public
SerializeBufferBase
{
23
public
:
24
25
enum
{
26
SERIALIZED_TYPE_ID
=
FW_TYPEID_PRM_BUFF
,
27
SERIALIZED_SIZE
=
FW_PARAM_BUFFER_MAX_SIZE
+
sizeof
(
FwBuffSizeType
)
28
};
29
30
ParamBuffer
(
const
U8
*args,
NATIVE_UINT_TYPE
size);
31
ParamBuffer
();
32
ParamBuffer
(
const
ParamBuffer
& other);
33
virtual
~ParamBuffer
();
34
ParamBuffer
&
operator=
(
const
ParamBuffer
& other);
35
36
NATIVE_UINT_TYPE
getBuffCapacity
()
const
;
// !< returns capacity, not current size, of buffer
37
U8
*
getBuffAddr
();
38
const
U8
*
getBuffAddr
()
const
;
39
40
private
:
41
U8
m_bufferData[
FW_PARAM_BUFFER_MAX_SIZE
];
// command argument buffer
42
};
43
44
}
45
46
#endif
Fw::SerializeBufferBase
Definition:
Serializable.hpp:43
U8
uint8_t U8
8-bit unsigned integer
Definition:
BasicTypes.hpp:73
NATIVE_UINT_TYPE
unsigned int NATIVE_UINT_TYPE
native unsigned integer type declaration
Definition:
BasicTypes.hpp:28
Fw::ParamBuffer::~ParamBuffer
virtual ~ParamBuffer()
Definition:
PrmBuffer.cpp:14
Fw::ParamBuffer::ParamBuffer
ParamBuffer()
Definition:
PrmBuffer.cpp:11
FW_PARAM_BUFFER_MAX_SIZE
#define FW_PARAM_BUFFER_MAX_SIZE
Definition:
FpConfig.hpp:258
FwBuffSizeType
#define FwBuffSizeType
Type representation for storing a buffer or string size.
Definition:
FpConfig.hpp:79
Fw::ParamBuffer::SERIALIZED_SIZE
@ SERIALIZED_SIZE
Definition:
PrmBuffer.hpp:27
Fw::ParamBuffer
Definition:
PrmBuffer.hpp:22
Fw::FW_TYPEID_PRM_BUFF
@ FW_TYPEID_PRM_BUFF
Parameter Buffer type id.
Definition:
SerIds.hpp:51
Fw::ParamBuffer::operator=
ParamBuffer & operator=(const ParamBuffer &other)
Definition:
PrmBuffer.cpp:22
Fw::ParamBuffer::getBuffCapacity
NATIVE_UINT_TYPE getBuffCapacity() const
returns capacity, not current size, of buffer
Definition:
PrmBuffer.cpp:32
Fw::ParamBuffer::getBuffAddr
U8 * getBuffAddr()
gets buffer address for data filling
Definition:
PrmBuffer.cpp:36
Fw::ParamBuffer::SERIALIZED_TYPE_ID
@ SERIALIZED_TYPE_ID
Definition:
PrmBuffer.hpp:26
Fw
Definition:
SerIds.hpp:20
Fw
Prm
PrmBuffer.hpp
Generated by
1.8.17