Skip to main content

pamoja_opt3001_config_from_bits

Function pamoja_opt3001_config_from_bits 

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

Parses a 16-bit OPT3001 configuration register value.

§Returns

PamojaStatus::Ok, with *out_config filled in. Every register value decodes, so this fails only on a null pointer.

§Safety

out_config must point to a writable PamojaOpt3001Config.