Zephyr API Documentation
4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
apds9253.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2017 Intel Corporation
3
* Copyright (c) 2018 PHYTEC Messtechnik GmbH
4
*
5
* SPDX-License-Identifier: Apache-2.0
6
*/
7
8
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_SENSOR_APDS9253_H_
9
#define ZEPHYR_INCLUDE_DT_BINDINGS_SENSOR_APDS9253_H_
10
11
#include <
zephyr/dt-bindings/dt-util.h
>
12
18
#define APDS9253_RESOLUTION_20BIT_400MS 0
19
#define APDS9253_RESOLUTION_19BIT_200MS BIT(4)
20
#define APDS9253_RESOLUTION_18BIT_100MS BIT(5)
/* default */
21
#define APDS9253_RESOLUTION_17BIT_50MS (BIT(5) | BIT(4))
22
#define APDS9253_RESOLUTION_16BIT_25MS BIT(6)
23
#define APDS9253_RESOLUTION_13BIT_3MS (BIT(6) | BIT(4))
24
32
#define APDS9253_MEASUREMENT_RATE_2000MS (BIT(2) | BIT(1) | BIT(0))
33
#define APDS9253_MEASUREMENT_RATE_1000MS (BIT(2) | BIT(0))
34
#define APDS9253_MEASUREMENT_RATE_500MS BIT(2)
35
#define APDS9253_MEASUREMENT_RATE_200MS (BIT(1) | BIT(0))
36
#define APDS9253_MEASUREMENT_RATE_100MS BIT(1)
/* default */
37
#define APDS9253_MEASUREMENT_RATE_50MS BIT(0)
38
#define APDS9253_MEASUREMENT_RATE_25MS 0
39
47
#define APDS9253_GAIN_RANGE_18 BIT(2)
48
#define APDS9253_GAIN_RANGE_9 (BIT(1) | BIT(0))
49
#define APDS9253_GAIN_RANGE_6 BIT(1)
50
#define APDS9253_GAIN_RANGE_3 BIT(0)
/* default */
51
#define APDS9253_GAIN_RANGE_1 0
52
55
#endif
/* ZEPHYR_INCLUDE_DT_BINDINGS_SENSOR_APDS9253_H_*/
dt-util.h
zephyr
dt-bindings
sensor
apds9253.h
Generated on Sat Nov 23 2024 06:03:07 for Zephyr API Documentation by
1.12.0