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
SI1132 Class Reference

API for Si1132 UV and Visible Light Sensor. More...

Detailed Description

The Silicon Labs Si1132 is a low-power, ultraviolet (UV) index, and ambient light sensor with I2C digital interface and programmable-event interrupt output.

Public Member Functions

 SI1132 (int bus)
 
 ~SI1132 ()
 
uint16_t getVisibleRaw ()
 
double getVisibleLux ()
 
const char * getModuleName ()
 

Constructor & Destructor Documentation

SI1132 ( int  bus)

Instanciates a Si1132 object

Parameters
busnumber of used bus
devAddraddress of used i2c device
~SI1132 ( )

Si1132 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:

const char* getModuleName ( )
inlinevirtual

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

Returns
name of module

Implements IModuleStatus.

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

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