pub struct CalibrationOptions {
pub channel: usize,
pub threshold: Option<f64>,
pub target_pulses: usize,
pub min_delay_s: f64,
pub max_delay_s: f64,
pub refractory_s: f64,
pub timeout: Duration,
}Expand description
Options controlling calibrate_streams.
Fields§
§channel: usizeZero-based channel index on the device stream that carries the
calibration pulse (default: 0).
threshold: Option<f64>Optional explicit rising-edge threshold. When None, the midpoint
between the observed baseline and peak is computed automatically.
target_pulses: usizeTarget number of matched pulses to collect before returning (default: 20).
min_delay_s: f64Minimum plausible delay in seconds (default: -0.05, allowing slight
negative offsets if the reference itself is delayed).
max_delay_s: f64Maximum plausible delay in seconds (default: 0.50).
refractory_s: f64Minimum refractory interval between two detected device rising edges in
seconds (default: 0.05).
timeout: DurationMaximum total wall-clock time to wait for calibration pulses (default: 30 s).
Trait Implementations§
Source§impl Clone for CalibrationOptions
impl Clone for CalibrationOptions
Source§impl Debug for CalibrationOptions
impl Debug for CalibrationOptions
Auto Trait Implementations§
impl Forget for CalibrationOptions
impl Freeze for CalibrationOptions
impl Move for CalibrationOptions
impl RefUnwindSafe for CalibrationOptions
impl Send for CalibrationOptions
impl Sync for CalibrationOptions
impl Unpin for CalibrationOptions
impl UnsafeUnpin for CalibrationOptions
impl UnwindSafe for CalibrationOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more