59 unsigned char seconds;
64 seconds = seconds & 0b01111111;
86 unsigned char minutes;
90 minutes = minutes & 0b01111111;
109 {
unsigned char hours;
113 hours = hours & 0b00111111;
123 static unsigned char time[9];
129 time[1] = (value & 0b00001111)+48;
130 time[0] = (value >> 4)+48;
135 time[4] = (value & 0b00001111)+48;
136 time[3] = (value >> 4)+48;
141 time[7] = (value & 0b00001111)+48;
142 time[6] = (value >> 4)+48;
156 static unsigned char time[6];
162 time[1] = (value & 0b00001111)+48;
163 time[0] = (value >> 4)+48;
168 time[4] = (value & 0b00001111)+48;
169 time[3] = (value >> 4)+48;
197 days = days & 0b00111111;
216 unsigned char day_of_the_week;
220 day_of_the_week = day_of_the_week & 0b00000111;
221 return (day_of_the_week);
240 unsigned char months;
244 months = months & 0b00011111;
274 static unsigned char date[9];
280 date[1] = (value & 0b00001111)+48;
281 date[0] = (value >> 4)+48;
286 date[4] = (value & 0b00001111)+48;
287 date[3] = (value >> 4)+48;
293 date[7] = (value & 0b00001111)+48;
294 date[6] = (value >> 4)+48;
309 minutes = minutes + alarm_enable;
322 hours = hours + alarm_enable;
333 days = days + alarm_enable;
345 day_of_the_week_alarm = day_of_the_week_alarm + alarm_enable;
382 value = value & 0xF7;
400 unsigned char minutes;
411 if ((minutes&0x0F) > (
unsigned char) 9 ) {
446 if ((hours&0x0F) > (
unsigned char) 9 ) {
451 if (hours == (
unsigned char)
MAX_HOURS) {
481 if ((years&0x0F) > (
unsigned char) 9 ) {
486 if (years == (
unsigned char)
MAX_YEARS) {
505 unsigned char months;
516 if ((months&0x0F) > (
unsigned char) 9 ) {
550 if ((days&0x0F) > (
unsigned char) 9 ) {
555 if (days == (
unsigned char)
MAX_DAYS) {