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  DEPRECATED(FwSizeType getBuffCapacity() const, "Use getCapacity() instead");
31  FwSizeType getCapacity() const; // !< returns capacity, not current size, of buffer
32 
33  U8* getBuffAddr();
34  const U8* getBuffAddr() const;
35 
36  private:
37  U8 m_bufferData[FW_TLM_BUFFER_MAX_SIZE]; // command argument buffer
38 };
39 
40 } // namespace Fw
41 
42 #endif
PlatformSizeType FwSizeType
FwSizeStoreType FwBuffSizeType
Definitions for ISF type serial IDs.
TlmBuffer & operator=(const TlmBuffer &other)
Definition: TlmBuffer.cpp:20
U8 * getBuffAddr()
Get buffer address for data filling (non-const version)
Definition: TlmBuffer.cpp:42
virtual ~TlmBuffer()
Definition: TlmBuffer.cpp:13
uint8_t U8
8-bit unsigned integer
Definition: BasicTypes.h:53
FwSizeType getCapacity() const
Get buffer capacity.
Definition: TlmBuffer.cpp:30
DEPRECATED(FwSizeType getBuffCapacity() const, "Use getCapacity() instead")
Implementation of malloc based allocator.
Telemetry Buffer type id.
Definition: SerIds.hpp:47