F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
TlmBuffer.hpp
Go to the documentation of this file.
1 /*
2  * TlmBuffer.hpp
3  *
4  * Author: tcanham
5  */
6 
7 /*
8  * Description:
9  * This object contains the TlmBuffer type, used for storing telemetry
10  */
11 #ifndef FW_TLM_BUFFER_HPP
12 #define FW_TLM_BUFFER_HPP
13 
14 #include <FpConfig.hpp>
16 #include <Fw/Cfg/SerIds.hpp>
17 
18 namespace Fw {
19 
20  class TlmBuffer : public SerializeBufferBase {
21  public:
22 
23  enum {
26  };
27 
28  TlmBuffer(const U8 *args, NATIVE_UINT_TYPE size);
29  TlmBuffer();
30  TlmBuffer(const TlmBuffer& other);
31  virtual ~TlmBuffer();
32  TlmBuffer& operator=(const TlmBuffer& other);
33 
34  NATIVE_UINT_TYPE getBuffCapacity() const; // !< returns capacity, not current size, of buffer
35  U8* getBuffAddr();
36  const U8* getBuffAddr() const;
37 
38  PRIVATE:
39  U8 m_bufferData[FW_TLM_BUFFER_MAX_SIZE]; // command argument buffer
40  };
41 
42 }
43 
44 #endif
uint8_t U8
8-bit unsigned integer
Definition: BasicTypes.h:30
PlatformUIntType NATIVE_UINT_TYPE
Definition: BasicTypes.h:56
FwSizeStoreType FwBuffSizeType
Definition: FpConfig.h:452
#define FW_TLM_BUFFER_MAX_SIZE
Definition: FpConfig.h:324
C++-compatible configuration header for fprime configuration.
Definitions for ISF type serial IDs.
U8 * getBuffAddr()
gets buffer address for data filling
Definition: TlmBuffer.cpp:40
TlmBuffer & operator=(const TlmBuffer &other)
Definition: TlmBuffer.cpp:22
NATIVE_UINT_TYPE getBuffCapacity() const
returns capacity, not current size, of buffer
Definition: TlmBuffer.cpp:32
virtual ~TlmBuffer()
Definition: TlmBuffer.cpp:14
@ FW_TYPEID_TLM_BUFF
Telemetry Buffer type id.
Definition: SerIds.hpp:47