#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_bmp280_calibration_new(
bytes: *const u8,
bytes_len: usize,
out_calibration: *mut *mut PamojaBmp280Calibration,
) -> PamojaStatusExpand description
Builds a BMP280 calibration from the 24 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_bmp280_calibration_free, or
PamojaStatus::InvalidArgument if the buffer is not 24 bytes.
§Safety
bytes must point to at least bytes_len readable bytes, and
out_calibration must point to a writable *mut PamojaBmp280Calibration.