Struct alt_stm32f30x_hal::timer::tim2::Timer[][src]

pub struct Timer<C1: ChState, C2: ChState, C3: ChState, C4: ChState> { /* fields omitted */ }

Timer impl

Methods

impl Timer<ChannelFree, ChannelFree, ChannelFree, ChannelFree>
[src]

Creates new channel

Releases the TIM peripheral

impl<C1: ChState, C2: ChState, C3: ChState, C4: ChState> Timer<C1, C2, C3, C4>
[src]

Stop timer and reset frequency (doesn't start/enable)

Starts listening for an event

Stops listening for an event

Enable timer

impl Timer<ChannelFree, ChannelFree, ChannelFree, ChannelFree>
[src]

impl<C2: ChState, C3: ChState, C4: ChState> Timer<ChannelFree, C2, C3, C4>
[src]

Get channel 1

impl<C2: ChState, C3: ChState, C4: ChState> Timer<ChannelTaken, C2, C3, C4>
[src]

Return channel 1 back

impl<C1: ChState, C3: ChState, C4: ChState> Timer<C1, ChannelFree, C3, C4>
[src]

Take channel 2

impl<C1: ChState, C3: ChState, C4: ChState> Timer<C1, ChannelTaken, C3, C4>
[src]

Return channel 2 back

impl<C1: ChState, C2: ChState, C4: ChState> Timer<C1, C2, ChannelFree, C4>
[src]

Take channel 3

impl<C1: ChState, C2: ChState, C4: ChState> Timer<C1, C2, ChannelTaken, C4>
[src]

Return channel 3 back

impl<C1: ChState, C2: ChState, C3: ChState> Timer<C1, C2, C3, ChannelFree>
[src]

Take channel 4

impl<C1: ChState, C2: ChState, C3: ChState> Timer<C1, C2, C3, ChannelTaken>
[src]

Return channel back

Trait Implementations

impl<C1: ChState, C2: ChState, C3: ChState, C4: ChState> Periodic for Timer<C1, C2, C3, C4>
[src]

impl<C1: ChState, C2: ChState, C3: ChState, C4: ChState> CountDown for Timer<C1, C2, C3, C4>
[src]

The unit of time used by this timer

Starts a new count down

Non-blockingly "waits" until the count down finishes Read more

Auto Trait Implementations

impl<C1, C2, C3, C4> Send for Timer<C1, C2, C3, C4> where
    C1: Send,
    C2: Send,
    C3: Send,
    C4: Send

impl<C1, C2, C3, C4> !Sync for Timer<C1, C2, C3, C4>