Classes |
Public Member Functions |
Static Public Attributes |
Protected Member Functions |
Protected Attributes |
List of all members
IO::RFSwitch::Device Class Reference
#include <Device.h>
Inheritance diagram for IO::RFSwitch::Device:
Collaboration diagram for IO::RFSwitch::Device:
Classes | |
| struct | Config |
| class | Factory |
Public Member Functions | |
| const DeviceType | type () const override |
| ErrorCode | init (const Config &config) |
| ErrorCode | init (JsonObjectConst config) override |
| Device (Controller &controller, const char *id) | |
| IO::Request * | createRequest () override |
| Create a request object for this device. More... | |
| const Timing & | getTiming () const |
| uint8_t | getRepeats () const |
Public Member Functions inherited from IO::Device | |
| Device (Controller &controller, const char *id) | |
| Device constructor. More... | |
| virtual | ~Device ()=default |
| ErrorCode | init (const Config &config) |
| const CString & | getId () const |
| The unique device identifier. More... | |
| bool | operator== (const String &id) const |
| const CString & | getName () const |
| Optional descriptive name for the device. More... | |
| virtual uint16_t | address () const |
| Devices with a numeric address should implement this method. More... | |
| unsigned | minTransactionInterval () const |
| String | caption () const |
| Obtain a descriptive caption for this device. More... | |
| Controller & | getController () const |
| Obtain the owning controller. More... | |
| State | getState () |
| Get current device state. More... | |
| virtual DevNode::ID | nodeIdMin () const |
| Get minimum valid Node ID for this device. More... | |
| DevNode::ID | nodeIdMax () const |
| Get maximum valid Node ID for this device. More... | |
| virtual uint16_t | maxNodes () const |
| Determine maximum number of nodes supported by the device. More... | |
| virtual DevNode::States | getNodeStates (DevNode) const |
| Return the current set of states for all nodes controlled by this device. More... | |
| virtual void | handleEvent (Request *request, Event event) |
| Implementations may override this method to customise event handling. More... | |
Public Member Functions inherited from LinkedObjectTemplate< Device > | |
| Device * | getNext () const |
| bool | insertAfter (Device *object) |
| Iterator | begin () const |
| Iterator | end () const |
| Iterator | cbegin () const |
| Iterator | cend () const |
Public Member Functions inherited from LinkedObject | |
| virtual | ~LinkedObject ()=default |
| virtual LinkedObject * | next () const |
| bool | insertAfter (LinkedObject *object) |
| bool | operator== (const LinkedObject &other) const |
| bool | operator!= (const LinkedObject &other) const |
Static Public Attributes | |
| static const Factory | factory |
Protected Member Functions | |
| void | parseJson (JsonObjectConst json, Config &cfg) |
Protected Member Functions inherited from IO::Device | |
| void | parseJson (JsonObjectConst json, Config &cfg) |
| virtual ErrorCode | start () |
| virtual ErrorCode | stop () |
| void | submit (Request *request) |
Protected Attributes | |
| Timing | timing |
| uint8_t | repeats |
| Number of times to repeat code. More... | |
Protected Attributes inherited from IO::Device | |
| Controller & | controller |
Additional Inherited Members | |
Public Types inherited from IO::Device | |
| enum class | State { stopped , starting , fault , normal } |
| using | OwnedList = OwnedLinkedObjectListTemplate< Device > |
Public Types inherited from LinkedObjectTemplate< Device > | |
| using | Iterator = IteratorTemplate< Device, Device *, Device & > |
| using | ConstIterator = IteratorTemplate< const Device, const Device *, const Device & > |
Constructor & Destructor Documentation
◆ Device()
|
inline |
Member Function Documentation
◆ createRequest()
|
overridevirtual |
Create a request object for this device.
- Return values
-
Request* Caller must destroy or submit the request
Implements IO::Device.
◆ getRepeats()
|
inline |
◆ getTiming()
|
inline |
◆ init() [1/2]
◆ init() [2/2]
|
overridevirtual |
Implements IO::Device.
◆ parseJson()
|
protected |
◆ type()
|
inlineoverridevirtual |
Implements IO::Device.
Member Data Documentation
◆ factory
|
static |
◆ repeats
|
protected |
Number of times to repeat code.
◆ timing
|
protected |
The documentation for this class was generated from the following file:
Public Member Functions inherited from
1.9.1