32#ifdef SUPPORT_OutputProtocol_Relay
45 uint8_t OnOffTriggerLevel;
49 uint8_t previousValue;
50#if defined(ARDUINO_ARCH_ESP32)
51 uint16_t PwmFrequency;
59 virtual ~c_OutputRelay ();
63 bool SetConfig (ArduinoJson::JsonObject & jsonConfig);
64 void GetConfig (ArduinoJson::JsonObject & jsonConfig);
66#if defined(ARDUINO_ARCH_ESP32)
67 bool RmtPoll () {
return false;}
70 void GetStatus (ArduinoJson::JsonObject & jsonStatus);
73 bool ValidateGpio (gpio_num_t ConsoleTxGpio, gpio_num_t ConsoleRxGpio);
74 void RelayUpdate (uint8_t RelayId, String & NewValue, String & Response);
78# define OM_RELAY_CHANNEL_LIMIT 1
79# define OM_RELAY_UPDATE_INTERVAL_NAME CN_updateinterval
81# define OM_RELAY_CHANNEL_INVERT_NAME CN_inv
82# define OM_RELAY_CHANNEL_PWM_NAME CN_pwm
85 void OutputValue(RelayChannel_t & currentRelay, uint8_t NewValue);
88 RelayChannel_t OutputList[OM_RELAY_CHANNEL_LIMIT];
89 uint16_t UpdateInterval = 0;
92 uint16_t Num_Channels = OM_RELAY_CHANNEL_LIMIT;
Definition OutputCommon.hpp:32
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:41
virtual bool ValidateGpio(gpio_num_t ConsoleTxGpio, gpio_num_t ConsoleRxGpio)
Definition OutputCommon.cpp:143
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:78
virtual void GetConfig(ArduinoJson::JsonObject &jsonConfig)
Get the current config used by the driver.
Definition OutputCommon.cpp:95
e_OutputProtocolType
Definition OutputMgr.hpp:78
Definition OutputMgrPortDefs.hpp:90