pub async fn scan_with<I: I2c>(
bus: &mut I,
request: ScanRequest,
out: &mut [u8],
) -> Result<usize, Status>Expand description
Probe every address in request’s range with a one-octet read,
writing the addresses that acknowledged into out in ascending order
and returning how many.
An address that does not acknowledge is absent; any other failure ends the scan, because a bus that has just reported an error is not one whose silence means anything.