LibDriver HDC2080
Loading...
Searching...
No Matches
driver_hdc2080_shot.h
Go to the documentation of this file.
1
36
37#ifndef DRIVER_HDC2080_SHOT_H
38#define DRIVER_HDC2080_SHOT_H
39
41
42#ifdef __cplusplus
43extern "C"{
44#endif
45
50
54#define HDC2080_SHOT_DEFAULT_TEMPERATURE_RESOLUTION HDC2080_RESOLUTION_14_BIT
55#define HDC2080_SHOT_DEFAULT_HUMIDITY_RESOLUTION HDC2080_RESOLUTION_14_BIT
56#define HDC2080_SHOT_DEFAULT_HEATER HDC2080_BOOL_FALSE
57#define HDC2080_SHOT_DEFAULT_INTERRUPT_POLARITY HDC2080_INTERRUPT_POLARITY_LOW
58#define HDC2080_SHOT_DEFAULT_INTERRUPT_MODE HDC2080_INTERRUPT_MODE_COMPARATOR
59#define HDC2080_SHOT_DEFAULT_TEMPERATURE_OFFSET 0.0f
60#define HDC2080_SHOT_DEFAULT_HUMIDITY_OFFSET 0.0f
61
70uint8_t hdc2080_shot_init(hdc2080_address_t addr_pin);
71
79uint8_t hdc2080_shot_deinit(void);
80
90uint8_t hdc2080_shot_read(float *temperature, float *humidity);
91
100uint8_t hdc2080_shot_get_temperature_max(float *temperature);
101
110uint8_t hdc2080_shot_get_humidity_max(float *percent);
111
115
116#ifdef __cplusplus
117}
118#endif
119
120#endif
driver hdc2080 interface header file
hdc2080_address_t
hdc2080 address enumeration definition
uint8_t hdc2080_shot_get_temperature_max(float *temperature)
shot get temperature max
uint8_t hdc2080_shot_read(float *temperature, float *humidity)
shot example read
uint8_t hdc2080_shot_init(hdc2080_address_t addr_pin)
shot example init
uint8_t hdc2080_shot_get_humidity_max(float *percent)
shot get humidity max
uint8_t hdc2080_shot_deinit(void)
shot example deinit