5 #ifndef OS_RAWTIMEINTERFACE_HPP_ 6 #define OS_RAWTIMEINTERFACE_HPP_ 12 #include "config/OsDelegateRawTime.hpp" 128 #endif // OS_RAWTIMEINTERFACE_HPP_ RawTimeSource
Timer source selection for RawTime.
Platform's default timer (maintains current behavior)
PlatformSizeType FwSizeType
Operation was successful.
U8 RawTimeHandleStorage[FW_RAW_TIME_HANDLE_MAX_SIZE]
virtual Status now()=0
Get the current time.
static const FwSizeType SERIALIZED_SIZE
virtual Status getDiffUsec(const RawTime &other, U32 &result) const
Calculate the difference in microseconds between two RawTime objects.
virtual ~RawTimeInterface()=default
default virtual destructor
SerializeStatus
forward declaration for string
RawTime does not support operation.
virtual Fw::SerializeStatus serializeTo(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG) const =0
Serialize the contents of the RawTimeInterface object into a buffer.
virtual RawTimeHandle * getHandle()=0
return the underlying RawTime handle (implementation specific)
virtual bool operator==(const RawTime &other) const
Compare whether two RawTime objects are the same (i.e. refer to the same microsecond) ...
Operation result caused an overflow.
RawTimeInterface()=default
default constructor
Parameters invalid for current platform.
static RawTimeInterface * getDelegate(RawTimeHandleStorage &aligned_new_memory, const RawTimeInterface *to_copy=nullptr, RawTimeSource source=RAWTIME_DEFAULT)
provide a pointer to a RawTime delegate object
virtual Status getTimeInterval(const Os::RawTime &other, Fw::TimeInterval &interval) const =0
Calculate the time interval between this and another raw time.
virtual Fw::SerializeStatus deserializeFrom(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG)=0
Deserialize the contents of the RawTimeInterface object from a buffer.
Big endian serialization.