![]() |
LibDriver MAX44009
|
max44009 example driver modules More...
Macros | |
| #define | MAX44009_BASIC_DEFAULT_AUTO_RANGE MAX44009_BOOL_TRUE |
| max44009 basic example default definition | |
| #define | MAX44009_BASIC_DEFAULT_CONTINUOUS_MODE MAX44009_BOOL_TRUE |
| #define | MAX44009_BASIC_DEFAULT_CURRENT_DIV_8 MAX44009_BOOL_FALSE |
| #define | MAX44009_BASIC_DEFAULT_INTEGRATION_TIME MAX44009_INTEGRATION_TIME_200MS |
| #define | MAX44009_INTERRUPT_DEFAULT_AUTO_RANGE MAX44009_BOOL_TRUE |
| max44009 interrupt example default definition | |
| #define | MAX44009_INTERRUPT_DEFAULT_CONTINUOUS_MODE MAX44009_BOOL_TRUE |
| #define | MAX44009_INTERRUPT_DEFAULT_CURRENT_DIV_8 MAX44009_BOOL_FALSE |
| #define | MAX44009_INTERRUPT_DEFAULT_INTEGRATION_TIME MAX44009_INTEGRATION_TIME_200MS |
Functions | |
| uint8_t | max44009_basic_init (max44009_address_t addr_pin) |
| basic example init | |
| uint8_t | max44009_basic_read (float *lux) |
| basic example read | |
| uint8_t | max44009_basic_deinit (void) |
| basic example deinit | |
| 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 | |
max44009 example driver modules
| #define MAX44009_BASIC_DEFAULT_AUTO_RANGE MAX44009_BOOL_TRUE |
max44009 basic example default definition
enable auto range
Definition at line 56 of file driver_max44009_basic.h.
| #define MAX44009_BASIC_DEFAULT_CONTINUOUS_MODE MAX44009_BOOL_TRUE |
enable continuous mode
Definition at line 57 of file driver_max44009_basic.h.
| #define MAX44009_BASIC_DEFAULT_CURRENT_DIV_8 MAX44009_BOOL_FALSE |
disable current div 8
Definition at line 58 of file driver_max44009_basic.h.
| #define MAX44009_BASIC_DEFAULT_INTEGRATION_TIME MAX44009_INTEGRATION_TIME_200MS |
200ms
Definition at line 59 of file driver_max44009_basic.h.
| #define MAX44009_INTERRUPT_DEFAULT_AUTO_RANGE MAX44009_BOOL_TRUE |
max44009 interrupt example default definition
enable auto range
Definition at line 54 of file driver_max44009_interrupt.h.
| #define MAX44009_INTERRUPT_DEFAULT_CONTINUOUS_MODE MAX44009_BOOL_TRUE |
enable continuous mode
Definition at line 55 of file driver_max44009_interrupt.h.
| #define MAX44009_INTERRUPT_DEFAULT_CURRENT_DIV_8 MAX44009_BOOL_FALSE |
disable current div 8
Definition at line 56 of file driver_max44009_interrupt.h.
| #define MAX44009_INTERRUPT_DEFAULT_INTEGRATION_TIME MAX44009_INTEGRATION_TIME_200MS |
200ms
Definition at line 57 of file driver_max44009_interrupt.h.
| uint8_t max44009_basic_deinit | ( | void | ) |
basic example deinit
Definition at line 165 of file driver_max44009_basic.c.
| uint8_t max44009_basic_init | ( | max44009_address_t | addr_pin | ) |
basic example init
| [in] | addr_pin | iic device address |
Definition at line 49 of file driver_max44009_basic.c.
| uint8_t max44009_basic_read | ( | float * | lux | ) |
basic example read
| [out] | *lux | pointer to a converted lux buffer |
Definition at line 143 of file driver_max44009_basic.c.
| uint8_t max44009_interrupt_deinit | ( | void | ) |
interrupt example deinit
Definition at line 229 of file driver_max44009_interrupt.c.
| uint8_t max44009_interrupt_init | ( | max44009_address_t | addr_pin, |
| float | low_threshold_lux, | ||
| float | high_threshold_lux, | ||
| float | time_ms ) |
interrupt example init
| [in] | addr_pin | iic device address |
| [in] | low_threshold_lux | low threshold in lux |
| [in] | high_threshold_lux | high threshold in lux |
| [in] | time_ms | threshold time in ms |
Definition at line 52 of file driver_max44009_interrupt.c.
| uint8_t max44009_interrupt_read | ( | float * | lux | ) |
interrupt example read
| [out] | *lux | pointer to a converted lux buffer |
Definition at line 207 of file driver_max44009_interrupt.c.