ESP32-PaxCounter/include/dcf77.h

19 lines
432 B
C
Raw Normal View History

#ifndef _DCF77_H
#define _DCF77_H
#include "globals.h"
#define DCF77_FRAME_SIZE (60)
#define DCF77_PULSE_LENGTH (100)
extern uint8_t DCFpulse[];
enum dcf_pulses { dcf_off, dcf_zero, dcf_one };
2019-02-05 23:50:05 +01:00
enum dcf_pinstate { dcf_low, dcf_high };
void DCF_Pulse(time_t t);
void IRAM_ATTR DCF77_Frame(time_t t);
2019-02-05 23:50:05 +01:00
void set_DCF77_pin(dcf_pinstate state);
uint8_t dec2bcd(uint8_t dec, uint8_t startpos, uint8_t endpos, uint8_t pArray[]);
#endif