Skip to main content

pamoja_ds18b20_thermometer_at

Function pamoja_ds18b20_thermometer_at 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_ds18b20_thermometer_at( path: *const c_char, out_thermometer: *mut *mut PamojaDs18b20Thermometer, ) -> PamojaStatus
Expand description

Names a DS18B20 by the path of its w1_slave file, for a system that mounts sysfs elsewhere or a test that writes the file itself.

§Arguments

  • path - the file to read.
  • out_thermometer - receives the thermometer.

§Returns

As pamoja_ds18b20_thermometer_new.

§Safety

path must be a null-terminated string or null, and out_thermometer a writable pointer or null.