F´ Flight Software - C/C++ Documentation devel
A framework for building embedded system applications to NASA flight quality standards.
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 <FpConfig.hpp>
17#include <Fw/Cfg/SerIds.hpp>
18
19namespace Fw {
20
22 public:
23
24 enum {
27 };
28
29 CmdArgBuffer(const U8 *args, NATIVE_UINT_TYPE size);
30 CmdArgBuffer();
31 CmdArgBuffer(const CmdArgBuffer& other);
32 virtual ~CmdArgBuffer();
33 CmdArgBuffer& operator=(const CmdArgBuffer& other);
34
36 U8* getBuffAddr();
37 const U8* getBuffAddr() const;
38
39 private:
40 U8 m_bufferData[FW_CMD_ARG_BUFFER_MAX_SIZE];
41 };
42
43}
44
45#endif
uint8_t U8
8-bit unsigned integer
Definition BasicTypes.h:26
PlatformUIntType NATIVE_UINT_TYPE
Definition BasicTypes.h:52
#define FW_CMD_ARG_BUFFER_MAX_SIZE
Definition FpConfig.h:234
C++-compatible configuration header for fprime configuration.
Definitions for ISF type serial IDs.
U8 * getBuffAddr()
return address of buffer (non const version)
@ SERIALIZED_TYPE_ID
type id for CmdArgBuffer
@ SERIALIZED_SIZE
size when serialized. Buffer + size of buffer
CmdArgBuffer & operator=(const CmdArgBuffer &other)
Equal operator.
NATIVE_UINT_TYPE getBuffCapacity() const
return capacity of buffer (how much it can hold)
virtual ~CmdArgBuffer()
destructor
CmdArgBuffer()
default constructor
@ FW_TYPEID_CMD_BUFF
Command Buffer type id.
Definition SerIds.hpp:45