pub fn new_us<T>(timeout: T, src_freq: u32) -> Self
    where
        T: Into<Nanoseconds>,
    {
        let timeout = timeout.into();
        let ticks: u32 = (timeout.0 as u64 * src_freq as u64 / 1_000_000_000_u64) as u32;
        Self::new_from_ticks(ticks)
    }
/// calculates RTC timer paramters based on the input period-based timeout.
calculates RTC timer paramters based on the input period-based timeout.
calculates RTC timer paramters based on the input period - based timeout .
pub fn new_us<T>(timeout: T, src_freq: u32) -> Self
    where
        T: Into<Nanoseconds>,
    {
        let timeout = timeout.into();
        let ticks: u32 = (timeout.0 as u64 * src_freq as u64 / 1_000_000_000_u64) as u32;
        Self::new_from_ticks(ticks)
    }
pub fn new_us < T > ( timeout : T , src_freq : u32 ) -> Self where T : Into < Nanoseconds > , { let timeout = timeout . into ( ) ; let ticks : u32 = ( timeout . 0 as u64 * src_freq as u64 / 1_000_000_000_u64 ) as u32 ; Self :: new_from_ticks ( ticks ) }
calculates RTC timer paramters based on the input period-based timeout.
calculates RTC timer paramters based on the input period - based timeout .
timeout
T
src_freq
u32
timeout
T
src_freq
u32