Function vl53l1::wait_measurement_data_ready
source · pub fn wait_measurement_data_ready<I, D, E>(
dev: &mut Device,
i2c: &mut I,
delay: &mut D
) -> Result<(), E>where
I: Write<Error = E> + WriteRead<Error = E>,
D: Delay,
Expand description
Polls on the device interrupt status until ranging data are ready.
This function blocks all other operations on the host as long as the function is not completed, because an internal polling is performed.