trikRuntime
trikControl::Led Class Reference

Implementation of LED control for a real robot. More...

#include <led.h>

Inheritance diagram for trikControl::Led:
Collaboration diagram for trikControl::Led:

Public Slots

void red () override
 
void green () override
 
void orange () override
 
void off () override
 
- Public Slots inherited from trikControl::LedInterface
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...
 

Public Member Functions

 Led (const trikKernel::Configurer &configurer, const trikHal::HardwareAbstractionInterface &hardwareAbstraction)
 Constructor. More...
 
 ~Led () override
 
Status status () const override
 Returns current status of the device. More...
 
- Public Member Functions inherited from trikControl::DeviceInterface
 DeviceInterface ()=default
 
virtual ~DeviceInterface ()=default
 

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...
 
- 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

Implementation of LED control for a real robot.

Constructor & Destructor Documentation

Led::Led ( const trikKernel::Configurer configurer,
const trikHal::HardwareAbstractionInterface hardwareAbstraction 
)

Constructor.

Parameters
configurer- configurer object containing preparsed XML files with sensor parameters.
Led::~Led ( )
override

Member Function Documentation

void Led::green ( )
overrideslot
void Led::off ( )
overrideslot
void Led::orange ( )
overrideslot
void Led::red ( )
overrideslot
Led::Status Led::status ( ) const
overridevirtual

Returns current status of the device.

Implements trikControl::DeviceInterface.


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