32#ifdef SUPPORT_OutputType_Relay
44 uint8_t OnOffTriggerLevel;
48 uint8_t previousValue;
49#if defined(ARDUINO_ARCH_ESP32)
50 uint16_t PwmFrequency;
57 gpio_num_t outputGpio,
60 virtual ~c_OutputRelay ();
64 bool SetConfig (ArduinoJson::JsonObject & jsonConfig);
65 void GetConfig (ArduinoJson::JsonObject & jsonConfig);
67#if defined(ARDUINO_ARCH_ESP32)
68 bool RmtPoll () {
return false;}
71 void GetStatus (ArduinoJson::JsonObject & jsonStatus);
74 bool ValidateGpio (gpio_num_t ConsoleTxGpio, gpio_num_t ConsoleRxGpio);
77# define OM_RELAY_CHANNEL_LIMIT 8
78# define OM_RELAY_UPDATE_INTERVAL_NAME CN_updateinterval
79# define OM_RELAY_CHANNEL_ENABLED_NAME CN_en
80# define OM_RELAY_CHANNEL_INVERT_NAME CN_inv
81# define OM_RELAY_CHANNEL_PWM_NAME CN_pwm
86 RelayChannel_t OutputList[OM_RELAY_CHANNEL_LIMIT];
87 uint16_t UpdateInterval = 0;
91 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:150
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:94
virtual void GetConfig(ArduinoJson::JsonObject &jsonConfig)
Get the current config used by the driver.
Definition OutputCommon.cpp:111
e_OutputChannelIds
Definition OutputMgr.hpp:67
e_OutputType
Definition OutputMgr.hpp:126