![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
Posix implementation of Os::RawTime. More...
#include <Os/Posix/RawTime.hpp>
Public Member Functions | |
PosixRawTime ()=default | |
constructor | |
~PosixRawTime () override=default | |
destructor | |
RawTimeHandle * | getHandle () override |
return the underlying RawTime handle (implementation specific) | |
Status | now () override |
Get the current time. | |
Status | getTimeInterval (const Os::RawTime &other, Fw::TimeInterval &interval) const override |
Calculate the time interval between this and another raw time. | |
Fw::SerializeStatus | serialize (Fw::SerializeBufferBase &buffer) const override |
Serialize the contents of the RawTimeInterface object into a buffer. | |
Fw::SerializeStatus | deserialize (Fw::SerializeBufferBase &buffer) override |
Deserialize the contents of the RawTimeInterface object from a buffer. | |
![]() | |
RawTimeInterface ()=default | |
default constructor | |
virtual | ~RawTimeInterface ()=default |
default virtual destructor | |
Additional Inherited Members | |
![]() | |
enum | Status { OP_OK , OP_OVERFLOW , INVALID_PARAMS , OTHER_ERROR } |
![]() | |
using | SizeType = NATIVE_UINT_TYPE |
![]() | |
static RawTimeInterface * | getDelegate (RawTimeHandleStorage &aligned_new_memory, const RawTimeInterface *to_copy=nullptr) |
provide a pointer to a RawTime delegate object | |
![]() | |
static const FwSizeType | SERIALIZED_SIZE = FW_RAW_TIME_SERIALIZATION_MAX_SIZE |
![]() | |
Serializable () | |
Default constructor. | |
virtual | ~Serializable () |
destructor | |
Posix implementation of Os::RawTime.
Posix implementation of RawTimeInterface
for use as a delegate class handling error-only file operations.
Definition at line 24 of file RawTime.hpp.
|
default |
constructor
|
overridedefault |
destructor
|
overridevirtual |
Deserialize the contents of the RawTimeInterface object from a buffer.
This function deserializes the contents of the RawTimeInterface object from the provided buffer.
FW_RAW_TIME_SERIALIZATION_MAX_SIZE
bytes. This value is defined in FpConfig.h. For example, Posix systems use a pair of U32 (sec, nanosec) and can therefore serialize in 8 bytes. Should an OSAL implementation require more than this, the project must increase that value in its config/ folder.buffer | The buffer to deserialize the contents from. |
Implements Os::RawTimeInterface.
Definition at line 57 of file RawTime.cpp.
|
overridevirtual |
return the underlying RawTime handle (implementation specific)
Implements Os::RawTimeInterface.
Definition at line 74 of file RawTime.cpp.
|
overridevirtual |
Calculate the time interval between this and another raw time.
This function calculates the time interval between the current raw time and another specified raw time. The result is stored in the provided (output) interval object.
other | The other RawTimeHandle to compare against. |
interval | Output parameter to store the calculated time interval. |
Implements Os::RawTimeInterface.
Definition at line 23 of file RawTime.cpp.
|
overridevirtual |
Get the current time.
This function retrieves the current time and stores it in the RawTime object. Each implementation should define its RawTimeHandle type for storing the time.
Implements Os::RawTimeInterface.
Definition at line 15 of file RawTime.cpp.
|
overridevirtual |
Serialize the contents of the RawTimeInterface object into a buffer.
This function serializes the contents of the RawTimeInterface object into the provided buffer.
FW_RAW_TIME_SERIALIZATION_MAX_SIZE
bytes. This value is defined in FpConfig.h. For example, Posix systems use a pair of U32 (sec, nanosec) and can therefore serialize in 8 bytes. Should an OSAL implementation require more than this, the project must increase that value in its config/ folder.buffer | The buffer to serialize the contents into. |
Implements Os::RawTimeInterface.
Definition at line 47 of file RawTime.cpp.