OOKwiz
on/off-keying for ESP32 and a variety of supported radio modules
Classes | Macros
Device.h File Reference
#include <Arduino.h>
#include "config.h"
#include "RawTimings.h"
#include "Pulsetrain.h"
#include "Meaning.h"
#include "tools.h"

Go to the source code of this file.

Classes

class  Device
 

Macros

#define DEVICE_PLUGIN_START(name)
 
#define DEVICE_PLUGIN_END(name)
 

Macro Definition Documentation

◆ DEVICE_PLUGIN_START

#define DEVICE_PLUGIN_START (   name)
Value:
namespace ook {\
namespace device_ ## name {\
class DevicePlugin : public Device {\
public:
Definition: Device.h:32

Definition at line 11 of file Device.h.

◆ DEVICE_PLUGIN_END

#define DEVICE_PLUGIN_END (   name)
Value:
};\
struct AutoRegister {\
AutoRegister() {\
static DevicePlugin devicePlugin;\
Device::add(#name, static_cast<Device*>(&devicePlugin));\
}\
} autoRegister;\
\
}\
}
static bool add(const char *name, Device *pointer)
Registers an instance of Device, i.e. a devuce plugin in the static store
Definition: Device.cpp:40

Definition at line 17 of file Device.h.