upm  0.2.0
Sensor/Actuator repository for libmraa (v0.6.1)
Public Member Functions
MLX90614 Class Reference

C++ API for MLX90614. More...

Detailed Description

This file defines the MLX90614 C++ interface for libmlx90614

sensor = new upm::MLX90614(0, DEVICE_ADDR);
while (!doWork) {
std::cout << "Object Temperature (" << sensor->readObjectTempC() << ") Ambient Temperature (" << sensor->readAmbientTempC() << ")" << std::endl;
usleep (1000000);
}

Public Member Functions

 MLX90614 (int bus=0, int devAddr=0x5A)
 
 ~MLX90614 ()
 
float readObjectTempF (void)
 
float readAmbientTempF (void)
 
float readObjectTempC (void)
 
float readAmbientTempC (void)
 
std::string name ()
 

Constructor & Destructor Documentation

MLX90614 ( int  bus = 0,
int  devAddr = 0x5A 
)

Instanciates a MLX90614 object

Parameters
busnumber of used bus
devAddraddres of used i2c device
~MLX90614 ( )

MLX90614 object destructor, basicaly it close i2c connection.

Member Function Documentation

float readObjectTempF ( void  )

Read object temperature in Fahrenheit

float readAmbientTempF ( void  )

Read ambient temperature in Fahrenheit

float readObjectTempC ( void  )

Read object temperature in Celsius

float readAmbientTempC ( void  )

Read ambient temperature in Celsius

std::string name ( )
inline

Return name of the component


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