#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_ina219_config_from_bits(
bits: u16,
out_config: *mut PamojaIna219Config,
) -> PamojaStatusExpand description
Parses a 16-bit INA219 configuration register value.
§Arguments
bits- the register value, as read from the part.out_config- receives the settings.
§Returns
PamojaStatus::Ok. Every register value decodes, so this fails only on a null pointer.
§Safety
out_config must point to a writable PamojaIna219Config.