F´ Flight Software - C/C++ Documentation NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
Loading...
Searching...
No Matches
DataBuffer.hpp
Go to the documentation of this file.
1#ifndef _DrvDataBuffer_hpp_
2#define _DrvDataBuffer_hpp_
3
4#include <FpConfig.hpp>
6
7namespace Drv {
8
10 public:
11
12 enum {
16 };
17
18 DataBuffer(const U8 *args, NATIVE_UINT_TYPE size);
19 DataBuffer();
20 DataBuffer(const DataBuffer& other);
21 virtual ~DataBuffer();
22 DataBuffer& operator=(const DataBuffer& other);
23
24 NATIVE_UINT_TYPE getBuffCapacity() const; // !< returns capacity, not current size, of buffer
25 U8* getBuffAddr();
26 const U8* getBuffAddr() const;
27
28 private:
29 U8 m_data[DATA_BUFFER_SIZE]; // packet data buffer
30 };
31}
32
33#endif
uint8_t U8
8-bit unsigned integer
Definition BasicTypes.h:26
PlatformUIntType NATIVE_UINT_TYPE
Definition BasicTypes.h:52
U16 FwBuffSizeType
Definition FpConfig.h:30
C++-compatible configuration header for fprime configuration.
DataBuffer & operator=(const DataBuffer &other)
virtual ~DataBuffer()
NATIVE_UINT_TYPE getBuffCapacity() const
returns capacity, not current size, of buffer
U8 * getBuffAddr()
gets buffer address for data filling