RTEMS
5.1
Main Page
Related Pages
Modules
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
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
y
z
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
g
h
i
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
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Variables
_
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
v
w
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
o
p
q
r
s
t
u
v
w
x
+
Enumerations
a
b
c
e
h
i
l
m
o
p
q
r
s
t
w
+
Enumerator
a
c
d
h
i
l
m
p
r
s
t
w
+
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
cpukit
include
rtems
tod.h
Go to the documentation of this file.
1
9
/*
10
*
11
* Based on MVME162 TOD by:
12
* COPYRIGHT (C) 1997
13
* by Katsutoshi Shibuya - BU Denken Co.,Ltd. - Sapporo - JAPAN
14
* ALL RIGHTS RESERVED
15
*
16
* The license and distribution terms for this file may be
17
* found in the file LICENSE in this distribution or at
18
* http://www.rtems.org/license/LICENSE.
19
*/
20
21
#ifndef TOD_H
22
#define TOD_H
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
35
int
setRealTime(
36
const
rtems_time_of_day
*tod
37
);
38
39
/*
40
* Get the time from the RTC.
41
*/
42
43
void
getRealTime(
44
rtems_time_of_day
*tod
45
);
46
47
/*
48
* Read real time from RTC and set it to RTEMS' clock manager
49
*/
50
51
void
setRealTimeToRTEMS(
void
);
52
53
/*
54
* Read time from RTEMS' clock manager and set it to RTC
55
*/
56
57
void
setRealTimeFromRTEMS(
void
);
58
59
/*
60
* Return the difference between RTC and RTEMS' clock manager time in minutes.
61
* If the difference is greater than 1 day, this returns 9999.
62
*/
63
64
int
checkRealTime(
void
);
65
66
#ifdef __cplusplus
67
}
68
#endif
69
70
#endif
rtems_time_of_day
Data structure to manage and manipulate calendar time.
Definition:
types.h:141
Generated by
1.8.15