hdc1000 2.0.0.0
|
This file contains API for HDC1000 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | hdc1000_t |
Click ctx object definition. More... | |
struct | hdc1000_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | HDC1000_MAP_MIKROBUS(cfg, mikrobus) |
#define | HDC1000_RETVAL uint8_t |
#define | HDC1000_OK 0x00 |
#define | HDC1000_INIT_ERROR 0xFF |
#define | HDC1000_SLAVE_ADDRESS 0x40 |
#define | HDC1000_REG_TEMP 0x00 |
#define | HDC1000_REG_HUMI 0x01 |
#define | HDC1000_REG_CONFIG 0x02 |
#define | HDC1000_REG_SERID_1 0xFB |
#define | HDC1000_REG_SERID_2 0xFC |
#define | HDC1000_REG_SERID_3 0xFD |
#define | HDC1000_REG_MFID 0xFE |
#define | HDC1000_REG_DEVID 0xFF |
#define | HDC1000_RST 0x80 |
#define | HDC1000_HEAT_ON 0x20 |
#define | HDC1000_HEAT_OFF 0x00 |
#define | HDC1000_BOTH_TEMP_HUMI 0x10 |
#define | HDC1000_SINGLE_MEASUR 0x00 |
#define | HDC1000_TEMP_HUMI_14BIT 0x00 |
#define | HDC1000_TEMP_11BIT 0x04 |
#define | HDC1000_HUMI_11BIT 0x01 |
#define | HDC1000_HUMI_8BIT 0x02 |
Functions | |
void | hdc1000_cfg_setup (hdc1000_cfg_t *cfg) |
Config Object Initialization function. | |
HDC1000_RETVAL | hdc1000_init (hdc1000_t *ctx, hdc1000_cfg_t *cfg) |
Initialization function. | |
void | hdc1000_default_cfg (hdc1000_t *ctx) |
Click Default Configuration function. | |
void | hdc1000_generic_write (hdc1000_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | hdc1000_generic_read (hdc1000_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
float | hdc1000_get_temperature_data (hdc1000_t *ctx) |
Get temperature value. | |
float | hdc1000_get_humidity_data (hdc1000_t *ctx) |
Get humidity value. | |
uint8_t | hdc1000_get_interrupt (hdc1000_t *ctx) |
Get interrupt state. | |
This file contains API for HDC1000 Click driver.