#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_ds18b20_discover(
devices: *const c_char,
out_thermometers: *mut *mut PamojaDs18b20Thermometers,
) -> PamojaStatusExpand description
Lists every DS18B20 the kernel has found: one per 28- directory.
§Arguments
devices- the directory the kernel lists its 1-Wire devices in, or null for/sys/bus/w1/devices.out_thermometers- receives the list, sorted by directory name.
§Returns
PamojaStatus::Ok; PamojaStatus::InvalidArgument for a null out_thermometers or a
non-UTF-8 directory; or PamojaStatus::Io when the directory cannot be listed, which
usually means the 1-Wire overlay is off.
§Safety
devices must be a null-terminated string or null, and out_thermometers a writable
pointer or null.