|
roo_control
API Documentation for roo_control
|
Quasi-bidirectional port usable as both input and output. More...
#include <pcf8574.h>
Public Member Functions | |
| Port (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. | |
Quasi-bidirectional port usable as both input and output.
If your port is output-only, prefer OutputPort instead.
Definition at line 18 of file pcf8574.cpp.
|
override |
Definition at line 13 of file pcf8574.cpp.
|
overridevirtual |
Updates the state of the switch. Returns true on success.
Implements roo_control::Switch< BinaryLogicalState >.
Definition at line 9 of file pcf8574.cpp.
References roo_control::Pcf8574::writePort().