F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
Memory.cpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title Os/Stub/Memory.cpp
3 // \brief stub implementation for Os::Memory
4 // ======================================================================
5 #include <Os/Stub/Memory.hpp>
6 
7 namespace Os {
8 namespace Stub {
9 namespace Memory {
10 
12  memory_usage.used = 0;
13  memory_usage.total = 0;
14  return Status::ERROR;
15 }
16 
17 
19  return &this->m_handle;
20 }
21 
22 } // namespace Memory
23 } // namespace Stub
24 } // namespace Os
Memory variable handle parent.
Definition: Memory.hpp:13
memory implementation
Definition: Memory.hpp:47
MemoryHandle * getHandle() override
returns the raw console handle
Definition: Memory.cpp:18
Status _getUsage(Usage &memory_usage) override
get system memory usage
Definition: Memory.cpp:11
Status
Generic OK/ERROR status.
Definition: Os.hpp:25
@ ERROR
Operation failed.
Definition: Os.hpp:27
Generic used/total struct.
Definition: Os.hpp:31
FwSizeType total
Total amount.
Definition: Os.hpp:33
FwSizeType used
Used amount.
Definition: Os.hpp:32