/elec/propeller-clock

To get this branch, use:
bzr branch http://bzr.ed.am/elec/propeller-clock

« back to all changes in this revision

Viewing changes to src/time.h

  • Committer: Tim Marston
  • Date: 2012-03-10 12:31:16 UTC
  • Revision ID: tim@ed.am-20120310123116-l348p5btgecmdj1q
added realtime clock test

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
namespace Time
28
28
{
29
29
        /**
30
 
         * Initialise time from store.
31
 
         */
32
 
        void load_time();
33
 
 
34
 
        /**
35
 
         * Save the time to the store.
36
 
         */
37
 
        void save_time();
38
 
 
39
 
        /**
40
30
         * Get year.
41
31
         *
42
32
         * @return year
99
89
        void update();
100
90
 
101
91
        /**
102
 
         * Increment the hours and save the time.
103
 
         */
104
 
        void inc_hours();
105
 
 
106
 
        /**
107
 
         * Increment the minutes and save the time.
108
 
         */
109
 
        void inc_minutes();
110
 
 
111
 
        /**
112
 
         * Reset the seconds and save the time.
113
 
         */
114
 
        void reset_seconds();
115
 
 
116
 
        /**
117
 
         * Increment the year and save the time.
118
 
         */
119
 
        void inc_year();
120
 
 
121
 
        /**
122
 
         * Increment the month and save the time.
123
 
         */
124
 
        void inc_month();
125
 
 
126
 
        /**
127
 
         * Increment the day and save the time.
128
 
         */
129
 
        void inc_day();
 
92
         * Initialise time data
 
93
         */
 
94
        void init();
130
95
 
131
96
};
132
97
 
133
98
 
134
 
#endif //_TIME_H_
 
99
#endif _TIME_H_