2026-03-15 4:58 PM
Hi, just wondering if these constants (specifically NONE and OR both being 0) in the ULD for VL53L8CX are correct
#define VL53L8CX_OPERATION_NONE ((uint8_t)0U)
#define VL53L8CX_OPERATION_OR ((uint8_t)0U)
#define VL53L8CX_OPERATION_AND ((uint8_t)2U)it look like it should be a sequence (0, 1, 2) so the repeated (0, 0, 2) appears out of place. It's hard to tell from the examples if this is intentional though.
Solved! Go to Solution.
2026-03-16 6:47 PM
Yes, the values are correct, there is no #define for 1.
2026-03-15 5:04 PM
It looks like the VL53L5CX has the same values
2026-03-15 11:57 PM
Hi
VL53L8CX interrupt thresholds could be set as below conditions.
• Resolution 4x4: using 1 threshold per zone (total of 16 thresholds)
• Resolution 4x4: using 2 thresholds per zone (total of 32 thresholds)
• Resolution 8x8: using 1 threshold per zone (total of 64 thresholds)
The interrupt function also support mathematic operation, but it works only for 4x4 – 2 threshold combinations per zone. The user can set a combination using several thresholds in one zone. you should set mathematic_operation as either OR or AND.
But for the 1st and 3rd trig method, it doesn't support mathematic operation, but the structure parameter mathematic_operation you need to initialize, here you should set NONE
Br
Zhiyuan.Han
2026-03-16 4:39 PM
Are the values correct? Both VL53L8CX_OPERATION_NONE and VL53L8CX_OPERATION_OR are supposed to be zero, and VL53L8CX_OPERATION_AND is 2? And there is no corresponding #define for 1
2026-03-16 6:47 PM
Yes, the values are correct, there is no #define for 1.