LibDriver ADS1115
Loading...
Searching...
No Matches
driver_ads1115_interrupt.h
Go to the documentation of this file.
1
37
38#ifndef DRIVER_ADS1115_INTERRUPT_H
39#define DRIVER_ADS1115_INTERRUPT_H
40
42
43#ifdef __cplusplus
44extern "C"{
45#endif
46
51
55#define ADS1115_INTERRUPT_DEFAULT_RANGE ADS1115_RANGE_6P144V
56#define ADS1115_INTERRUPT_DEFAULT_ALERT_PIN ADS1115_PIN_LOW
57#define ADS1115_INTERRUPT_DEFAULT_RATE ADS1115_RATE_128SPS
58#define ADS1115_INTERRUPT_DEFAULT_COMPARATOR_QUEUE ADS1115_COMPARATOR_QUEUE_2_CONV
59
73 float f_high_threshold, float f_low_threshold);
74
83uint8_t ads1115_interrupt_read(float *s);
84
92uint8_t ads1115_interrupt_deinit(void);
93
97
98#ifdef __cplusplus
99}
100#endif
101
102#endif
driver ads1115 interface header file
ads1115_channel_t
ads1115 channel enumeration definition
ads1115_address_t
ads1115 address enumeration definition
uint8_t ads1115_interrupt_init(ads1115_address_t addr, ads1115_channel_t channel, ads1115_compare_t compare, float f_high_threshold, float f_low_threshold)
interrupt example init
uint8_t ads1115_interrupt_read(float *s)
interrupt example read
uint8_t ads1115_interrupt_deinit(void)
interrupt example deinit
ads1115_compare_t
ads1115 compare mode enumeration definition