F´ Flight Software - C/C++ Documentation
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
c
d
e
f
g
i
m
p
r
s
t
v
w
Variables
b
c
d
f
l
m
o
p
s
t
z
Typedefs
Enumerations
c
f
o
p
s
Enumerator
a
b
c
e
f
h
i
m
n
o
p
r
s
t
u
v
w
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
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Typedefs
c
e
p
s
t
u
Enumerations
b
c
d
g
h
l
m
o
p
s
t
u
w
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Related Functions
a
b
c
d
e
f
g
h
l
o
p
r
s
t
u
v
Files
File List
File Members
All
_
a
b
c
d
f
g
h
i
l
m
p
q
r
s
t
u
v
Functions
c
i
m
s
u
Variables
Typedefs
b
c
d
f
i
m
q
r
s
t
u
Enumerations
Enumerator
a
b
c
d
f
g
h
p
r
s
t
Macros
_
a
c
d
f
h
l
m
p
r
s
u
v
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
CmdArgBuffer.hpp
Go to the documentation of this file.
1
/*
2
*
3
*
4
* Created on: March 1, 2014
5
* Author: T. Canham
6
*/
7
8
/*
9
* Description:
10
* This object contains the CmdARgBuffer type, used for holding the serialized arguments of commands
11
*/
12
#ifndef FW_CMD_ARG_BUFFER_HPP
13
#define FW_CMD_ARG_BUFFER_HPP
14
15
#include <
Fw/FPrimeBasicTypes.hpp
>
16
#include <
Fw/Types/SerIds.hpp
>
17
#include <
Fw/Types/Serializable.hpp
>
18
19
namespace
Fw
{
20
21
class
CmdArgBuffer
final :
public
SerializeBufferBase
{
22
public
:
23
enum
{
24
SERIALIZED_TYPE_ID
=
FW_TYPEID_CMD_BUFF
,
25
SERIALIZED_SIZE
=
FW_CMD_ARG_BUFFER_MAX_SIZE
+
sizeof
(I32)
26
};
27
28
CmdArgBuffer
(
const
U8
* args,
FwSizeType
size);
29
CmdArgBuffer
();
30
CmdArgBuffer
(
const
CmdArgBuffer
& other);
31
virtual
~CmdArgBuffer
();
32
CmdArgBuffer
&
operator=
(
const
CmdArgBuffer
& other);
33
34
FwSizeType
getBuffCapacity
()
const
;
35
U8
*
getBuffAddr
();
36
const
U8
*
getBuffAddr
()
const
;
37
38
private
:
39
U8
m_bufferData[
FW_CMD_ARG_BUFFER_MAX_SIZE
];
40
};
41
42
}
// namespace Fw
43
44
#endif
Fw::CmdArgBuffer::getBuffCapacity
FwSizeType getBuffCapacity() const
return capacity of buffer (how much it can hold)
Definition:
CmdArgBuffer.cpp:30
FwSizeType
PlatformSizeType FwSizeType
Definition:
FwSizeTypeAliasAc.h:15
Fw::CmdArgBuffer::~CmdArgBuffer
virtual ~CmdArgBuffer()
destructor
Definition:
CmdArgBuffer.cpp:13
FPrimeBasicTypes.hpp
Fw::CmdArgBuffer::SERIALIZED_TYPE_ID
type id for CmdArgBuffer
Definition:
CmdArgBuffer.hpp:24
Fw::CmdArgBuffer::getBuffAddr
U8 * getBuffAddr()
return address of buffer (non const version)
Definition:
CmdArgBuffer.cpp:38
SerIds.hpp
Definitions for ISF type serial IDs.
Fw::FW_TYPEID_CMD_BUFF
Command Buffer type id.
Definition:
SerIds.hpp:45
FW_CMD_ARG_BUFFER_MAX_SIZE
#define FW_CMD_ARG_BUFFER_MAX_SIZE
Definition:
FpConfig.h:181
Fw::SerializeBufferBase
Definition:
Serializable.hpp:64
U8
uint8_t U8
8-bit unsigned integer
Definition:
BasicTypes.h:53
Fw::CmdArgBuffer::CmdArgBuffer
CmdArgBuffer()
default constructor
Definition:
CmdArgBuffer.cpp:11
Fw::CmdArgBuffer
Definition:
CmdArgBuffer.hpp:21
Fw::CmdArgBuffer::operator=
CmdArgBuffer & operator=(const CmdArgBuffer &other)
Equal operator.
Definition:
CmdArgBuffer.cpp:20
Fw
Definition:
FppConstantsAc.hpp:121
Fw::CmdArgBuffer::SERIALIZED_SIZE
size when serialized. Buffer + size of buffer
Definition:
CmdArgBuffer.hpp:25
Serializable.hpp
Fw
Cmd
CmdArgBuffer.hpp
Generated by
1.8.14