|
roo_control
API Documentation for roo_control
|
Output-only port. More...
#include <pcf8574.h>
Public Member Functions | |
| OutputPort (Pcf8574 &extender, uint8_t port) | |
| bool | setState (BinaryLogicalState state) override |
| Updates the state of the switch. Returns true on success. | |
| bool | getState (BinaryLogicalState &result) const override |
Public Member Functions inherited from roo_control::Switch< BinaryLogicalState > | |
| virtual | ~Switch ()=default |
Public Member Functions inherited from roo_control::Selector< State > | |
| virtual | ~Selector ()=default |
| virtual bool | getState (State &result) const =0 |
| Retrieves the current state, or returns false when it cannot be read. | |
Output-only port.
Reading the state (getState()) returns the last set value without communicating with the extender. Prefer this to Port for output-only ports.
Definition at line 31 of file pcf8574.cpp.
|
override |
Definition at line 25 of file pcf8574.cpp.
References roo_control::BINARY_STATE_HIGH, and roo_control::BINARY_STATE_LOW.
|
overridevirtual |
Updates the state of the switch. Returns true on success.
Implements roo_control::Switch< BinaryLogicalState >.
Definition at line 21 of file pcf8574.cpp.