[][src]Struct drone_cortex_m::drv::sys_tick::SysTick

pub struct SysTick<I: IntSysTick> { /* fields omitted */ }

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.

impl<I: IntSysTick> TimerStop for SysTick<I>[src]

Auto Trait Implementations

impl<I> Unpin for SysTick<I> where
    I: Unpin

impl<I> Send for SysTick<I>

impl<I> Sync for SysTick<I>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]