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

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

Parameters
busnumber of used bus
devAddraddress of used i2c device

Here is the caller graph for this function:

~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 ( )
virtual

Read the lux value

Implements ILightSensor.

Here is the call graph for this function:

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:

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

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