pub fn typical_measurement_micros(
temperature: Oversampling,
pressure: Oversampling,
) -> u32Expand description
The typical time one measurement cycle takes, in microseconds.
1 ms, plus 2 ms per temperature sample, plus 2 ms per pressure sample and 0.5 ms, each term only for a measurement that is not skipped: the typical column of Table 13, row for row.
§Arguments
temperature- temperature oversampling.pressure- pressure oversampling.
§Returns
The typical measurement time in microseconds.
§Examples
use pamoja_sensors::bmp280::{typical_measurement_micros, Oversampling};
// Table 13's ultra low power row: pressure x1, temperature x1, 5.5 ms.
assert_eq!(typical_measurement_micros(Oversampling::X1, Oversampling::X1), 5_500);