trikRuntime
trikControl::LedInterface Class Referenceabstract

Controls light-emitting diode on a brick. More...

#include <ledInterface.h>

Inheritance diagram for trikControl::LedInterface:
Collaboration diagram for trikControl::LedInterface:

Public Slots

virtual void red ()=0
 Turn LED on with red color. More...
 
virtual void green ()=0
 Turn LED on with green color. More...
 
virtual void orange ()=0
 Turn LED on with orange color. More...
 
virtual void off ()=0
 Turn LED off. More...
 

Additional Inherited Members

- Public Types inherited from trikControl::DeviceInterface
enum  Status {
  Status::permanentFailure, Status::temporaryFailure, Status::off, Status::starting,
  Status::ready, Status::stopping
}
 Device status. More...
 
- Public Member Functions inherited from trikControl::DeviceInterface
 DeviceInterface ()=default
 
virtual ~DeviceInterface ()=default
 
virtual Status status () const =0
 Returns current status of the device. More...
 
- Static Public Member Functions inherited from trikControl::DeviceInterface
static Status combine (const DeviceInterface &underlying, const DeviceInterface::Status &dependent)
 Helper method to return status of a device relying on other device to work. More...
 

Detailed Description

Controls light-emitting diode on a brick.

Member Function Documentation

virtual void trikControl::LedInterface::green ( )
pure virtualslot

Turn LED on with green color.

virtual void trikControl::LedInterface::off ( )
pure virtualslot

Turn LED off.

virtual void trikControl::LedInterface::orange ( )
pure virtualslot

Turn LED on with orange color.

virtual void trikControl::LedInterface::red ( )
pure virtualslot

Turn LED on with red color.


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