pub fn single_shot(repeatability: Repeatability, clock_stretching: bool) -> u16Expand description
Returns the single-shot measurement command for a repeatability and clock mode.
With clock stretching the part holds SCL low until the result is ready, so the read that follows the command blocks instead of being NACKed.
§Arguments
repeatability- the repeatability to measure at.clock_stretching- whether the part may stretch the clock during the read.
§Returns
The 16-bit command word, one of the SINGLE_SHOT_* constants in command.