LibDriver VEML7700
Loading...
Searching...
No Matches
veml7700 example driver function

veml7700 example driver modules More...

Collaboration diagram for veml7700 example driver function:

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

Detailed Description

veml7700 example driver modules

Macro Definition Documentation

◆ VEML7700_BASIC_DEFAULT_ALS_GAIN

#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.

◆ VEML7700_BASIC_DEFAULT_ALS_INTEGRATION_TIME

#define VEML7700_BASIC_DEFAULT_ALS_INTEGRATION_TIME   VEML7700_ALS_INTEGRATION_TIME_400MS

400ms

Definition at line 57 of file driver_veml7700_basic.h.

◆ VEML7700_BASIC_DEFAULT_ALS_PERSISTENCE

#define VEML7700_BASIC_DEFAULT_ALS_PERSISTENCE   VEML7700_ALS_PERSISTENCE_1

persistence protect number 1

Definition at line 58 of file driver_veml7700_basic.h.

◆ VEML7700_BASIC_DEFAULT_POWER_SAVING

#define VEML7700_BASIC_DEFAULT_POWER_SAVING   VEML7700_BOOL_DISABLE

disable power mode

Definition at line 60 of file driver_veml7700_basic.h.

◆ VEML7700_BASIC_DEFAULT_POWER_SAVING_MODE

#define VEML7700_BASIC_DEFAULT_POWER_SAVING_MODE   VEML7700_POWER_SAVING_MODE1

mode 1

Definition at line 59 of file driver_veml7700_basic.h.

◆ VEML7700_INTERRUPT_DEFAULT_ALS_GAIN

#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.

◆ VEML7700_INTERRUPT_DEFAULT_ALS_INTEGRATION_TIME

#define VEML7700_INTERRUPT_DEFAULT_ALS_INTEGRATION_TIME   VEML7700_ALS_INTEGRATION_TIME_400MS

400ms

Definition at line 55 of file driver_veml7700_interrupt.h.

◆ VEML7700_INTERRUPT_DEFAULT_ALS_PERSISTENCE

#define VEML7700_INTERRUPT_DEFAULT_ALS_PERSISTENCE   VEML7700_ALS_PERSISTENCE_1

persistence protect number 1

Definition at line 56 of file driver_veml7700_interrupt.h.

◆ VEML7700_INTERRUPT_DEFAULT_POWER_SAVING

#define VEML7700_INTERRUPT_DEFAULT_POWER_SAVING   VEML7700_BOOL_DISABLE

disable power mode

Definition at line 58 of file driver_veml7700_interrupt.h.

◆ VEML7700_INTERRUPT_DEFAULT_POWER_SAVING_MODE

#define VEML7700_INTERRUPT_DEFAULT_POWER_SAVING_MODE   VEML7700_POWER_SAVING_MODE1

mode 1

Definition at line 57 of file driver_veml7700_interrupt.h.

Function Documentation

◆ veml7700_basic_deinit()

uint8_t veml7700_basic_deinit ( void )

basic example deinit

Returns
status code
  • 0 success
  • 1 deinit failed
Note
none

Definition at line 205 of file driver_veml7700_basic.c.

Here is the call graph for this function:

◆ veml7700_basic_init()

uint8_t veml7700_basic_init ( veml7700_bool_t auto_range)

basic example init

Returns
status code
  • 0 success
  • 1 init failed
Note
none

Definition at line 48 of file driver_veml7700_basic.c.

Here is the call graph for this function:

◆ veml7700_basic_read()

uint8_t veml7700_basic_read ( double * lux)

basic example read

Parameters
[out]*luxpointer to a converted lux buffer
Returns
status code
  • 0 success
  • 1 read failed
Note
none

Definition at line 161 of file driver_veml7700_basic.c.

Here is the call graph for this function:

◆ veml7700_basic_read_white()

uint8_t veml7700_basic_read_white ( uint16_t * raw)

basic example read white

Parameters
[out]*rawpointer to a raw lux buffer
Returns
status code
  • 0 success
  • 1 read white failed
Note
none

Definition at line 184 of file driver_veml7700_basic.c.

Here is the call graph for this function:

◆ veml7700_interrupt_deinit()

uint8_t veml7700_interrupt_deinit ( void )

interrupt example deinit

Returns
status code
  • 0 success
  • 1 deinit failed
Note
none

Definition at line 250 of file driver_veml7700_interrupt.c.

Here is the call graph for this function:

◆ veml7700_interrupt_get_interrupt_status()

uint8_t veml7700_interrupt_get_interrupt_status ( veml7700_bool_t * low_threshold,
veml7700_bool_t * high_threshold )

interrupt example get interrupt status

Parameters
[out]*low_thresholdpointer to a low threshold buffer
[out]*high_thresholdpointer to a high threshold buffer
Returns
status code
  • 0 success
  • 1 get interrupt status failed
Note
none

Definition at line 229 of file driver_veml7700_interrupt.c.

Here is the call graph for this function:

◆ veml7700_interrupt_init()

uint8_t veml7700_interrupt_init ( uint16_t low_threshold,
uint16_t high_threshold )

interrupt example init

Parameters
[in]low_thresholdinterrupt low threshold
[in]high_thresholdinterrupt high threshold
Returns
status code
  • 0 success
  • 1 init failed
Note
none

Definition at line 50 of file driver_veml7700_interrupt.c.

Here is the call graph for this function:

◆ veml7700_interrupt_read()

uint8_t veml7700_interrupt_read ( double * lux)

interrupt example read

Parameters
[out]*luxpointer to a converted lux buffer
Returns
status code
  • 0 success
  • 1 read failed
Note
none

Definition at line 183 of file driver_veml7700_interrupt.c.

Here is the call graph for this function:

◆ veml7700_interrupt_read_white()

uint8_t veml7700_interrupt_read_white ( uint16_t * raw)

interrupt example read white

Parameters
[out]*rawpointer to a raw lux buffer
Returns
status code
  • 0 success
  • 1 read white failed
Note
none

Definition at line 206 of file driver_veml7700_interrupt.c.

Here is the call graph for this function: