CuVoodoo STM32F1 firmware template
Functions | Variables
rtc_dcf77.c File Reference

library to get time from a DCF77 module (code) More...

Go to the source code of this file.

Functions

void rtc_dcf77_setup (void)
 setup DCF77 time receiver module
 
void rtc_dcf77_on (void)
 switch on DCF77 time receiver module
 
void rtc_dcf77_off (void)
 switch off DCF77 time receiver module
 
uint8_t * rtc_dcf77_time (void)
 get last received DCF77 time More...
 
void RTC_DCF77_SIGNAL_ISR (void)
 interrupt service routine called when signal edge is detected, decoding the received DCF77 frame (composed by high pulses)
 

Variables

volatile bool rtc_dcf77_time_flag = false
 set when time information has been received
 
volatile uint64_t rtc_dcf77_frame = 0
 the received DCF77 frame bits
 

Detailed Description

library to get time from a DCF77 module (code)

Author
King Kévin kingk.nosp@m.evin.nosp@m.@cuvo.nosp@m.odoo.nosp@m..info
Date
2016
Note
peripherals used: GPIO output to enable DCF module and input to capture DCF signal, timer timer to measure signal puls

Definition in file rtc_dcf77.c.

Function Documentation

§ rtc_dcf77_time()

uint8_t* rtc_dcf77_time ( void  )

get last received DCF77 time

Returns
array of {minutes (00-49), hours (00-23), date (01-31), day of the week (1-7=Monday-Sunday), month (01-12), year of the century (00-99)} if received time is valid, NULL else

Definition at line 74 of file rtc_dcf77.c.