F´ Flight Software - C/C++ Documentation
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 <Fw/FPrimeBasicTypes.hpp>
15 #include <Fw/Types/SerIds.hpp>
17 
18 namespace Fw {
19 
20 class TlmBuffer final : public SerializeBufferBase {
21  public:
23 
24  TlmBuffer(const U8* args, FwSizeType size);
25  TlmBuffer();
26  TlmBuffer(const TlmBuffer& other);
27  virtual ~TlmBuffer();
28  TlmBuffer& operator=(const TlmBuffer& other);
29 
30  FwSizeType getBuffCapacity() const; // !< returns capacity, not current size, of buffer
31  U8* getBuffAddr();
32  const U8* getBuffAddr() const;
33 
34  private:
35  U8 m_bufferData[FW_TLM_BUFFER_MAX_SIZE]; // command argument buffer
36 };
37 
38 } // namespace Fw
39 
40 #endif
PlatformSizeType FwSizeType
FwSizeStoreType FwBuffSizeType
Definitions for ISF type serial IDs.
FwSizeType getBuffCapacity() const
returns capacity, not current size, of buffer
Definition: TlmBuffer.cpp:30
TlmBuffer & operator=(const TlmBuffer &other)
Definition: TlmBuffer.cpp:20
#define FW_TLM_BUFFER_MAX_SIZE
Definition: FpConfig.h:211
U8 * getBuffAddr()
gets buffer address for data filling
Definition: TlmBuffer.cpp:38
Telemetry Buffer type id.
Definition: SerIds.hpp:47
virtual ~TlmBuffer()
Definition: TlmBuffer.cpp:13
uint8_t U8
8-bit unsigned integer
Definition: BasicTypes.h:53