32#ifdef SUPPORT_OutputType_Relay
45 uint8_t OnOffTriggerLevel;
49 uint8_t previousValue;
50#if defined(ARDUINO_ARCH_ESP32)
51 uint16_t PwmFrequency;
58 gpio_num_t outputGpio,
61 virtual ~c_OutputRelay ();
65 bool SetConfig (ArduinoJson::JsonObject & jsonConfig);
66 void GetConfig (ArduinoJson::JsonObject & jsonConfig);
68#if defined(ARDUINO_ARCH_ESP32)
69 bool RmtPoll () {
return false;}
72 void GetStatus (ArduinoJson::JsonObject & jsonStatus);
75 bool ValidateGpio (gpio_num_t ConsoleTxGpio, gpio_num_t ConsoleRxGpio);
76 void RelayUpdate (uint8_t RelayId, String & NewValue, String & Response);
79# define OM_RELAY_CHANNEL_LIMIT 8
80# define OM_RELAY_UPDATE_INTERVAL_NAME CN_updateinterval
81# define OM_RELAY_CHANNEL_ENABLED_NAME CN_en
82# define OM_RELAY_CHANNEL_INVERT_NAME CN_inv
83# define OM_RELAY_CHANNEL_PWM_NAME CN_pwm
86 void OutputValue(RelayChannel_t & currentRelay, uint8_t NewValue);
89 RelayChannel_t OutputList[OM_RELAY_CHANNEL_LIMIT];
90 uint16_t UpdateInterval = 0;
94 uint16_t Num_Channels = OM_RELAY_CHANNEL_LIMIT;
Definition OutputCommon.hpp:31
virtual void GetDriverName(String &sDriverName)=0
get the name for the instantiated driver
virtual void Begin()
set up the operating environment based on the current config (or defaults)
Definition OutputCommon.hpp:43
virtual bool ValidateGpio(gpio_num_t ConsoleTxGpio, gpio_num_t ConsoleRxGpio)
Definition OutputCommon.cpp:149
virtual uint32_t GetNumOutputBufferChannelsServiced()=0
virtual void GetStatus(ArduinoJson::JsonObject &jsonStatus)=0
virtual uint32_t Poll()=0
Call from loop(), renders output data.
virtual uint32_t GetNumOutputBufferBytesNeeded()=0
virtual bool SetConfig(ArduinoJson::JsonObject &jsonConfig)
Set a new config in the driver.
Definition OutputCommon.cpp:84
virtual void GetConfig(ArduinoJson::JsonObject &jsonConfig)
Get the current config used by the driver.
Definition OutputCommon.cpp:101
e_OutputChannelIds
Definition OutputMgr.hpp:68
e_OutputType
Definition OutputMgr.hpp:127