Contiki-NG
Functions

Driver for the Sensortag HDC1000 sensor. More...

#include "contiki.h"
#include "sys/ctimer.h"
#include "lib/sensors.h"
#include "board-conf.h"
#include "hdc-1000-sensor.h"
#include <Board.h>
#include <ti/drivers/I2C.h>
#include <stdint.h>
#include <string.h>
#include <stdbool.h>
#include <stdio.h>

Go to the source code of this file.

Functions

static bool i2c_write_read (void *wbuf, size_t wcount, void *rbuf, size_t rcount)
 Setup and peform an I2C transaction. More...
 
static bool i2c_write (void *wbuf, size_t wcount)
 Peform a write only I2C transaction. More...
 
static bool i2c_read (void *rbuf, size_t rcount)
 Peform a read only I2C transaction. More...
 
static bool sensor_init (void)
 Initialize the HDC-1000 sensor driver. More...
 
static bool start (void)
 Start measurement. More...
 
static void convert (int32_t *temp, int32_t *hum)
 Convert raw data to temperature and humidity. More...
 
static void notify_ready (void *unused)
 Callback when sensor is ready to read data from.
 
static int value (int type)
 Returns a reading from the sensor. More...
 
static int configure (int type, int enable)
 Configuration function for the HDC1000 sensor. More...
 
static int status (int type)
 Returns the status of the sensor. More...
 

Detailed Description

Driver for the Sensortag HDC1000 sensor.

Author
Edvard Pettersen e.pet.nosp@m.ters.nosp@m.en@ti.nosp@m..com

Definition in file hdc-1000-sensor.c.