Contiki-NG
|
Driver for the Sensortag HDC1000 sensor. More...
#include "contiki.h"
#include "sys/ctimer.h"
#include "lib/sensors.h"
#include "dev/i2c-arch.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 | sensor_init (void) |
Initialize the HDC-1000 sensor driver. | |
static bool | start (void) |
Start measurement. | |
static void | convert (int32_t *temp, int32_t *hum) |
Convert raw data to temperature and humidity. | |
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. | |
static int | configure (int type, int enable) |
Configuration function for the HDC1000 sensor. | |
static int | status (int type) |
Returns the status of the sensor. | |
Driver for the Sensortag HDC1000 sensor.
Definition in file hdc-1000-sensor.c.