Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
veml7700.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 Andreas Kilian
3 * Copyright (c) 2024 Jeff Welder (Ellenby Technologies, Inc.)
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 */
7
8#ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_VEML7700_H_
9#define ZEPHYR_INCLUDE_DRIVERS_SENSOR_VEML7700_H_
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
18#define VEML7700_ALS_GAIN_ELEM_COUNT 4
22#define VEML7700_ALS_IT_ELEM_COUNT 6
23
30#define VEML7700_ALS_INT_LOW_MASK BIT(15)
37#define VEML7700_ALS_INT_HIGH_MASK BIT(14)
38
43 VEML7700_ALS_GAIN_1 = 0x00, /* 0b00 */
44 VEML7700_ALS_GAIN_2 = 0x01, /* 0b01 */
45 VEML7700_ALS_GAIN_1_8 = 0x02, /* 0b10 */
46 VEML7700_ALS_GAIN_1_4 = 0x03, /* 0b11 */
47};
48
59};
60
66 VEML7700_ALS_PERS_1 = 0x00, /* 0b00 */
67 VEML7700_ALS_PERS_2 = 0x01, /* 0b01 */
68 VEML7700_ALS_PERS_4 = 0x02, /* 0b10 */
69 VEML7700_ALS_PERS_8 = 0x03, /* 0b11 */
70};
71
118};
119
137
146
158};
159
160#ifdef __cplusplus
161}
162#endif
163
164#endif /* ZEPHYR_INCLUDE_DRIVERS_SENSOR_VEML7700_H_ */
@ SENSOR_ATTR_PRIV_START
This and higher values are sensor specific.
Definition: sensor.h:356
@ SENSOR_CHAN_PRIV_START
This and higher values are sensor specific.
Definition: sensor.h:208
veml7700_als_it
VEML7700 integration time options for ambient light measurements.
Definition: veml7700.h:52
@ VEML7700_ALS_IT_100
Definition: veml7700.h:55
@ VEML7700_ALS_IT_25
Definition: veml7700.h:53
@ VEML7700_ALS_IT_400
Definition: veml7700.h:57
@ VEML7700_ALS_IT_800
Definition: veml7700.h:58
@ VEML7700_ALS_IT_200
Definition: veml7700.h:56
@ VEML7700_ALS_IT_50
Definition: veml7700.h:54
veml7700_int_mode
VEML7700 ALS interrupt persistence protect number options.
Definition: veml7700.h:64
@ VEML7700_ALS_PERS_8
Definition: veml7700.h:69
@ VEML7700_ALS_PERS_1
Definition: veml7700.h:66
@ VEML7700_ALS_PERS_4
Definition: veml7700.h:68
@ VEML7700_INT_DISABLED
Definition: veml7700.h:65
@ VEML7700_ALS_PERS_2
Definition: veml7700.h:67
sensor_channel_veml7700
VEML7700 specific sensor channels.
Definition: veml7700.h:123
@ SENSOR_CHAN_VEML7700_INTERRUPT
This channel is used to query the ALS interrupt state (ALS_INT).
Definition: veml7700.h:157
@ SENSOR_CHAN_VEML7700_WHITE_RAW_COUNTS
Channel for white light sensor values.
Definition: veml7700.h:145
@ SENSOR_CHAN_VEML7700_RAW_COUNTS
Channel for raw ALS sensor values.
Definition: veml7700.h:136
sensor_attribute_veml7700
VEML7700 specific sensor attributes.
Definition: veml7700.h:88
@ SENSOR_ATTR_VEML7700_ITIME
Integration time setting for ALS measurements (ALS_IT).
Definition: veml7700.h:100
@ SENSOR_ATTR_VEML7700_INT_MODE
Enable or disable use of ALS interrupt (ALS_INT_EN and ALS_PERS).
Definition: veml7700.h:117
@ SENSOR_ATTR_VEML7700_GAIN
Gain setting for ALS measurements (ALS_GAIN).
Definition: veml7700.h:94
veml7700_als_gain
VEML7700 gain options for ambient light measurements.
Definition: veml7700.h:42
@ VEML7700_ALS_GAIN_1_4
Definition: veml7700.h:46
@ VEML7700_ALS_GAIN_1
Definition: veml7700.h:43
@ VEML7700_ALS_GAIN_2
Definition: veml7700.h:44
@ VEML7700_ALS_GAIN_1_8
Definition: veml7700.h:45