Skip to main content

pamoja_hdc1080_config_from_register

Function pamoja_hdc1080_config_from_register 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_hdc1080_config_from_register( raw: u16, out_config: *mut PamojaHdc1080Config, ) -> PamojaStatus
Expand description

Parses an HDC1080 configuration register value.

§Returns

PamojaStatus::Ok on success, with *out_config filled in, or PamojaStatus::Codec if the humidity-resolution field carries the code the datasheet leaves undefined, which means the value did not come from a working part.

§Safety

out_config must point to a writable PamojaHdc1080Config.