18 lines
317 B
C
18 lines
317 B
C
#ifndef _DCF77_H
|
|
#define _DCF77_H
|
|
|
|
#include "globals.h"
|
|
#include "timekeeper.h"
|
|
|
|
#define set_dcfbit(b) (1ULL << (b))
|
|
|
|
#ifdef DCF77_ACTIVE_LOW
|
|
enum dcf_pinstate { dcf_high, dcf_low };
|
|
#else
|
|
enum dcf_pinstate { dcf_low, dcf_high };
|
|
#endif
|
|
|
|
void DCF77_Pulse(uint8_t bit);
|
|
uint64_t DCF77_Frame(const struct tm t);
|
|
|
|
#endif |