Struct serpente::rtc::TimerParams [−][src]
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.