LibDriver STTS22H
Loading...
Searching...
No Matches
driver_stts22h_interrupt.h
Go to the documentation of this file.
1
36
37#ifndef DRIVER_STTS22H_INTERRUPT_H
38#define DRIVER_STTS22H_INTERRUPT_H
39
41
42#ifdef __cplusplus
43extern "C"{
44#endif
45
52
56#define STTS22H_INTERRUPT_DEFAULT_DISABLE_SMBUS_TIMEOUT STTS22H_BOOL_FALSE
57#define STTS22H_INTERRUPT_DEFAULT_BLOCK_DATA_UPDATE STTS22H_BOOL_FALSE
58#define STTS22H_INTERRUPT_DEFAULT_IIC_ADDRESS_AUTO_INCREMENT STTS22H_BOOL_TRUE
59#define STTS22H_INTERRUPT_DEFAULT_OUTPUT_DATA_RATE STTS22H_OUTPUT_DATA_RATE_50HZ
60
69
81uint8_t stts22h_interrupt_init(stts22h_address_t addr_pin, float low_celsius_deg,
82 float high_celsius_deg, void (*callback)(uint8_t type));
83
91uint8_t stts22h_interrupt_deinit(void);
92
101uint8_t stts22h_interrupt_read(float *celsius_deg);
102
106
107#ifdef __cplusplus
108}
109#endif
110
111#endif
driver stts22h interface header file
stts22h_address_t
stts22h address enumeration definition
uint8_t stts22h_interrupt_read(float *celsius_deg)
interrupt example read
uint8_t stts22h_interrupt_init(stts22h_address_t addr_pin, float low_celsius_deg, float high_celsius_deg, void(*callback)(uint8_t type))
interrupt example init
uint8_t stts22h_interrupt_deinit(void)
interrupt example deinit
uint8_t stts22h_interrupt_irq_handler(void)
interrupt irq