Contiki-NG
Functions

Driver for the Sensortag TI TMP007 infrared thermophile sensor. More...

#include "contiki.h"
#include "lib/sensors.h"
#include "tmp-007-sensor.h"
#include "sys/ctimer.h"
#include "board-i2c.h"
#include "sensor-common.h"
#include "ti-lib.h"
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include <math.h>

Go to the source code of this file.

Functions

static bool enable_sensor (bool enable)
 Turn the sensor on/off.
 
static bool read_data (uint16_t *raw_temp, uint16_t *raw_obj_temp)
 Read the sensor value registers. More...
 
static void convert (uint16_t raw_temp, uint16_t raw_obj_temp, float *obj, float *amb)
 Convert raw data to values in degrees C. More...
 
static int value (int type)
 Returns a reading from the sensor. More...
 
static int configure (int type, int enable)
 Configuration function for the TMP007 sensor. More...
 
static int status (int type)
 Returns the status of the sensor. More...
 

Detailed Description

Driver for the Sensortag TI TMP007 infrared thermophile sensor.

Definition in file tmp-007-sensor.c.