upm  1.7.1
Sensor/Actuator repository for libmraa (v2.0.0)
Public Member Functions
ILightController Class Referenceabstract

ILightController Interface for Light Controllers. More...

Detailed Description

Interface for Light Controllers

This interface is used to represent light controllers

Public Member Functions

virtual void setPowerOn ()=0
 
virtual void setPowerOff ()=0
 
virtual bool isPowered ()=0
 
virtual void setBrightness (int percent)=0
 
virtual int getBrightness ()=0
 
- Public Member Functions inherited from IModuleStatus
virtual const char * getModuleName ()=0
 

Member Function Documentation

virtual void setPowerOn ( )
pure virtual

Turn on power

Exceptions
std::runtime_error

Implemented in HLG150H, DS1808LC, and LP8860.

virtual void setPowerOff ( )
pure virtual

Turn off power

Exceptions
std::runtime_error

Implemented in HLG150H, DS1808LC, and LP8860.

virtual bool isPowered ( )
pure virtual

Get power state

Returns
true if powered, false otherwise
Exceptions
std::runtime_error

Implemented in HLG150H, DS1808LC, and LP8860.

virtual void setBrightness ( int  percent)
pure virtual

Set brightness

Parameters
percentbrightness as percentage
Exceptions
std::runtime_error

Implemented in HLG150H, DS1808LC, and LP8860.

virtual int getBrightness ( )
pure virtual

Get brightness

Returns
brightness as percentage
Exceptions
std::runtime_error

Implemented in DS1808LC, LP8860, and HLG150H.

Inheritance diagram for ILightController:
Inheritance graph
[legend]
Collaboration diagram for ILightController:
Collaboration graph
[legend]

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