[−][src]Struct drone_cortex_m::drv::sys_tick::SysTick
SysTick driver.
Methods
impl<I: IntSysTick> SysTick<I>
[src]
pub fn new(periph: SysTickPeriph, int: I) -> Self
[src]
Creates a new driver from the peripheral.
pub unsafe fn from_diverged(periph: SysTickDiverged, int: I) -> Self
[src]
Creates a new driver from the diverged peripheral.
Safety
Some of the Crt
register tokens can be still in use.
pub fn free(self) -> SysTickDiverged
[src]
Releases the peripheral.
pub fn set_pending(&self)
[src]
Change SysTick exception state to pending.
pub fn is_pending(&self) -> bool
[src]
Returns true
if SysTick exception is pending.
pub fn clear_pending(&self)
[src]
Removes the pending state from the SysTick exception.
impl<I: IntSysTick> SysTick<I>
[src]
pub fn int(&self) -> I
[src]
pub fn ctrl(&self) -> &Ctrl<Srt>
[src]
pub fn load(&self) -> &Load<Srt>
[src]
pub fn val(&self) -> &Val<Srt>
[src]
Trait Implementations
impl<I: IntSysTick> Timer for SysTick<I>
[src]
type Stop = Self
Timer stop handler.
ⓘImportant traits for TimerSleep<'a, T>fn sleep(&mut self, duration: u32) -> TimerSleep<Self>
[src]
ⓘImportant traits for TimerSleep<'a, T>
fn interval(
&mut self,
duration: u32
) -> TimerInterval<Self, Result<NonZeroUsize, TimerOverflow>>
[src]
&mut self,
duration: u32
) -> TimerInterval<Self, Result<NonZeroUsize, TimerOverflow>>
fn interval_skip(&mut self, duration: u32) -> TimerInterval<Self, NonZeroUsize>
[src]
impl<I: IntSysTick> TimerStop for SysTick<I>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,