F´ Flight Software - C/C++ Documentation NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
Loading...
Searching...
No Matches
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>
17#include <Fw/Cfg/SerIds.hpp>
18
19namespace Fw {
20
22 public:
23
24 enum {
27 };
28
29 ParamBuffer(const U8 *args, NATIVE_UINT_TYPE size);
31 ParamBuffer(const ParamBuffer& other);
32 virtual ~ParamBuffer();
33 ParamBuffer& operator=(const ParamBuffer& other);
34
35 NATIVE_UINT_TYPE getBuffCapacity() const; // !< returns capacity, not current size, of buffer
36 U8* getBuffAddr();
37 const U8* getBuffAddr() const;
38
39 private:
40 U8 m_bufferData[FW_PARAM_BUFFER_MAX_SIZE]; // command argument buffer
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_PARAM_BUFFER_MAX_SIZE
Definition FpConfig.h:266
U16 FwBuffSizeType
Definition FpConfig.h:30
C++-compatible configuration header for fprime configuration.
Definitions for ISF type serial IDs.
virtual ~ParamBuffer()
Definition PrmBuffer.cpp:14
NATIVE_UINT_TYPE getBuffCapacity() const
returns capacity, not current size, of buffer
Definition PrmBuffer.cpp:32
ParamBuffer & operator=(const ParamBuffer &other)
Definition PrmBuffer.cpp:22
U8 * getBuffAddr()
gets buffer address for data filling
Definition PrmBuffer.cpp:40
Definition Buffer.cpp:21
@ FW_TYPEID_PRM_BUFF
Parameter Buffer type id.
Definition SerIds.hpp:51