RTEMS  5.1
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(
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
Data structure to manage and manipulate calendar time.
Definition: types.h:141