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

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

SysTick driver.

Implementations

impl<I: ThrToken> 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: ThrToken> 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: ThrToken> Timer for SysTick<I>[src]

type Stop = Self

Timer stop handler.

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

Auto Trait Implementations

impl<I> Send for SysTick<I>

impl<I> Sync for SysTick<I>

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

Blanket Implementations

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

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

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

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

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

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

type Output = T

Should always be Self

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> 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.