48 int Poll(
short cause)
override;
57 int Ctrl(
itemCmd cmd,
char* subItem=NULL,
bool toExecute=
true,
bool authorized =
false)
override;
A single LightHub item (virtual channel).
Definition item.h:232
abstractOut()
Definition abstractout.h:22
virtual void link(Item *_item)
Definition abstractout.h:24
Command + value container passed between items, drivers and MQTT.
Definition itemCmd.h:306
Motorized gate/shutter driver with analog position feedback, channel type CH_MOTOR = 12.
Definition out_motor.h:38
int16_t maxOnTime
Definition out_motor.h:62
int Poll(short cause) override
Drives the motor toward the target position with speed ramp, enforces the max on-time,...
Definition out_motor.cpp:84
void getConfig()
Definition out_motor.cpp:12
bool inverted
Definition out_motor.h:65
uint16_t feedbackOpen
Definition out_motor.h:63
int8_t pinUp
Definition out_motor.h:59
int Stop() override
Deactivates both motor outputs and resets the channel state.
Definition out_motor.cpp:71
int Setup() override
Sets the up/down pins as outputs, the feedback pin as input, resets the action flags.
Definition out_motor.cpp:48
uint16_t feedbackClosed
Definition out_motor.h:64
int Ctrl(itemCmd cmd, char *subItem=NULL, bool toExecute=true, bool authorized=false) override
Sets the target position via /set (0-255) and /cmd on/off, requesting a move (see class doc).
Definition out_motor.cpp:248
int8_t pinFeedback
Definition out_motor.h:61
int8_t pinDown
Definition out_motor.h:60
void link(Item *_item)
Links the channel item and reads the pin config from itemArg.
Definition out_motor.h:44
int getChanType() override
Returns CH_PWM (3).
Definition out_motor.cpp:241
Item (virtual channel) system of LightHub.
#define MOTOR_QUOTE
Definition out_motor.h:15