/// Change the period of the timer.
Change the period of the timer.
Change the period of the timer .
pub fn change_period<D: DurationTicks>(
        &self,
        block_time: D,
        new_period: D,
    ) -> Result<(), FreeRtosError> {
        unsafe {
            if freertos_rs_timer_change_period(
                self.handle,
                block_time.to_ticks(),
                new_period.to_ticks(),
            ) == 0
            {
                Ok(())
            } else {
                Err(FreeRtosError::Timeout)
            }
        }
    }
pub fn change_period < D : DurationTicks > ( & self , block_time : D , new_period : D , ) -> Result < ( ) , FreeRtosError > { unsafe { if freertos_rs_timer_change_period ( self . handle , block_time . to_ticks ( ) , new_period . to_ticks ( ) , ) == 0 { Ok ( ( ) ) } else { Err ( FreeRtosError :: Timeout ) } } }
Change the period of the timer.
Change the period of the timer .
&self
block_time
D
new_period
D