![]() |
F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
|
stub implementation of Os::CpuInterface More...
#include <Os/Stub/Cpu.hpp>
Public Member Functions | |
| StubCpu ()=default | |
| constructor More... | |
| StubCpu (const StubCpu &other)=delete | |
| copy constructor More... | |
| CpuInterface & | operator= (const CpuInterface &other) override=delete |
| default copy assignment More... | |
| ~StubCpu () override=default | |
| destructor More... | |
| Status | _getCount (FwSizeType &cpu_count) override |
| Request the count of the CPUs detected by the system. More... | |
| Status | _getTicks (Ticks &ticks, FwSizeType cpu_index) override |
| Get the CPU tick information for a given CPU. More... | |
| CpuHandle * | getHandle () override |
| returns the raw console handle More... | |
Public Member Functions inherited from Os::CpuInterface | |
| CpuInterface ()=default | |
| Default constructor. More... | |
| virtual | ~CpuInterface ()=default |
| Default destructor. More... | |
| CpuInterface (const CpuInterface &other)=delete | |
| copy constructor is forbidden More... | |
Additional Inherited Members | |
Public Types inherited from Os::CpuInterface | |
| using | Status = Os::Generic::Status |
| using | Ticks = Os::Generic::UsedTotal |
Static Public Member Functions inherited from Os::CpuInterface | |
| static CpuInterface * | getDelegate (CpuHandleStorage &aligned_new_memory) |
| provide a pointer to a Mutex delegate object More... | |
stub implementation of Os::CpuInterface
Stub implementation of CpuInterface for use as a delegate class handling stub console operations.
|
default |
constructor
|
delete |
copy constructor
|
overridedefault |
destructor
|
overridevirtual |
Request the count of the CPUs detected by the system.
This method wraps delegates to the underlying implementation.
| cpu_count | (output) filled with CPU count on system |
Implements Os::CpuInterface.
|
overridevirtual |
Get the CPU tick information for a given CPU.
CPU ticks represent a small time slice of processor time. This will retrieve the used CPU ticks and total ticks for a given CPU. This information in a running accumulation and thus a sample-to-sample differencing is needed to see the 'realtime' changing load. This shall be done by the caller. This method wraps delegates to the underlying implementation.
| ticks | (output) filled with the tick information for the given CPU |
| cpu_index | index for CPU to read. Default: 0 |
Implements Os::CpuInterface.
|
overridevirtual |
returns the raw console handle
Gets the raw console handle from the implementation. Note: users must include the implementation specific header to make any real use of this handle. Otherwise it will be as an opaque type.
Implements Os::CpuInterface.
|
overridevirtualdelete |
default copy assignment
Reimplemented from Os::CpuInterface.