upm  0.8.0
Sensor/Actuator repository for libmraa (v1.1.1)
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions | Protected Member Functions
HLG150H Class Reference

API for HLG-150H Lighting Power Supply Controller. More...

Detailed Description

The Mean Well HLG-150H 150W Single Output Switching Power Supply

Public Member Functions

 HLG150H (int pinRelay, int pinPWM)
 

Protected Member Functions

const char * getModuleName ()
 
void setPowerOn ()
 
void setPowerOff ()
 
bool isPowered ()
 
void setBrightness (int dutyPercent)
 
int getBrightness ()
 

Member Function Documentation

const char* getModuleName ( )
inlineprotectedvirtual

Returns name of module. This is the string in library name after libupm_

Returns
name of module

Implements IModuleStatus.

void setPowerOn ( )
protectedvirtual

Turn on power

Exceptions
std::runtime_error

Implements ILightController.

void setPowerOff ( )
protectedvirtual

Turn off power

Exceptions
std::runtime_error

Implements ILightController.

bool isPowered ( )
protectedvirtual

Get power state

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

Implements ILightController.

void setBrightness ( int  percent)
protectedvirtual

Set brightness

Parameters
brightnessas percentage
Exceptions
std::runtime_error

Implements ILightController.

int getBrightness ( )
protectedvirtual

Get brightness

Returns
brightness as percentage
Exceptions
std::runtime_error

Implements ILightController.

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

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