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  FwSizeType getBuffCapacity() const; // !< returns capacity, not current size, of buffer
24  U8* getBuffAddr();
25  const U8* getBuffAddr() const;
26 
27  private:
28  U8 m_data[DATA_BUFFER_SIZE]; // packet data buffer
29 };
30 } // namespace Drv
31 
32 #endif
PlatformSizeType FwSizeType
FwSizeStoreType FwBuffSizeType
DataBuffer & operator=(const DataBuffer &other)
Definition: DataBuffer.cpp:20
U8 * getBuffAddr()
gets buffer address for data filling
Definition: DataBuffer.cpp:38
virtual ~DataBuffer()
Definition: DataBuffer.cpp:13
uint8_t U8
8-bit unsigned integer
Definition: BasicTypes.h:53
FwSizeType getBuffCapacity() const
returns capacity, not current size, of buffer
Definition: DataBuffer.cpp:30