rtc_dcf77.h
Go to the documentation of this file.
/* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#pragma once
extern volatile bool rtc_dcf77_time_flag;
extern struct rtc_dcf77_time_t {
bool valid;
uint8_t milliseconds;
uint8_t seconds;
uint8_t minutes;
uint8_t hours;
uint8_t day;
uint8_t weekday;
uint8_t month;
uint8_t year;
} rtc_dcf77_time;
void rtc_dcf77_setup(void);
void rtc_dcf77_on(void);
void rtc_dcf77_off(void);
rtc_dcf77_on
void rtc_dcf77_on(void)
switch on DCF77 time receiver module
Definition: rtc_dcf77.c:93
rtc_dcf77_time_flag
volatile bool rtc_dcf77_time_flag
set when time information has been received
Definition: rtc_dcf77.c:52
rtc_dcf77_time_t::minutes
uint8_t minutes
minutes (00-49)
Definition: rtc_dcf77.h:31
rtc_dcf77_off
void rtc_dcf77_off(void)
switch off DCF77 time receiver module
Definition: rtc_dcf77.c:107
rtc_dcf77_setup
void rtc_dcf77_setup(void)
setup DCF77 time receiver module
Definition: rtc_dcf77.c:70
rtc_dcf77_time_t::month
uint8_t month
month (01-12)
Definition: rtc_dcf77.h:35
rtc_dcf77_time_t
decoded DCF77 time received
Definition: rtc_dcf77.h:27
rtc_dcf77_time
struct rtc_dcf77_time_t rtc_dcf77_time
the received DCF77 frame bits
Definition: rtc_dcf77.c:53
rtc_dcf77_time_t::seconds
uint8_t seconds
seconds (always 0)
Definition: rtc_dcf77.h:30
rtc_dcf77_time_t::hours
uint8_t hours
hours (00-23)
Definition: rtc_dcf77.h:32
rtc_dcf77_time_t::weekday
uint8_t weekday
day of the week (1-7=Monday-Sunday)
Definition: rtc_dcf77.h:34
rtc_dcf77_time_t::valid
bool valid
if the time is valid
Definition: rtc_dcf77.h:28
rtc_dcf77_time_t::year
uint8_t year
year within century (00-99)
Definition: rtc_dcf77.h:36
rtc_dcf77_time_t::day
uint8_t day
day of the month (01-31)
Definition: rtc_dcf77.h:33
rtc_dcf77_time_t::milliseconds
uint8_t milliseconds
milliseconds (00-99)
Definition: rtc_dcf77.h:29