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
11
MemoryInterface::Status
StubMemory::_getUsage
(
Os::Memory::Usage
& memory_usage) {
12
memory_usage.
used
= 0;
13
memory_usage.
total
= 0;
14
return
Status::ERROR
;
15
}
16
17
18
MemoryHandle
*
StubMemory::getHandle
() {
19
return
&this->m_handle;
20
}
21
22
}
// namespace Memory
23
}
// namespace Stub
24
}
// namespace Os
Memory.hpp
Os::MemoryHandle
Memory variable handle parent.
Definition:
Memory.hpp:13
Os::Memory
memory implementation
Definition:
Memory.hpp:47
Os::Stub::Memory::StubMemory::getHandle
MemoryHandle * getHandle() override
returns the raw console handle
Definition:
Memory.cpp:18
Os::Stub::Memory::StubMemory::_getUsage
Status _getUsage(Usage &memory_usage) override
get system memory usage
Definition:
Memory.cpp:11
Os::Generic::Status
Status
Generic OK/ERROR status.
Definition:
Os.hpp:25
Os::Generic::ERROR
@ ERROR
Operation failed.
Definition:
Os.hpp:27
Os
Definition:
DirectoryOpenModeEnumAc.cpp:13
Os::Generic::UsedTotal
Generic used/total struct.
Definition:
Os.hpp:31
Os::Generic::UsedTotal::total
FwSizeType total
Total amount.
Definition:
Os.hpp:33
Os::Generic::UsedTotal::used
FwSizeType used
Used amount.
Definition:
Os.hpp:32
Os
Stub
Memory.cpp
Generated by
1.9.1