Skip to main content

pamoja_ds18b20_config_byte

Function pamoja_ds18b20_config_byte 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_ds18b20_config_byte( bits: u8, out_byte: *mut u8, ) -> PamojaStatus
Expand description

Returns the configuration byte that selects a DS18B20 resolution.

§Returns

PamojaStatus::Ok on success, with *out_byte set, or PamojaStatus::InvalidArgument if bits is not 9, 10, 11, or 12.

§Safety

out_byte must point to a writable uint8_t.