upm  1.3.0
Sensor/Actuator repository for libmraa (v1.7.0)
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions
MAX44009 Class Reference

C++ API for MAX44009 chip (Ambient Light Sensor) More...

Detailed Description

The Maxim Integrated MAX44009 is Industry's Lowest-Power Ambient Light Sensor with ADC.

Public Member Functions

 MAX44009 (int bus=MAX44009_I2C_BUS, int devAddr=MAX44009_ADDRESS)
 ~MAX44009 ()
uint16_t getVisibleRaw ()
double getVisibleLux ()
virtual const char * getModuleName ()

Constructor & Destructor Documentation

MAX44009 ( int  bus = MAX44009_I2C_BUS,
int  devAddr = MAX44009_ADDRESS 

Instanciates a MAX44009 object

busnumber of used bus
devAddraddress of used i2c device
~MAX44009 ( )

MAX44009 object destructor, basicaly it close i2c connection.

Member Function Documentation

uint16_t getVisibleRaw ( )

Read the raw visible light value

Here is the caller graph for this function:

double getVisibleLux ( )

Read the lux value

Implements ILightSensor.

Here is the call graph for this function:

virtual const char* getModuleName ( )

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

name of module

Implements IModuleStatus.

Inheritance diagram for MAX44009:
Inheritance graph
Collaboration diagram for MAX44009:
Collaboration graph

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