[−][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][+]
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>,
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>,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,