ESP32-PaxCounter/include/dcf77.h

22 lines
343 B
C
Raw Permalink Normal View History

#ifndef _DCF77_H
#define _DCF77_H
2022-02-22 13:11:46 +01:00
#ifdef HAS_DCF77
#include "globals.h"
2021-05-09 00:02:41 +02:00
#include "timekeeper.h"
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
2022-01-18 01:00:40 +01:00
void DCF77_Pulse(uint8_t bit);
uint64_t DCF77_Frame(const struct tm t);
2022-02-22 13:11:46 +01:00
#endif
#endif