F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
DataBuffer.hpp
Go to the documentation of this file.
1 #ifndef _DrvDataBuffer_hpp_
2 #define _DrvDataBuffer_hpp_
3 
6 
7 namespace Drv {
8 
10  public:
11  enum {
15  };
16 
17  DataBuffer(const U8* args, FwSizeType size);
18  DataBuffer();
19  DataBuffer(const DataBuffer& other);
20  virtual ~DataBuffer();
21  DataBuffer& operator=(const DataBuffer& other);
22 
23  DEPRECATED(FwSizeType getBuffCapacity() const, "Use getCapacity() instead");
24  FwSizeType getCapacity() const;
25 
26  U8* getBuffAddr();
27  const U8* getBuffAddr() const;
28 
29  private:
30  U8 m_data[DATA_BUFFER_SIZE]; // packet data buffer
31 };
32 } // namespace Drv
33 
34 #endif
PlatformSizeType FwSizeType
FwSizeType getCapacity() const
Get buffer capacity.
Definition: DataBuffer.cpp:30
FwSizeStoreType FwBuffSizeType
DataBuffer & operator=(const DataBuffer &other)
Definition: DataBuffer.cpp:20
U8 * getBuffAddr()
Get buffer address for data filling (non-const version)
Definition: DataBuffer.cpp:42
virtual ~DataBuffer()
Definition: DataBuffer.cpp:13
DEPRECATED(FwSizeType getBuffCapacity() const, "Use getCapacity() instead")
uint8_t U8
8-bit unsigned integer
Definition: BasicTypes.h:53