autd3_driver/defined/freq/
float.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::{kHz, Freq, Hz};

impl std::ops::Mul<Hz> for f32 {
    type Output = Freq<f32>;

    fn mul(self, _rhs: Hz) -> Self::Output {
        Self::Output { freq: self }
    }
}

impl std::ops::Mul<kHz> for f32 {
    type Output = Freq<f32>;

    fn mul(self, _rhs: kHz) -> Self::Output {
        Self::Output { freq: self * 1e3 }
    }
}