zephyr/drivers/sensor/hdc1008/hdc1008.h
Kumar Gala ccad5bf3e3 drivers: convert to using newly introduced integer sized types
Convert code to use u{8,16,32,64}_t and s{8,16,32,64}_t instead of C99
integer types.

Jira: ZEP-2051

Change-Id: I08f51e2bfd475f6245771c1bd2df7ffc744c48c4
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2017-04-21 10:06:48 -05:00

32 lines
609 B
C

/*
* Copyright (c) 2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _SENSOR_HDC1008
#define _SENSOR_HDC1008
#include <kernel.h>
#define HDC1008_I2C_ADDRESS 0x40
#define HDC1008_REG_TEMP 0x0
#define HDC1008_REG_HUMIDITY 0x1
#define HDC1000_MANUFID 0xFE
#define HDC1000_DEVICEID 0xFF
struct hdc1008_data {
struct device *i2c;
struct device *gpio;
struct gpio_callback gpio_cb;
u16_t t_sample;
u16_t rh_sample;
struct k_sem data_sem;
};
#define SYS_LOG_DOMAIN "HDC1008"
#define SYS_LOG_LEVEL CONFIG_SYS_LOG_SENSOR_LEVEL
#include <logging/sys_log.h>
#endif