F´ Flight Software - C/C++ Documentation
NASA-v2.0.1
A framework for building embedded system applications to NASA flight quality standards.
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Functions
a
b
c
d
g
h
i
m
r
s
t
v
w
Variables
Typedefs
Enumerations
Enumerator
a
b
f
h
i
n
o
p
s
v
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
b
d
e
f
g
h
i
l
m
n
p
q
s
t
u
v
w
Typedefs
Enumerations
Enumerator
a
b
c
d
e
f
g
h
l
m
n
o
p
q
r
s
t
w
Related Functions
Files
File List
File Members
All
_
a
b
c
d
f
g
h
i
k
l
m
n
p
r
s
t
u
v
Functions
f
i
m
s
u
Variables
Typedefs
Enumerations
Enumerator
c
d
f
m
p
r
s
t
Macros
a
c
d
f
g
h
i
k
l
m
n
p
r
s
t
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
TimerVal.hpp
Go to the documentation of this file.
1
/*
2
* TimerVal.hpp
3
*
4
* Created on: Aug 5, 2015
5
* Author: timothycanham
6
*/
7
8
#ifndef TIMERVAL_HPP_
9
#define TIMERVAL_HPP_
10
11
#include <
Fw/Types/Serializable.hpp
>
12
#include <
Os/IntervalTimer.hpp
>
13
14
namespace
Svc
{
15
21
22
class
TimerVal
:
public
Fw::Serializable
{
23
public
:
24
25
enum
{
26
SERIALIZED_SIZE
=
sizeof
(U32) +
sizeof
(U32)
27
};
28
29
TimerVal
();
30
36
37
TimerVal
(
const
TimerVal
& other);
38
44
45
void
operator=
(
const
TimerVal
& other);
46
51
52
virtual
~TimerVal
() {}
53
59
60
Fw::SerializeStatus
serialize
(
Fw::SerializeBufferBase
& buffer)
const
;
61
67
68
Fw::SerializeStatus
deserialize
(
Fw::SerializeBufferBase
& buffer);
69
73
Os::IntervalTimer::RawTime
getTimerVal
(
void
)
const
;
74
79
80
void
take
(
void
);
81
88
89
U32
diffUSec
(
const
TimerVal
& time);
90
91
PRIVATE:
92
TimerVal
(U32 upper, U32 lower);
93
Os::IntervalTimer::RawTime
m_timerVal;
94
};
95
96
}
/* namespace Svc */
97
98
#endif
/* TIMERVAL_HPP_ */
Svc::TimerVal::deserialize
Fw::SerializeStatus deserialize(Fw::SerializeBufferBase &buffer)
Deserialization function.
Definition:
TimerVal.cpp:53
IntervalTimer.hpp
Os::IntervalTimer::RawTime
Definition:
IntervalTimer.hpp:21
Svc::TimerVal::SERIALIZED_SIZE
@ SERIALIZED_SIZE
size of TimerVal private members
Definition:
TimerVal.hpp:26
Svc::TimerVal::diffUSec
U32 diffUSec(const TimerVal &time)
Compute difference function.
Definition:
TimerVal.cpp:41
Fw::SerializeBufferBase
Definition:
Serializable.hpp:43
Fw::SerializeStatus
SerializeStatus
forward declaration for string
Definition:
Serializable.hpp:14
Serializable.hpp
Svc::TimerVal::operator=
void operator=(const TimerVal &other)
Timer equal operator.
Definition:
TimerVal.cpp:28
Svc::TimerVal::TimerVal
TimerVal()
Default constructor.
Definition:
TimerVal.cpp:13
Svc::TimerVal::~TimerVal
virtual ~TimerVal()
Destructor.
Definition:
TimerVal.hpp:52
Svc::TimerVal::serialize
Fw::SerializeStatus serialize(Fw::SerializeBufferBase &buffer) const
Serialization function.
Definition:
TimerVal.cpp:45
Fw::Serializable
forward declaration
Definition:
Serializable.hpp:26
Svc::TimerVal
Serializable class for carrying timer values.
Definition:
TimerVal.hpp:22
Svc::TimerVal::getTimerVal
Os::IntervalTimer::RawTime getTimerVal(void) const
Returns the current timer value.
Definition:
TimerVal.cpp:33
Svc::TimerVal::take
void take(void)
Function to store a timer value.
Definition:
TimerVal.cpp:37
Svc
Definition:
ActiveRateGroupImplCfg.hpp:18
Svc
Cycle
TimerVal.hpp
Generated by
1.8.17