pub enum RoundTo {
Slower,
Faster,
}Expand description
Rounding mode for timer period/frequency configuration.
When configuring a timer, the exact requested period may not be achievable due to hardware limitations (prescaler and counter are integers). This enum controls how the driver rounds the configuration.
Variants§
Slower
Round towards a slower timer (higher period, lower frequency).
The actual period will be >= the requested period.
Faster
Round towards a faster timer (lower period, higher frequency).
The actual period will be <= the requested period.
Trait Implementations§
impl Copy for RoundTo
impl Eq for RoundTo
impl StructuralPartialEq for RoundTo
Auto Trait Implementations§
impl Freeze for RoundTo
impl RefUnwindSafe for RoundTo
impl Send for RoundTo
impl Sync for RoundTo
impl Unpin for RoundTo
impl UnwindSafe for RoundTo
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