Struct stm32f4xx_hal::timer::delay::SysDelay

source ·
pub struct SysDelay(/* private fields */);
Expand description

Timer as a delay provider (SysTick by default)

Implementations§

source§

impl SysDelay

source

pub fn release(self) -> Timer<SYST>

Releases the timer resource

source§

impl SysDelay

source

pub fn delay(&mut self, us: MicrosDurationU32)

Methods from Deref<Target = Timer<SYST>>§

source

pub fn configure(&mut self, clocks: &Clocks)

source

pub fn configure_external(&mut self, clocks: &Clocks)

source

pub fn listen(&mut self, event: SysEvent)

Starts listening for an event

source

pub fn unlisten(&mut self, event: SysEvent)

Stops listening for an event

source

pub fn configure(&mut self, clocks: &Clocks)

source

pub fn set_master_mode(&mut self, mode: TIM::Mms)

Trait Implementations§

source§

impl Delay<1000000> for SysDelay

§

type Error = Infallible

An error that might happen during waiting
source§

fn delay(&mut self, duration: MicrosDurationU32) -> Result<(), Self::Error>

Wait until timer duration has expired.
source§

impl DelayNs for SysDelay

source§

fn delay_ns(&mut self, ns: u32)

Pauses execution for at minimum ns nanoseconds. Pause can be longer if the implementation requires it due to precision/timing issues.
source§

fn delay_ms(&mut self, ms: u32)

Pauses execution for at minimum ms milliseconds. Pause can be longer if the implementation requires it due to precision/timing issues.
source§

fn delay_us(&mut self, us: u32)

Pauses execution for at minimum us microseconds. Pause can be longer if the implementation requires it due to precision/timing issues.
source§

impl Deref for SysDelay

§

type Target = Timer<SYST>

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl DerefMut for SysDelay

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl DelayMs<u16> for SysDelay

source§

fn delay_ms(&mut self, ms: u16)

Pauses execution for ms milliseconds
source§

impl DelayMs<u32> for SysDelay

source§

fn delay_ms(&mut self, ms: u32)

Pauses execution for ms milliseconds
source§

impl DelayMs<u8> for SysDelay

source§

fn delay_ms(&mut self, ms: u8)

Pauses execution for ms milliseconds
source§

impl DelayUs<u16> for SysDelay

source§

fn delay_us(&mut self, us: u16)

Pauses execution for us microseconds
source§

impl DelayUs<u32> for SysDelay

source§

fn delay_us(&mut self, us: u32)

Pauses execution for us microseconds
source§

impl DelayUs<u8> for SysDelay

source§

fn delay_us(&mut self, us: u8)

Pauses execution for us microseconds

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.