Skip to main content

allowed_during_measurement

Function allowed_during_measurement 

Source
pub fn allowed_during_measurement(command: u16) -> bool
Expand description

Returns whether a command may be sent while a periodic measurement is running.

This is the “during measurement” column of Table 9: only read_measurement, stop_periodic_measurement, set_ambient_pressure, and get_data_ready_status are allowed; every other command needs the sensor in idle mode.

§Arguments

  • command - one of the command words.

§Returns

true if the command is accepted during a periodic measurement.