2019-02-03 21:19:08 +01:00
|
|
|
#ifndef _DCF77_H
|
|
|
|
#define _DCF77_H
|
|
|
|
|
2022-02-22 13:11:46 +01:00
|
|
|
#ifdef HAS_DCF77
|
|
|
|
|
2019-02-03 21:19:08 +01:00
|
|
|
#include "globals.h"
|
2021-05-09 00:02:41 +02:00
|
|
|
#include "timekeeper.h"
|
2019-02-03 21:19:08 +01:00
|
|
|
|
2022-01-18 01:00:40 +01:00
|
|
|
#define set_dcfbit(b) (1ULL << (b))
|
|
|
|
|
2019-02-23 18:12:43 +01:00
|
|
|
#ifdef DCF77_ACTIVE_LOW
|
|
|
|
enum dcf_pinstate { dcf_high, dcf_low };
|
|
|
|
#else
|
|
|
|
enum dcf_pinstate { dcf_low, dcf_high };
|
|
|
|
#endif
|
2019-02-17 19:21:08 +01:00
|
|
|
|
2022-01-18 01:00:40 +01:00
|
|
|
void DCF77_Pulse(uint8_t bit);
|
|
|
|
uint64_t DCF77_Frame(const struct tm t);
|
2019-02-03 21:19:08 +01:00
|
|
|
|
2022-02-22 13:11:46 +01:00
|
|
|
#endif
|
|
|
|
|
2019-02-03 21:19:08 +01:00
|
|
|
#endif
|