F´ Flight Software - C/C++ Documentation
NASA-v1.6.0
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
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Functions
a
b
c
d
e
f
g
h
i
j
l
m
o
p
r
s
t
u
v
w
Variables
b
c
f
g
k
l
m
o
p
r
s
t
u
w
z
Typedefs
a
b
c
d
e
f
g
h
i
l
n
o
p
r
s
t
u
v
w
Enumerations
Enumerator
a
b
f
h
i
k
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
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
a
b
c
e
f
i
m
r
s
t
w
Enumerations
b
c
d
f
g
h
m
o
q
r
s
t
u
w
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Related Symbols
:
a
b
c
d
f
g
h
l
p
q
r
s
t
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Functions
f
g
i
m
p
r
s
t
u
Variables
_
b
c
f
g
i
l
p
r
s
w
Typedefs
a
b
c
e
f
i
n
p
s
t
u
Enumerations
Enumerator
a
b
c
f
g
h
p
r
s
t
Macros
_
a
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
DarwinTimeImpl.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 <sys/time.h>
11
12
namespace
Svc
{
13
LinuxTimeImpl::LinuxTimeImpl
(
const
char
* name) :
TimeComponentBase
(name)
14
{
15
}
13
LinuxTimeImpl::LinuxTimeImpl
(
const
char
* name) :
TimeComponentBase
(name) {
…
}
16
17
LinuxTimeImpl::~LinuxTimeImpl
() {
18
}
17
LinuxTimeImpl::~LinuxTimeImpl
() {
…
}
19
20
void
LinuxTimeImpl::timeGetPort_handler
(
21
NATIVE_INT_TYPE
portNum,
22
Fw::Time
&time
23
) {
24
timeval stime;
25
(void)gettimeofday(&stime,0);
26
time.
set
(
TB_WORKSTATION_TIME
,0,stime.tv_sec, stime.tv_usec);
27
}
20
void
LinuxTimeImpl::timeGetPort_handler
( {
…
}
28
29
void
LinuxTimeImpl::init
(
NATIVE_INT_TYPE
instance) {
30
Svc::TimeComponentBase::init
(instance);
31
}
29
void
LinuxTimeImpl::init
(
NATIVE_INT_TYPE
instance) {
…
}
32
33
}
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
LinuxTimeImpl.hpp
Time.hpp
Fw::ObjBase::init
void init()
Object initializer.
Definition
ObjBase.cpp:27
Fw::Time
Definition
Time.hpp:9
Fw::Time::set
void set(U32 seconds, U32 useconds)
Definition
Time.cpp:25
Svc::LinuxTimeImpl::timeGetPort_handler
void timeGetPort_handler(NATIVE_INT_TYPE portNum, Fw::Time &time)
Handler for input port timeGetPort.
Definition
DarwinTimeImpl.cpp:20
Svc::LinuxTimeImpl::LinuxTimeImpl
LinuxTimeImpl(const char *compName)
Definition
DarwinTimeImpl.cpp:13
Svc::LinuxTimeImpl::~LinuxTimeImpl
virtual ~LinuxTimeImpl()
Definition
DarwinTimeImpl.cpp:17
Svc::TimeComponentBase
Auto-generated base for Time component.
Definition
TimeComponentAc.hpp:24
Svc
Definition
ActiveRateGroupCfg.hpp:18
Svc
LinuxTime
DarwinTimeImpl.cpp
Generated by
1.10.0