upm  1.5.0
Sensor/Actuator repository for libmraa (v1.8.0)
Public Member Functions

API for LP8860 LED Lighting Controller. More...

Detailed Description

The Texas Instrumements LP8860-Q1 Automotive Catalog Low-EMI, High-Performance 4-Channel LED Driver

Public Member Functions

 LP8860 (int gpioPower, int i2cBus)
 
virtual const char * getModuleName ()
 
bool isPowered ()
 
void setPowerOn ()
 
void setPowerOff ()
 
int getBrightness ()
 
void setBrightness (int dutyPercent)
 

Member Function Documentation

virtual const char* getModuleName ( )
inlinevirtual

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

Returns
name of module

Implements IModuleStatus.

Here is the call graph for this function:

bool isPowered ( )
virtual

Get power state

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

Implements ILightController.

Here is the caller graph for this function:

void setPowerOn ( )
virtual

Turn on power

Exceptions
std::runtime_error

Implements ILightController.

Here is the call graph for this function:

Here is the caller graph for this function:

void setPowerOff ( )
virtual

Turn off power

Exceptions
std::runtime_error

Implements ILightController.

Here is the caller graph for this function:

int getBrightness ( )
virtual

Get brightness

Returns
brightness as percentage
Exceptions
std::runtime_error

Implements ILightController.

Here is the caller graph for this function:

void setBrightness ( int  percent)
virtual

Set brightness

Parameters
percentbrightness as percentage
Exceptions
std::runtime_error

Implements ILightController.

Here is the caller graph for this function:

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

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