2025-09-12 9:51 AM
Dear ST,
The VL53L8CH's example codes have demonstrated how the sensor can be controlled through set of APIs. However I am still not very sure about how can I switch between different working modes on-the-fly during runtime.
For example, assume I have set the sensor to work under CNH output mode, by using API from cnh_plugin
vl53lmz_cnh_init_config () and then vl53lmz_start_ranging ().
Then I need to change the mode back to basic ranging mode, i.e., I do not need CNH data output anymore, just want default data output. What should I do to cancel it? Do I just have to
vl53lmz_stop_ranging (), and vl53lmz_start_ranging () again?
Similar question exists for other modes like when working under motion indicator mode, and then again I need to switch to basic ranging mode (without CNH data or other plugins, etc.).
I did not find a clear answer from the examples provided. Your hints will be appreciated.
/Roland