LibDriver MAX44009
Loading...
Searching...
No Matches
driver_max44009_interrupt.h
Go to the documentation of this file.
1
36
37#ifndef DRIVER_MAX44009_INTERRUPT_H
38#define DRIVER_MAX44009_INTERRUPT_H
39
41
42#ifdef __cplusplus
43extern "C"{
44#endif
45
50
54#define MAX44009_INTERRUPT_DEFAULT_AUTO_RANGE MAX44009_BOOL_TRUE
55#define MAX44009_INTERRUPT_DEFAULT_CONTINUOUS_MODE MAX44009_BOOL_TRUE
56#define MAX44009_INTERRUPT_DEFAULT_CURRENT_DIV_8 MAX44009_BOOL_FALSE
57#define MAX44009_INTERRUPT_DEFAULT_INTEGRATION_TIME MAX44009_INTEGRATION_TIME_200MS
58
70uint8_t max44009_interrupt_init(max44009_address_t addr_pin, float low_threshold_lux, float high_threshold_lux, float time_ms);
71
80uint8_t max44009_interrupt_read(float *lux);
81
89uint8_t max44009_interrupt_deinit(void);
90
94
95#ifdef __cplusplus
96}
97#endif
98
99#endif
driver max44009 interface header file
max44009_address_t
max44009 address enumeration definition
uint8_t max44009_interrupt_init(max44009_address_t addr_pin, float low_threshold_lux, float high_threshold_lux, float time_ms)
interrupt example init
uint8_t max44009_interrupt_read(float *lux)
interrupt example read
uint8_t max44009_interrupt_deinit(void)
interrupt example deinit