Zephyr Project API 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
apds9253.h File Reference

Go to the source code of this file.

Macros

apds9253 resolution channel references
#define APDS9253_RESOLUTION_20BIT_400MS   0
 
#define APDS9253_RESOLUTION_19BIT_200MS   BIT(4)
 
#define APDS9253_RESOLUTION_18BIT_100MS   BIT(5) /* default */
 
#define APDS9253_RESOLUTION_17BIT_50MS   (BIT(5) | BIT(4))
 
#define APDS9253_RESOLUTION_16BIT_25MS   BIT(6)
 
#define APDS9253_RESOLUTION_13BIT_3MS   (BIT(6) | BIT(4))
 
apds9253 measurement rate
#define APDS9253_MEASUREMENT_RATE_2000MS   (BIT(2) | BIT(1) | BIT(0))
 
#define APDS9253_MEASUREMENT_RATE_1000MS   (BIT(2) | BIT(0))
 
#define APDS9253_MEASUREMENT_RATE_500MS   BIT(2)
 
#define APDS9253_MEASUREMENT_RATE_200MS   (BIT(1) | BIT(0))
 
#define APDS9253_MEASUREMENT_RATE_100MS   BIT(1) /* default */
 
#define APDS9253_MEASUREMENT_RATE_50MS   BIT(0)
 
#define APDS9253_MEASUREMENT_RATE_25MS   0
 
apds9253 gain range
#define APDS9253_GAIN_RANGE_18   BIT(2)
 
#define APDS9253_GAIN_RANGE_9   (BIT(1) | BIT(0))
 
#define APDS9253_GAIN_RANGE_6   BIT(1)
 
#define APDS9253_GAIN_RANGE_3   BIT(0) /* default */
 
#define APDS9253_GAIN_RANGE_1   0
 

Macro Definition Documentation

◆ APDS9253_GAIN_RANGE_1

#define APDS9253_GAIN_RANGE_1   0

◆ APDS9253_GAIN_RANGE_18

#define APDS9253_GAIN_RANGE_18   BIT(2)

◆ APDS9253_GAIN_RANGE_3

#define APDS9253_GAIN_RANGE_3   BIT(0) /* default */

◆ APDS9253_GAIN_RANGE_6

#define APDS9253_GAIN_RANGE_6   BIT(1)

◆ APDS9253_GAIN_RANGE_9

#define APDS9253_GAIN_RANGE_9   (BIT(1) | BIT(0))

◆ APDS9253_MEASUREMENT_RATE_1000MS

#define APDS9253_MEASUREMENT_RATE_1000MS   (BIT(2) | BIT(0))

◆ APDS9253_MEASUREMENT_RATE_100MS

#define APDS9253_MEASUREMENT_RATE_100MS   BIT(1) /* default */

◆ APDS9253_MEASUREMENT_RATE_2000MS

#define APDS9253_MEASUREMENT_RATE_2000MS   (BIT(2) | BIT(1) | BIT(0))

◆ APDS9253_MEASUREMENT_RATE_200MS

#define APDS9253_MEASUREMENT_RATE_200MS   (BIT(1) | BIT(0))

◆ APDS9253_MEASUREMENT_RATE_25MS

#define APDS9253_MEASUREMENT_RATE_25MS   0

◆ APDS9253_MEASUREMENT_RATE_500MS

#define APDS9253_MEASUREMENT_RATE_500MS   BIT(2)

◆ APDS9253_MEASUREMENT_RATE_50MS

#define APDS9253_MEASUREMENT_RATE_50MS   BIT(0)

◆ APDS9253_RESOLUTION_13BIT_3MS

#define APDS9253_RESOLUTION_13BIT_3MS   (BIT(6) | BIT(4))

◆ APDS9253_RESOLUTION_16BIT_25MS

#define APDS9253_RESOLUTION_16BIT_25MS   BIT(6)

◆ APDS9253_RESOLUTION_17BIT_50MS

#define APDS9253_RESOLUTION_17BIT_50MS   (BIT(5) | BIT(4))

◆ APDS9253_RESOLUTION_18BIT_100MS

#define APDS9253_RESOLUTION_18BIT_100MS   BIT(5) /* default */

◆ APDS9253_RESOLUTION_19BIT_200MS

#define APDS9253_RESOLUTION_19BIT_200MS   BIT(4)

◆ APDS9253_RESOLUTION_20BIT_400MS

#define APDS9253_RESOLUTION_20BIT_400MS   0