2021-01-25 16:26:39 +01:00
|
|
|
#ifndef DCCTimer_h
|
|
|
|
#define DCCTimer_h
|
|
|
|
#include "Arduino.h"
|
2023-01-03 04:02:54 +01:00
|
|
|
#if defined(ARDUINO_ARCH_RP2040)
|
|
|
|
#include "pico/stdlib.h"
|
|
|
|
#endif
|
2021-01-25 16:26:39 +01:00
|
|
|
|
|
|
|
typedef void (*INTERRUPT_CALLBACK)();
|
|
|
|
|
|
|
|
class DCCTimer {
|
|
|
|
public:
|
2021-01-26 11:55:46 +01:00
|
|
|
static void begin(INTERRUPT_CALLBACK interrupt);
|
2021-02-07 16:46:36 +01:00
|
|
|
static void getSimulatedMacAddress(byte mac[6]);
|
2021-02-12 14:31:23 +01:00
|
|
|
static bool isPWMPin(byte pin);
|
|
|
|
static void setPWM(byte pin, bool high);
|
2021-01-25 16:26:39 +01:00
|
|
|
private:
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|