rework dcf77 (part 2)
This commit is contained in:
1 parent
a7f957dedd
commit
ee46833dfa
3 files changed
+69
-89
No files matched your search
+4
-7
@@ -4,18 +4,15 @@
|
||||
#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
|
||||
|
||||
enum DCF77_Pulses { dcf_Z, dcf_0, dcf_1 };
|
||||
|
||||
void DCF77_Pulse(uint8_t const bit);
|
||||
void DCF77_Frame(const struct tm t, uint8_t *frame);
|
||||
uint8_t dec2bcd(uint8_t const dec, uint8_t const startpos, uint8_t const endpos,
|
||||
uint8_t *frame);
|
||||
uint8_t setParityBit(uint8_t const p);
|
||||
void DCF77_Pulse(uint8_t bit);
|
||||
uint64_t DCF77_Frame(const struct tm t);
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user