out_relay.h
Go to the documentation of this file.
#pragma once
#include "options.h"
#ifndef RELAY_DISABLE
#include <abstractout.h>
#include <item.h>
class out_relay : public abstractOut {
public:
out_relay(Item * _item):abstractOut(_item){ getConfig();};
void getConfig();
void relay(bool state);
int Setup() override;
int Poll(short cause) override;
int Stop() override;
int Status() override;
int getChanType() override;
int Ctrl(itemCmd cmd, char* subItem=NULL, bool toExecute=true) override;
protected:
short pin;
bool inverted;
uint32_t period;
};
#endif
itemCmd
Definition: itemCmd.h:153
out_relay::Status
int Status() override
Definition: out_relay.cpp:62
options.h
abstractOut
Definition: abstractout.h:8
out_relay::out_relay
out_relay(Item *_item)
Definition: out_relay.h:12
out_relay::Setup
int Setup() override
Remove?? Now getChanType used instead.
Definition: out_relay.cpp:35
out_relay::period
uint32_t period
Definition: out_relay.h:26
out_relay::pin
short pin
Definition: out_relay.h:24
out_relay::getConfig
void getConfig()
Definition: out_relay.cpp:13
out_relay
Definition: out_relay.h:9
Item
Definition: item.h:104
out_relay::Poll
int Poll(short cause) override
Definition: out_relay.cpp:120
abstractout.h
out_relay::Ctrl
int Ctrl(itemCmd cmd, char *subItem=NULL, bool toExecute=true) override
Definition: out_relay.cpp:151
out_relay::relay
void relay(bool state)
Definition: out_relay.cpp:76
out_relay::inverted
bool inverted
Definition: out_relay.h:25
out_relay::Stop
int Stop() override
Definition: out_relay.cpp:54
out_relay::getChanType
int getChanType() override
Definition: out_relay.cpp:217
item.h