#[unsafe(no_mangle)]pub extern "C" fn pamoja_tmp117_sim_reporting(
address: u8,
celsius: f32,
) -> *mut PamojaI2cPartExpand description
Creates a simulated TMP117 that reads what it is asked to. Its configuration register keeps the flags the part sets for itself, with the data-ready flag set.
§Arguments
address- the address it answers to.celsius- the temperature it reports, which lands on the nearest 7.8125 millidegrees.
§Returns
The part, which the caller releases with crate::hal::pamoja_i2c_part_free.