Embedded Artistry Framework
Embedded Systems C++ Framework
Classes | Namespaces | Macros | Variables
vl53l1x.hpp File Reference
#include <cstdint>
#include <driver/i2c.hpp>
#include <driver/time_of_flight.hpp>
#include <endian/endian.hpp>
#include <etl/list.h>
#include <etl/pool.h>
#include <mutex>
Include dependency graph for vl53l1x.hpp:
This graph shows which files directly or indirectly include this file:

Classes

class  embdrv::vl53l1x
 ST VL53L1X Time-of-Flight Sensor Driver. More...
 
struct  embdrv::vl53l1x::roi
 Parameters for custom user zones. More...
 

Namespaces

 embdrv
 Embedded framework drivers.
 

Macros

#define ENABLE_THREADING
 
#define VL53L1X_LOCK()   lock_.lock()
 
#define VL53L1X_UNLOCK()   lock_.unlock()
 

Variables

constexpr uint8_t embdrv::VL53L1X_DEFAULT_I2C_ADDR = 0x52
 Default I2C address of the VL53L1X part. More...
 

Class Documentation

◆ embdrv::vl53l1x::roi

struct embdrv::vl53l1x::roi

Parameters for custom user zones.

Each value must be between 0-15.

Class Members
uint8_t bottomRightX Defines the bottom-right X coordinate for the ROI.
uint8_t bottomRightY Defines the bottom-right X coordinate for the ROI.
uint8_t topLeftX Defines the top-left X coordinate for the ROI.
uint8_t topLeftY Defines the top-left Y coordinate for the ROI.

Macro Definition Documentation

◆ ENABLE_THREADING

#define ENABLE_THREADING

◆ VL53L1X_LOCK

#define VL53L1X_LOCK ( )    lock_.lock()

◆ VL53L1X_UNLOCK

#define VL53L1X_UNLOCK ( )    lock_.unlock()