Struct drone_cortexm::drv::sys_tick::SysTick [−][src]
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.
fn sleep(&mut self, duration: u32) -> TimerSleep<'_, Self>ⓘNotable traits for TimerSleep<'a, T>
impl<'a, T: TimerStop> Future for TimerSleep<'a, T> type Output = ();
[src]
Notable traits for TimerSleep<'a, T>
impl<'a, T: TimerStop> Future for TimerSleep<'a, T> type Output = ();
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]
&mut self,
duration: u32
) -> TimerInterval<'_, Self, NonZeroUsize>
impl<I: ThrToken> TimerStop for SysTick<I>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,