2019-02-03 21:19:08 +01:00
|
|
|
#ifndef _DCF77_H
|
|
|
|
#define _DCF77_H
|
|
|
|
|
|
|
|
#include "globals.h"
|
|
|
|
|
|
|
|
extern TaskHandle_t DCF77Task;
|
|
|
|
extern hw_timer_t *dcfCycle;
|
|
|
|
|
|
|
|
enum dcf_pulses { dcf_off, dcf_zero, dcf_one };
|
2019-02-05 23:50:05 +01:00
|
|
|
enum dcf_pinstate { dcf_low, dcf_high };
|
2019-02-03 21:19:08 +01:00
|
|
|
|
2019-02-05 23:50:05 +01:00
|
|
|
void IRAM_ATTR DCF77IRQ(void);
|
2019-02-03 21:19:08 +01:00
|
|
|
int dcf77_init(void);
|
|
|
|
void dcf77_loop(void *pvParameters);
|
|
|
|
void sendDCF77(void);
|
2019-02-05 23:50:05 +01:00
|
|
|
void DCF_Out(uint8_t startsec);
|
|
|
|
void generateTimeframe(time_t t);
|
|
|
|
void set_DCF77_pin(dcf_pinstate state);
|
|
|
|
uint8_t dec2bcd(uint8_t dec, uint8_t startpos, uint8_t endpos, uint8_t pArray[]);
|
2019-02-07 20:39:32 +01:00
|
|
|
uint8_t sync_clock(time_t t);
|
2019-02-03 21:19:08 +01:00
|
|
|
|
|
|
|
#endif
|