esp32_ethernet_milight_hub/lib/Types/RF24Channel.h

21 lines
410 B
C++

#include <Arduino.h>
#include <vector>
#ifndef _RF24_CHANNELS_H
#define _RF24_CHANNELS_H
enum class RF24Channel {
RF24_LOW = 0,
RF24_MID = 1,
RF24_HIGH = 2
};
class RF24ChannelHelpers {
public:
static String nameFromValue(const RF24Channel& value);
static RF24Channel valueFromName(const String& name);
static RF24Channel defaultValue();
static std::vector<RF24Channel> allValues();
};
#endif