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

Detailed Description

Public Member Functions

 SI7005 (int bus, int pin)
 
 ~SI7005 ()
 
uint16_t getTemperatureRaw ()
 
int getTemperatureCelsius ()
 
uint16_t getHumidityRaw ()
 
int getHumidityRelative ()
 
const char * getModuleName ()
 
bool isAvailable ()
 
void enableHeater ()
 
void disableHeater ()
 
void enableFastConversionMode ()
 
void disableFastConversionMode ()
 

Constructor & Destructor Documentation

SI7005 ( int  bus,
int  pin 
)

Instantiates a SI7005 object

Parameters
busnumber of used bus
devAddraddress of used i2c device
pinmraa gpio number for chip select pin

Here is the call graph for this function:

~SI7005 ( )

SI7005 object destructor.

Member Function Documentation

uint16_t getTemperatureRaw ( )

Get temperature measurement.

Here is the caller graph for this function:

int getTemperatureCelsius ( )
virtual

Get temperature measurement.

Implements ITemperatureSensor.

Here is the call graph for this function:

uint16_t getHumidityRaw ( )

Get relative humidity measurement.

Here is the caller graph for this function:

int getHumidityRelative ( )
virtual

Get relative humidity measurement.

Implements IHumiditySensor.

Here is the call graph for this function:

const char* getModuleName ( )
inlinevirtual

Returns sensor module name

Implements IModuleStatus.

bool isAvailable ( )

Detects the sensor to ensure it is connected as required.

Here is the caller graph for this function:

void enableHeater ( )

Enables the integrated heating element.

void disableHeater ( )

Disables the integrated heating element.

void enableFastConversionMode ( )

Enables fast conversion mode.

void disableFastConversionMode ( )

Enables fast conversion mode.

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

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