Struct pygamer::rtc::TimerParams
source ·
[−]pub struct TimerParams {
pub divider: PRESCALER_A,
pub cycles: u32,
}
Expand description
Helper type for computing cycles and divider given frequency
Fields
divider: PRESCALER_A
cycles: u32
Implementations
calculates RTC timer paramters based on the input frequency-based timeout.
calculates RTC timer paramters based on the input period-based timeout.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TimerParams
impl Send for TimerParams
impl Sync for TimerParams
impl Unpin for TimerParams
impl UnwindSafe for TimerParams
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Casts the value.
OverflowingCasts the value.
Casts the value.
Casts the value.
Casts the value.
UnwrappedCasts the value.
Casts the value.
WrappingCasts the value.