#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::RequestcreateRequest () override
 Create a request object for this device. More...
 
const TiminggetTiming () const
 
uint8_t getRepeats () const
 
- Public Member Functions inherited from IO::Device
 Device (Controller &controller, const char *id)
 Device constructor. More...
 
virtual ~Device ()
 
ErrorCode init (const Config &config)
 
const CStringgetId () const
 The unique device identifier. More...
 
bool operator== (const String &id) const
 
const CStringgetName () 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...
 
ControllergetController () 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 node) 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 ()
 
virtual LinkedObjectnext () 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
Controllercontroller
 

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()

IO::RFSwitch::Device::Device ( Controller controller,
const char *  id 
)
inline

Member Function Documentation

◆ createRequest()

IO::Request* IO::RFSwitch::Device::createRequest ( )
overridevirtual

Create a request object for this device.

Return values
Request*Caller must destroy or submit the request

Implements IO::Device.

◆ getRepeats()

uint8_t IO::RFSwitch::Device::getRepeats ( ) const
inline

◆ getTiming()

const Timing& IO::RFSwitch::Device::getTiming ( ) const
inline

◆ init() [1/2]

ErrorCode IO::RFSwitch::Device::init ( const Config config)

◆ init() [2/2]

ErrorCode IO::RFSwitch::Device::init ( JsonObjectConst  config)
overridevirtual

Implements IO::Device.

◆ parseJson()

void IO::RFSwitch::Device::parseJson ( JsonObjectConst  json,
Config cfg 
)
protected

◆ type()

const DeviceType IO::RFSwitch::Device::type ( ) const
inlineoverridevirtual

Implements IO::Device.

Member Data Documentation

◆ factory

const Factory IO::RFSwitch::Device::factory
static

◆ repeats

uint8_t IO::RFSwitch::Device::repeats
protected

Number of times to repeat code.

◆ timing

Timing IO::RFSwitch::Device::timing
protected

The documentation for this class was generated from the following file: