LibDriver SHT35
Loading...
Searching...
No Matches
driver_sht35_alert.h
Go to the documentation of this file.
1
37
38#ifndef DRIVER_SHT35_ALERT_H
39#define DRIVER_SHT35_ALERT_H
40
42
43#ifdef __cplusplus
44extern "C"{
45#endif
46
51
55#define SHT35_ALERT_DEFAULT_RATE SHT35_RATE_10HZ
56#define SHT35_ALERT_DEFAULT_REPEATABILITY SHT35_REPEATABILITY_HIGH
57#define SHT35_ALERT_DEFAULT_HEATER SHT35_BOOL_FALSE
58
66uint8_t sht35_alert_irq_handler(void);
67
85uint8_t sht35_alert_init(sht35_address_t addr_pin, void (*callback)(uint16_t type),
86 float high_limit_temperature_set, float high_limit_humidity_set,
87 float high_limit_temperature_clear, float high_limit_humidity_clear,
88 float low_limit_temperature_set, float low_limit_humidity_set,
89 float low_limit_temperature_clear, float low_limit_humidity_clear);
90
100uint8_t sht35_alert_read(float *temperature, float *humidity);
101
109uint8_t sht35_alert_deinit(void);
110
119uint8_t sht35_alert_get_serial_number(uint8_t sn[4]);
120
124
125#ifdef __cplusplus
126}
127#endif
128
129#endif
driver sht35 interface header file
sht35_address_t
sht35 address enumeration definition
uint8_t sht35_alert_init(sht35_address_t addr_pin, void(*callback)(uint16_t type), float high_limit_temperature_set, float high_limit_humidity_set, float high_limit_temperature_clear, float high_limit_humidity_clear, float low_limit_temperature_set, float low_limit_humidity_set, float low_limit_temperature_clear, float low_limit_humidity_clear)
alert example init
uint8_t sht35_alert_read(float *temperature, float *humidity)
alert example read
uint8_t sht35_alert_irq_handler(void)
alert irq
uint8_t sht35_alert_deinit(void)
alert example deinit
uint8_t sht35_alert_get_serial_number(uint8_t sn[4])
alert example get serial number