Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
vl53l0x.h File Reference

Custom channels and values for VL53L0X ToF Sensor. More...

Go to the source code of this file.

Macros

#define VL53L0X_RANGE_STATUS_RANGE_VALID   (0)
 
#define VL53L0X_RANGE_STATUS_SIGMA_FAIL   (1)
 
#define VL53L0X_RANGE_STATUS_SIGNAL_FAIL   (2)
 
#define VL53L0X_RANGE_STATUS_MIN_RANGE_FAIL   (3)
 
#define VL53L0X_RANGE_STATUS_PHASE_FAIL   (4)
 
#define VL53L0X_RANGE_STATUS_HARDWARE_FAIL   (5)
 
#define VL53L0X_RANGE_STATUS_NO_UPDATE   (255)
 

Enumerations

enum  sensor_channel_vl53l0x {
  SENSOR_CHAN_VL53L0X_RANGE_DMAX = SENSOR_CHAN_PRIV_START , SENSOR_CHAN_VL53L0X_SIGNAL_RATE_RTN_CPS , SENSOR_CHAN_VL53L0X_AMBIENT_RATE_RTN_CPS , SENSOR_CHAN_VL53L0X_EFFECTIVE_SPAD_RTN_COUNT ,
  SENSOR_CHAN_VL53L0X_RANGE_STATUS
}
 

Detailed Description

Custom channels and values for VL53L0X ToF Sensor.

These channels provide additional sensor data not covered by the standard Zephyr sensor channels. Application must include vl53l0x.h file to gain access to these channels.

Example usage:

printk("Status: %d\n", value.val1);
}
int sensor_channel_get(const struct device *dev, enum sensor_channel chan, struct sensor_value *val)
Get a reading from a sensor device.
static void printk(const char *fmt,...)
Print kernel debugging message.
Definition printk.h:51
Custom channels and values for VL53L0X ToF Sensor.
@ SENSOR_CHAN_VL53L0X_RANGE_STATUS
Definition vl53l0x.h:35

Macro Definition Documentation

◆ VL53L0X_RANGE_STATUS_HARDWARE_FAIL

#define VL53L0X_RANGE_STATUS_HARDWARE_FAIL   (5)

◆ VL53L0X_RANGE_STATUS_MIN_RANGE_FAIL

#define VL53L0X_RANGE_STATUS_MIN_RANGE_FAIL   (3)

◆ VL53L0X_RANGE_STATUS_NO_UPDATE

#define VL53L0X_RANGE_STATUS_NO_UPDATE   (255)

◆ VL53L0X_RANGE_STATUS_PHASE_FAIL

#define VL53L0X_RANGE_STATUS_PHASE_FAIL   (4)

◆ VL53L0X_RANGE_STATUS_RANGE_VALID

#define VL53L0X_RANGE_STATUS_RANGE_VALID   (0)

◆ VL53L0X_RANGE_STATUS_SIGMA_FAIL

#define VL53L0X_RANGE_STATUS_SIGMA_FAIL   (1)

◆ VL53L0X_RANGE_STATUS_SIGNAL_FAIL

#define VL53L0X_RANGE_STATUS_SIGNAL_FAIL   (2)

Enumeration Type Documentation

◆ sensor_channel_vl53l0x

Enumerator
SENSOR_CHAN_VL53L0X_RANGE_DMAX 
SENSOR_CHAN_VL53L0X_SIGNAL_RATE_RTN_CPS 
SENSOR_CHAN_VL53L0X_AMBIENT_RATE_RTN_CPS 
SENSOR_CHAN_VL53L0X_EFFECTIVE_SPAD_RTN_COUNT 
SENSOR_CHAN_VL53L0X_RANGE_STATUS