Skip to main content

forced_recalibration_word

Function forced_recalibration_word 

Source
pub fn forced_recalibration_word(correction_ppm: Option<i32>) -> u16
Expand description

Builds the perform_forced_recalibration response word for a correction.

The inverse of forced_recalibration_correction_ppm.

§Arguments

  • correction_ppm - the signed correction in ppm, or None for a failed recalibration.

§Returns

The response word, correction + 0x8000, or FORCED_RECALIBRATION_FAILED.