#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_bme280_calibration_new(
temp_press: *const u8,
temp_press_len: usize,
humidity: *const u8,
humidity_len: usize,
out_calibration: *mut *mut PamojaBme280Calibration,
) -> PamojaStatusExpand description
Builds a BME280 calibration from the bytes read out of its registers.
§Returns
PamojaStatus::Ok on success, with *out_calibration set to a new handle
the caller must release with pamoja_bme280_calibration_free, or
PamojaStatus::InvalidArgument if either buffer is the wrong length.
§Safety
temp_press must point to at least temp_press_len readable bytes and
humidity to at least humidity_len, and out_calibration must point to a
writable *mut PamojaBme280Calibration.