[][src]Struct gd32vf103xx_hal::delay::Delay

pub struct Delay<TIMER> where
    Timer<TIMER>: CountDown
{ /* fields omitted */ }

TIMER as a delay provider

Methods

impl Delay<TIMER0>[src]

pub fn new(timer: Timer<TIMER0>) -> Self[src]

Configures the timer as a delay provider

pub fn free(self) -> Timer<TIMER0>[src]

Releases the timer resource

impl Delay<TIMER1>[src]

pub fn new(timer: Timer<TIMER1>) -> Self[src]

Configures the timer as a delay provider

pub fn free(self) -> Timer<TIMER1>[src]

Releases the timer resource

impl Delay<TIMER2>[src]

pub fn new(timer: Timer<TIMER2>) -> Self[src]

Configures the timer as a delay provider

pub fn free(self) -> Timer<TIMER2>[src]

Releases the timer resource

impl Delay<TIMER3>[src]

pub fn new(timer: Timer<TIMER3>) -> Self[src]

Configures the timer as a delay provider

pub fn free(self) -> Timer<TIMER3>[src]

Releases the timer resource

impl Delay<TIMER4>[src]

pub fn new(timer: Timer<TIMER4>) -> Self[src]

Configures the timer as a delay provider

pub fn free(self) -> Timer<TIMER4>[src]

Releases the timer resource

impl Delay<TIMER5>[src]

pub fn new(timer: Timer<TIMER5>) -> Self[src]

Configures the timer as a delay provider

pub fn free(self) -> Timer<TIMER5>[src]

Releases the timer resource

impl Delay<TIMER6>[src]

pub fn new(timer: Timer<TIMER6>) -> Self[src]

Configures the timer as a delay provider

pub fn free(self) -> Timer<TIMER6>[src]

Releases the timer resource

Trait Implementations

impl DelayMs<u16> for Delay<TIMER0>[src]

impl DelayMs<u16> for Delay<TIMER1>[src]

impl DelayMs<u16> for Delay<TIMER2>[src]

impl DelayMs<u16> for Delay<TIMER3>[src]

impl DelayMs<u16> for Delay<TIMER4>[src]

impl DelayMs<u16> for Delay<TIMER5>[src]

impl DelayMs<u16> for Delay<TIMER6>[src]

impl DelayMs<u32> for Delay<TIMER0>[src]

impl DelayMs<u32> for Delay<TIMER1>[src]

impl DelayMs<u32> for Delay<TIMER2>[src]

impl DelayMs<u32> for Delay<TIMER3>[src]

impl DelayMs<u32> for Delay<TIMER4>[src]

impl DelayMs<u32> for Delay<TIMER5>[src]

impl DelayMs<u32> for Delay<TIMER6>[src]

impl DelayMs<u8> for Delay<TIMER0>[src]

impl DelayMs<u8> for Delay<TIMER1>[src]

impl DelayMs<u8> for Delay<TIMER2>[src]

impl DelayMs<u8> for Delay<TIMER3>[src]

impl DelayMs<u8> for Delay<TIMER4>[src]

impl DelayMs<u8> for Delay<TIMER5>[src]

impl DelayMs<u8> for Delay<TIMER6>[src]

impl DelayUs<u16> for Delay<TIMER0>[src]

impl DelayUs<u16> for Delay<TIMER1>[src]

impl DelayUs<u16> for Delay<TIMER2>[src]

impl DelayUs<u16> for Delay<TIMER3>[src]

impl DelayUs<u16> for Delay<TIMER4>[src]

impl DelayUs<u16> for Delay<TIMER5>[src]

impl DelayUs<u16> for Delay<TIMER6>[src]

impl DelayUs<u32> for Delay<TIMER0>[src]

impl DelayUs<u32> for Delay<TIMER1>[src]

impl DelayUs<u32> for Delay<TIMER2>[src]

impl DelayUs<u32> for Delay<TIMER3>[src]

impl DelayUs<u32> for Delay<TIMER4>[src]

impl DelayUs<u32> for Delay<TIMER5>[src]

impl DelayUs<u32> for Delay<TIMER6>[src]

impl DelayUs<u8> for Delay<TIMER0>[src]

impl DelayUs<u8> for Delay<TIMER1>[src]

impl DelayUs<u8> for Delay<TIMER2>[src]

impl DelayUs<u8> for Delay<TIMER3>[src]

impl DelayUs<u8> for Delay<TIMER4>[src]

impl DelayUs<u8> for Delay<TIMER5>[src]

impl DelayUs<u8> for Delay<TIMER6>[src]

Auto Trait Implementations

impl<TIMER> Send for Delay<TIMER> where
    TIMER: Send

impl<TIMER> Sync for Delay<TIMER> where
    TIMER: Sync

impl<TIMER> Unpin for Delay<TIMER> where
    TIMER: 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, 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.