18#define VL53L1X_ADDR_7BIT 0x29u
19#define VL53L1X_MODEL_ID 0xEACCu
22 int32_t (*write)(
void *h, uint16_t reg,
const uint8_t *d, uint16_t len);
23 int32_t (*read) (
void *h, uint16_t reg, uint8_t *d, uint16_t len);
24 void (*delay_ms)(uint32_t
ms);
Range status after the ULD mapping: 0 valid, 1 sigma fail, 2 signal fail, 4 out of bounds,...
uint16_t signal_kcps
peak signal rate (MCPS x 1000 / 128 x 8)
uint8_t int_pol
data-ready level on GPIO__TIO_HV_STATUS bit 0
int32_t vl53_init(vl53_t *d, const vl53_bus_t *bus, uint16_t budget_ms)
0 = sensor found and ranging; < 0 = absent or error (the board works without it)
int32_t vl53_poll(vl53_t *d, vl53_sample_t *s)
1 = new sample in *s, 0 = none yet, < 0 = bus error