F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
Functions
a
b
c
d
g
h
i
m
o
p
r
s
t
v
w
Variables
Typedefs
a
b
c
d
e
f
g
h
l
o
p
r
s
t
u
w
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
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
c
e
s
t
w
Enumerations
b
c
d
g
h
m
o
q
s
t
u
w
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Related Symbols
a
b
c
d
f
g
h
l
p
r
s
t
u
Files
File List
File Members
All
_
a
b
c
d
f
g
h
i
l
m
n
p
r
s
t
u
v
Functions
i
m
p
s
u
Variables
_
b
c
f
i
l
p
r
s
Typedefs
b
c
f
i
n
p
s
u
Enumerations
Enumerator
a
b
c
f
g
h
p
r
s
t
Macros
_
a
c
d
f
g
h
i
l
m
p
r
s
t
u
v
►
F´ Flight Software - C/C++ Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
PosixTime.cpp
Go to the documentation of this file.
1
/*
2
* TestCommand1Impl.cpp
3
*
4
* Created on: Mar 28, 2014
5
* Author: tcanham
6
*/
7
8
#include <
Svc/PosixTime/PosixTime.hpp
>
9
#include <
Fw/Time/Time.hpp
>
10
#include <ctime>
11
12
namespace
Svc
{
13
14
PosixTime::PosixTime
(
const
char
* name) :
PosixTimeComponentBase
(name)
15
{
16
}
14
PosixTime::PosixTime
(
const
char
* name) :
PosixTimeComponentBase
(name) {
…
}
17
18
PosixTime::~PosixTime
() {
19
}
18
PosixTime::~PosixTime
() {
…
}
20
21
void
PosixTime::timeGetPort_handler
(
22
NATIVE_INT_TYPE
portNum,
23
Fw::Time
&time
24
) {
25
timespec stime;
26
(void)clock_gettime(CLOCK_REALTIME,&stime);
27
time.
set
(
TB_WORKSTATION_TIME
,0, stime.tv_sec, stime.tv_nsec/1000);
28
}
21
void
PosixTime::timeGetPort_handler
( {
…
}
29
}
NATIVE_INT_TYPE
PlatformIntType NATIVE_INT_TYPE
Definition
BasicTypes.h:51
TB_WORKSTATION_TIME
@ TB_WORKSTATION_TIME
Time as reported on workstation where software is running. For testing.
Definition
FpConfig.h:41
PosixTime.hpp
Time.hpp
Fw::Time
Definition
Time.hpp:9
Fw::Time::set
void set(U32 seconds, U32 useconds)
Definition
Time.cpp:25
Svc::PosixTimeComponentBase
Auto-generated base for PosixTime component.
Definition
PosixTimeComponentAc.hpp:24
Svc::PosixTime::PosixTime
PosixTime(const char *compName)
Definition
PosixTime.cpp:14
Svc::PosixTime::~PosixTime
virtual ~PosixTime()
Definition
PosixTime.cpp:18
Svc::PosixTime::timeGetPort_handler
void timeGetPort_handler(NATIVE_INT_TYPE portNum, Fw::Time &time)
Handler for input port timeGetPort.
Definition
PosixTime.cpp:21
Svc
Definition
ActiveRateGroupCfg.hpp:18
Svc
PosixTime
PosixTime.cpp
Generated by
1.10.0