OpenBIC
OpenSource Bridge-IC
|
#include <stdio.h>
#include <logging/log.h>
#include "sensor.h"
#include "hal_i2c.h"
#include "hdc1080.h"
Macros | |
#define | RAW2TEMP(raw) (raw * 165 / 65536 - 40) |
#define | RAW2HUM(raw) (raw * 100 / 65536) |
#define | HDC1080_DELAY 10 |
Functions | |
LOG_MODULE_REGISTER (dev_hdc1080) | |
uint8_t | hdc1080_read (sensor_cfg *cfg, int *reading) |
uint8_t | hdc1080_init (sensor_cfg *cfg) |
#define HDC1080_DELAY 10 |
#define RAW2HUM | ( | raw | ) | (raw * 100 / 65536) |
#define RAW2TEMP | ( | raw | ) | (raw * 165 / 65536 - 40) |
uint8_t hdc1080_init | ( | sensor_cfg * | cfg | ) |
uint8_t hdc1080_read | ( | sensor_cfg * | cfg, |
int * | reading | ||
) |
LOG_MODULE_REGISTER | ( | dev_hdc1080 | ) |