Contiki-Inga 3.x
Pressure and Temperature Sensor

This sensor interface allows to control the gyroscope of the INGA sensor platform. More...

Sensor values

#define TEMP   0
 Returns Temperature [C].
 
#define PRESS_H   2
 Returns Pressure [High] [Pa].
 
#define PRESS_L   1
 Returns Pressure [Low] [Pa].
 

Configuration types

#define PRESSURE_CONF_OPERATION_MODE   10
 Selects the operation mode. More...
 

OPERATION_MODE values

#define PRESSURE_MODE_ULTRA_LOW_POWER   0
 
#define PRESSURE_MODE_STANDARD   1
 
#define PRESSURE_MODE_HIGH_RES   2
 
#define PRESSURE_MODE_ULTRA_HIGH_RES   3
 

Detailed Description

This sensor interface allows to control the gyroscope of the INGA sensor platform.

Query measurements

acc_sensor.value(channel)

The sensor provides 3 data channels.

Example Usage

#include <sensors.h>
[...]
struct sensors_sensor pressure_sensor = find_sensor("Press");
ACTIVATE_SENSOR(pressure_sensor);
[...]
int32_t pressval = ((int32_t) pressure_sensor.value(PRESS_H) << 16);
pressval |= (pressure_sensor.value(PRESS_L) & 0xFFFF);

Macro Definition Documentation

#define PRESSURE_CONF_OPERATION_MODE   10

Selects the operation mode.

Definition at line 89 of file pressure-sensor.h.