driver veml7700 interrupt header file
uint8_t veml7700_get_interrupt_status(veml7700_handle_t *handle, veml7700_bool_t *low_threshold, veml7700_bool_t *high_threshold)
get interrupt status
uint8_t veml7700_set_als_integration_time(veml7700_handle_t *handle, veml7700_als_integration_time_t t)
set als integration time
veml7700_bool_t
veml7700 bool enumeration definition
uint8_t veml7700_deinit(veml7700_handle_t *handle)
close the chip
uint8_t veml7700_set_als_interrupt(veml7700_handle_t *handle, veml7700_bool_t enable)
enable or disable als interrupt
uint8_t veml7700_read_white(veml7700_handle_t *handle, uint16_t *raw)
read white channel
uint8_t veml7700_init(veml7700_handle_t *handle)
initialize the chip
uint8_t veml7700_read_als(veml7700_handle_t *handle, uint16_t *raw, double *lux)
read als channel
uint8_t veml7700_set_als_mode(veml7700_handle_t *handle, veml7700_als_mode_t mode)
set als mode
uint8_t veml7700_set_als_gain(veml7700_handle_t *handle, veml7700_als_gain_t gain)
set als gain
struct veml7700_handle_s veml7700_handle_t
veml7700 handle structure definition
uint8_t veml7700_set_als_persistence(veml7700_handle_t *handle, veml7700_als_persistence_t persistence)
set als persistence
uint8_t veml7700_set_als_low_threshold(veml7700_handle_t *handle, uint16_t threshold)
set als low threshold
uint8_t veml7700_set_als_high_threshold(veml7700_handle_t *handle, uint16_t threshold)
set als high threshold
uint8_t veml7700_set_auto_range(veml7700_handle_t *handle, veml7700_bool_t enable)
set auto range
uint8_t veml7700_set_power_saving(veml7700_handle_t *handle, veml7700_bool_t enable)
enable or disable power saving
uint8_t veml7700_set_power_saving_mode(veml7700_handle_t *handle, veml7700_power_saving_mode_t mode)
set power saving mode
@ VEML7700_ALS_MODE_POWER_ON
uint8_t veml7700_interrupt_deinit(void)
interrupt example deinit
uint8_t veml7700_interrupt_init(uint16_t low_threshold, uint16_t high_threshold)
interrupt example init
uint8_t veml7700_interrupt_get_interrupt_status(veml7700_bool_t *low_threshold, veml7700_bool_t *high_threshold)
interrupt example get interrupt status
#define VEML7700_INTERRUPT_DEFAULT_ALS_INTEGRATION_TIME
#define VEML7700_INTERRUPT_DEFAULT_ALS_GAIN
veml7700 interrupt example default definition
#define VEML7700_INTERRUPT_DEFAULT_POWER_SAVING_MODE
uint8_t veml7700_interrupt_read(double *lux)
interrupt example read
uint8_t veml7700_interrupt_read_white(uint16_t *raw)
interrupt example read white
#define VEML7700_INTERRUPT_DEFAULT_ALS_PERSISTENCE
#define VEML7700_INTERRUPT_DEFAULT_POWER_SAVING
uint8_t veml7700_interface_iic_write(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)
interface iic bus write
void veml7700_interface_delay_ms(uint32_t ms)
interface delay ms
uint8_t veml7700_interface_iic_init(void)
interface iic bus init
void veml7700_interface_debug_print(const char *const fmt,...)
interface print format data
uint8_t veml7700_interface_iic_read(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)
interface iic bus read
uint8_t veml7700_interface_iic_deinit(void)
interface iic bus deinit
#define DRIVER_VEML7700_LINK_IIC_READ(HANDLE, FUC)
link iic_read function
#define DRIVER_VEML7700_LINK_DELAY_MS(HANDLE, FUC)
link delay_ms function
#define DRIVER_VEML7700_LINK_IIC_WRITE(HANDLE, FUC)
link iic_write function
#define DRIVER_VEML7700_LINK_DEBUG_PRINT(HANDLE, FUC)
link debug_print function
#define DRIVER_VEML7700_LINK_IIC_DEINIT(HANDLE, FUC)
link iic_deinit function
#define DRIVER_VEML7700_LINK_INIT(HANDLE, STRUCTURE)
initialize veml7700_handle_t structure
#define DRIVER_VEML7700_LINK_IIC_INIT(HANDLE, FUC)
link iic_init function