![]() |
LibDriver VEML7700
|
veml7700 example driver modules More...
Macros | |
| #define | VEML7700_BASIC_DEFAULT_ALS_GAIN VEML7700_ALS_GAIN_1 |
| veml7700 basic example default definition | |
| #define | VEML7700_BASIC_DEFAULT_ALS_INTEGRATION_TIME VEML7700_ALS_INTEGRATION_TIME_400MS |
| #define | VEML7700_BASIC_DEFAULT_ALS_PERSISTENCE VEML7700_ALS_PERSISTENCE_1 |
| #define | VEML7700_BASIC_DEFAULT_POWER_SAVING_MODE VEML7700_POWER_SAVING_MODE1 |
| #define | VEML7700_BASIC_DEFAULT_POWER_SAVING VEML7700_BOOL_DISABLE |
| #define | VEML7700_INTERRUPT_DEFAULT_ALS_GAIN VEML7700_ALS_GAIN_1 |
| veml7700 interrupt example default definition | |
| #define | VEML7700_INTERRUPT_DEFAULT_ALS_INTEGRATION_TIME VEML7700_ALS_INTEGRATION_TIME_400MS |
| #define | VEML7700_INTERRUPT_DEFAULT_ALS_PERSISTENCE VEML7700_ALS_PERSISTENCE_1 |
| #define | VEML7700_INTERRUPT_DEFAULT_POWER_SAVING_MODE VEML7700_POWER_SAVING_MODE1 |
| #define | VEML7700_INTERRUPT_DEFAULT_POWER_SAVING VEML7700_BOOL_DISABLE |
Functions | |
| uint8_t | veml7700_basic_init (veml7700_bool_t auto_range) |
| basic example init | |
| uint8_t | veml7700_basic_deinit (void) |
| basic example deinit | |
| uint8_t | veml7700_basic_read (double *lux) |
| basic example read | |
| uint8_t | veml7700_basic_read_white (uint16_t *raw) |
| basic example read white | |
| uint8_t | veml7700_interrupt_init (uint16_t low_threshold, uint16_t high_threshold) |
| interrupt example init | |
| uint8_t | veml7700_interrupt_deinit (void) |
| interrupt example deinit | |
| uint8_t | veml7700_interrupt_read (double *lux) |
| interrupt example read | |
| uint8_t | veml7700_interrupt_read_white (uint16_t *raw) |
| interrupt example read white | |
| uint8_t | veml7700_interrupt_get_interrupt_status (veml7700_bool_t *low_threshold, veml7700_bool_t *high_threshold) |
| interrupt example get interrupt status | |
veml7700 example driver modules
| #define VEML7700_BASIC_DEFAULT_ALS_GAIN VEML7700_ALS_GAIN_1 |
veml7700 basic example default definition
gain 1
Definition at line 56 of file driver_veml7700_basic.h.
| #define VEML7700_BASIC_DEFAULT_ALS_INTEGRATION_TIME VEML7700_ALS_INTEGRATION_TIME_400MS |
400ms
Definition at line 57 of file driver_veml7700_basic.h.
| #define VEML7700_BASIC_DEFAULT_ALS_PERSISTENCE VEML7700_ALS_PERSISTENCE_1 |
persistence protect number 1
Definition at line 58 of file driver_veml7700_basic.h.
| #define VEML7700_BASIC_DEFAULT_POWER_SAVING VEML7700_BOOL_DISABLE |
disable power mode
Definition at line 60 of file driver_veml7700_basic.h.
| #define VEML7700_BASIC_DEFAULT_POWER_SAVING_MODE VEML7700_POWER_SAVING_MODE1 |
mode 1
Definition at line 59 of file driver_veml7700_basic.h.
| #define VEML7700_INTERRUPT_DEFAULT_ALS_GAIN VEML7700_ALS_GAIN_1 |
veml7700 interrupt example default definition
gain 1
Definition at line 54 of file driver_veml7700_interrupt.h.
| #define VEML7700_INTERRUPT_DEFAULT_ALS_INTEGRATION_TIME VEML7700_ALS_INTEGRATION_TIME_400MS |
400ms
Definition at line 55 of file driver_veml7700_interrupt.h.
| #define VEML7700_INTERRUPT_DEFAULT_ALS_PERSISTENCE VEML7700_ALS_PERSISTENCE_1 |
persistence protect number 1
Definition at line 56 of file driver_veml7700_interrupt.h.
| #define VEML7700_INTERRUPT_DEFAULT_POWER_SAVING VEML7700_BOOL_DISABLE |
disable power mode
Definition at line 58 of file driver_veml7700_interrupt.h.
| #define VEML7700_INTERRUPT_DEFAULT_POWER_SAVING_MODE VEML7700_POWER_SAVING_MODE1 |
mode 1
Definition at line 57 of file driver_veml7700_interrupt.h.
| uint8_t veml7700_basic_deinit | ( | void | ) |
basic example deinit
Definition at line 205 of file driver_veml7700_basic.c.
| uint8_t veml7700_basic_init | ( | veml7700_bool_t | auto_range | ) |
basic example init
Definition at line 48 of file driver_veml7700_basic.c.
| uint8_t veml7700_basic_read | ( | double * | lux | ) |
basic example read
| [out] | *lux | pointer to a converted lux buffer |
Definition at line 161 of file driver_veml7700_basic.c.
| uint8_t veml7700_basic_read_white | ( | uint16_t * | raw | ) |
basic example read white
| [out] | *raw | pointer to a raw lux buffer |
Definition at line 184 of file driver_veml7700_basic.c.
| uint8_t veml7700_interrupt_deinit | ( | void | ) |
interrupt example deinit
Definition at line 250 of file driver_veml7700_interrupt.c.
| uint8_t veml7700_interrupt_get_interrupt_status | ( | veml7700_bool_t * | low_threshold, |
| veml7700_bool_t * | high_threshold ) |
interrupt example get interrupt status
| [out] | *low_threshold | pointer to a low threshold buffer |
| [out] | *high_threshold | pointer to a high threshold buffer |
Definition at line 229 of file driver_veml7700_interrupt.c.
| uint8_t veml7700_interrupt_init | ( | uint16_t | low_threshold, |
| uint16_t | high_threshold ) |
interrupt example init
| [in] | low_threshold | interrupt low threshold |
| [in] | high_threshold | interrupt high threshold |
Definition at line 50 of file driver_veml7700_interrupt.c.
| uint8_t veml7700_interrupt_read | ( | double * | lux | ) |
interrupt example read
| [out] | *lux | pointer to a converted lux buffer |
Definition at line 183 of file driver_veml7700_interrupt.c.
| uint8_t veml7700_interrupt_read_white | ( | uint16_t * | raw | ) |
interrupt example read white
| [out] | *raw | pointer to a raw lux buffer |
Definition at line 206 of file driver_veml7700_interrupt.c.