Zephyr API Documentation
4.4.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
13
14
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_SENSOR_APDS9253_H_
15
#define ZEPHYR_INCLUDE_DT_BINDINGS_SENSOR_APDS9253_H_
16
17
#include <
zephyr/dt-bindings/dt-util.h
>
18
25
32
#define APDS9253_RESOLUTION_20BIT_400MS 0
33
#define APDS9253_RESOLUTION_19BIT_200MS BIT(4)
34
#define APDS9253_RESOLUTION_18BIT_100MS BIT(5)
35
#define APDS9253_RESOLUTION_17BIT_50MS (BIT(5) | BIT(4))
36
#define APDS9253_RESOLUTION_16BIT_25MS BIT(6)
37
#define APDS9253_RESOLUTION_13BIT_3MS (BIT(6) | BIT(4))
39
46
#define APDS9253_MEASUREMENT_RATE_2000MS (BIT(2) | BIT(1) | BIT(0))
47
#define APDS9253_MEASUREMENT_RATE_1000MS (BIT(2) | BIT(0))
48
#define APDS9253_MEASUREMENT_RATE_500MS BIT(2)
49
#define APDS9253_MEASUREMENT_RATE_200MS (BIT(1) | BIT(0))
50
#define APDS9253_MEASUREMENT_RATE_100MS BIT(1)
51
#define APDS9253_MEASUREMENT_RATE_50MS BIT(0)
52
#define APDS9253_MEASUREMENT_RATE_25MS 0
54
61
#define APDS9253_GAIN_RANGE_18 BIT(2)
62
#define APDS9253_GAIN_RANGE_9 (BIT(1) | BIT(0))
63
#define APDS9253_GAIN_RANGE_6 BIT(1)
64
#define APDS9253_GAIN_RANGE_3 BIT(0)
65
#define APDS9253_GAIN_RANGE_1 0
67
69
70
#endif
/* ZEPHYR_INCLUDE_DT_BINDINGS_SENSOR_APDS9253_H_*/
dt-util.h
zephyr
dt-bindings
sensor
apds9253.h
Generated on
for Zephyr API Documentation by
1.16.1