Skip to main content

pamoja_calibration_apply

Function pamoja_calibration_apply 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_calibration_apply( calibration: *const PamojaCalibration, raw: f32, ) -> f32
Expand description

Converts a raw reading into calibrated units.

§Returns

The calibrated value, or NaN if calibration is null.

§Safety

calibration must be a live handle from a calibration constructor, or null.