ESPHome 2026.12.0-dev
Loading...
Searching...
No Matches
esphome::vl53l4cx Namespace Reference

Data Structures

class  VL53L4CXSensor
 VL53L4CX multi-target time-of-flight sensor, driven by ST's driver (esphome-libs/VL53L4CX). More...
 

Enumerations

enum  Target : uint8_t { TARGET_NEAREST , TARGET_FARTHEST , TARGET_STRONGEST }
 

Functions

 ESPHOME_LOG_TAG (TAG, "vl53l4cx")
 
 PROGMEM_STRING_TABLE (TargetStrings, "nearest", "farthest", "strongest")
 
 PROGMEM_STRING_TABLE (DistanceModeStrings, "medium", "long")
 
int32_t select_distance_mm (const VL53L4CX_MultiRangingData_t &data, Target target, uint16_t min_distance_mm, int16_t offset_mm)
 Distance in mm of the chosen valid target at or beyond min_distance_mm, or -1.
 

Enumeration Type Documentation

◆ Target

enum esphome::vl53l4cx::Target : uint8_t
Enumerator
TARGET_NEAREST 
TARGET_FARTHEST 
TARGET_STRONGEST 

Definition at line 13 of file vl53l4cx.h.

Function Documentation

◆ ESPHOME_LOG_TAG()

esphome::vl53l4cx::ESPHOME_LOG_TAG ( TAG ,
"vl53l4cx"  )

◆ PROGMEM_STRING_TABLE() [1/2]

esphome::vl53l4cx::PROGMEM_STRING_TABLE ( DistanceModeStrings ,
"medium" ,
"long"  )

◆ PROGMEM_STRING_TABLE() [2/2]

esphome::vl53l4cx::PROGMEM_STRING_TABLE ( TargetStrings ,
"nearest" ,
"farthest" ,
"strongest"  )

◆ select_distance_mm()

int32_t esphome::vl53l4cx::select_distance_mm ( const VL53L4CX_MultiRangingData_t & data,
Target target,
uint16_t min_distance_mm,
int16_t offset_mm )

Distance in mm of the chosen valid target at or beyond min_distance_mm, or -1.

Definition at line 264 of file vl53l4cx.cpp.