F´ Flight Software - C/C++ Documentation
NASA-v1.5.0
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
c
f
h
i
l
m
n
o
p
s
t
v
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
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
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
c
t
u
w
Enumerations
b
c
d
e
f
g
h
i
m
o
p
q
s
t
w
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
w
Related Functions
a
b
c
f
g
h
l
p
r
s
t
Files
File List
File Members
All
_
a
b
c
d
f
g
h
i
k
l
m
n
p
r
s
t
u
v
w
Functions
f
i
m
s
u
Variables
_
c
f
i
l
p
t
Typedefs
Enumerations
Enumerator
a
c
d
f
i
m
p
r
s
t
w
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
LinuxTimeImpl.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/LinuxTime/LinuxTimeImpl.hpp
>
9
#include <
Fw/Time/Time.hpp
>
10
#include <time.h>
11
12
namespace
Svc
{
13
14
LinuxTimeImpl::LinuxTimeImpl
(
const
char
* name) : TimeComponentBase(name)
15
{
16
}
17
18
LinuxTimeImpl::~LinuxTimeImpl
() {
19
}
20
21
void
LinuxTimeImpl::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
}
29
30
void
LinuxTimeImpl::init
(
NATIVE_INT_TYPE
instance) {
31
TimeComponentBase::init
(instance);
32
}
33
34
}
Svc::LinuxTimeImpl::timeGetPort_handler
void timeGetPort_handler(NATIVE_INT_TYPE portNum, Fw::Time &time)
Definition:
DarwinTimeImpl.cpp:26
Fw::Time
Definition:
Time.hpp:10
Fw::ObjBase::init
void init(void)
Object initializer.
Definition:
ObjBase.cpp:26
Fw::Time::set
void set(U32 seconds, U32 useconds)
Definition:
Time.cpp:24
Svc::LinuxTimeImpl::LinuxTimeImpl
LinuxTimeImpl(const char *compName)
Definition:
DarwinTimeImpl.cpp:17
Svc::TimeComponentBase::time
PROTECTED Fw::Time & time
Definition:
TimeComponentAc.hpp:93
LinuxTimeImpl.hpp
Svc::LinuxTimeImpl::~LinuxTimeImpl
virtual ~LinuxTimeImpl()
Definition:
DarwinTimeImpl.cpp:23
Svc
Definition:
ActiveLoggerComponentAc.cpp:22
TB_WORKSTATION_TIME
@ TB_WORKSTATION_TIME
Time as reported on workstation where software is running. For testing.
Definition:
FpConfig.hpp:326
Time.hpp
NATIVE_INT_TYPE
int NATIVE_INT_TYPE
native integer type declaration
Definition:
BasicTypes.hpp:29
Svc
LinuxTime
LinuxTimeImpl.cpp
Generated by
1.8.19