pub struct DummyRealTimeCounter { /* private fields */ }
Trait Implementations§
source§impl RtcTimerCalibration for DummyRealTimeCounter
impl RtcTimerCalibration for DummyRealTimeCounter
source§fn set_clock_calibration(
&mut self,
source: RtcSource,
calibration: RtcCalibration,
prescaler: RtcPrescaler
)
fn set_clock_calibration( &mut self, source: RtcSource, calibration: RtcCalibration, prescaler: RtcPrescaler )
Set the clock source and calibration for this RTC device. Note that this function will also disable the clock until the next time you set it running (with, for example, the start() method :-).)
source§impl TimerControl for DummyRealTimeCounter
impl TimerControl for DummyRealTimeCounter
source§fn set_interrupt_period(&mut self, period: u16)
fn set_interrupt_period(&mut self, period: u16)
The RTC implementation of TimerControl handles periodic interrupts in a special way - it uses hardware support to count RTC events before generating interrupts instead of a software counter. This makes it more CPU and energy efficient than using one of the general purpose timers, but has the side effect that only certain values for period are acceptable, specifically: 4,8,16,32,64,128,256,512,1024,2048,4096,8192,16384,32768
source§fn set_count_max(&mut self, _max: u16)
fn set_count_max(&mut self, _max: u16)
Set the clock’s counter trigger
source§fn start(&self, handler: TimerIsrCallback)
fn start(&self, handler: TimerIsrCallback)
Start this timer. The given callback will be called periodically
when timer interrupts occur (see the interrupting(period) method.) Read more
source§fn reset_count(&mut self)
fn reset_count(&mut self)
Reset the timer’s current count value
Auto Trait Implementations§
impl Freeze for DummyRealTimeCounter
impl !RefUnwindSafe for DummyRealTimeCounter
impl !Send for DummyRealTimeCounter
impl !Sync for DummyRealTimeCounter
impl Unpin for DummyRealTimeCounter
impl !UnwindSafe for DummyRealTimeCounter
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