[−][src]Struct nucleo_f042k6::timers::Timer
Hardware timers
Methods
impl Timer<SYST>
[src]
impl Timer<SYST>
pub fn syst<T>(syst: SYST, timeout: T, rcc: &Rcc) -> Timer<SYST> where | [src] |
Configures the SYST clock as a periodic count down timer
pub fn listen(&mut self, event: &Event) | [src] |
Starts listening for an event
pub fn unlisten(&mut self, event: &Event) | [src] |
Stops listening for an event
impl Timer<TIM1>
[src]
impl Timer<TIM1>
pub fn tim1<T>(tim: TIM1, timeout: T, rcc: &mut Rcc) -> Timer<TIM1> where | [src] |
Configures a TIM peripheral as a periodic count down timer
pub fn listen(&mut self, event: Event) | [src] |
Starts listening for an event
pub fn unlisten(&mut self, event: Event) | [src] |
Stops listening for an event
pub fn release(self) -> TIM1 | [src] |
Releases the TIM peripheral
impl Timer<TIM3>
[src]
impl Timer<TIM3>
pub fn tim3<T>(tim: TIM3, timeout: T, rcc: &mut Rcc) -> Timer<TIM3> where | [src] |
Configures a TIM peripheral as a periodic count down timer
pub fn listen(&mut self, event: Event) | [src] |
Starts listening for an event
pub fn unlisten(&mut self, event: Event) | [src] |
Stops listening for an event
pub fn release(self) -> TIM3 | [src] |
Releases the TIM peripheral
impl Timer<TIM14>
[src]
impl Timer<TIM14>
pub fn tim14<T>(tim: TIM14, timeout: T, rcc: &mut Rcc) -> Timer<TIM14> where | [src] |
Configures a TIM peripheral as a periodic count down timer
pub fn listen(&mut self, event: Event) | [src] |
Starts listening for an event
pub fn unlisten(&mut self, event: Event) | [src] |
Stops listening for an event
pub fn release(self) -> TIM14 | [src] |
Releases the TIM peripheral
impl Timer<TIM16>
[src]
impl Timer<TIM16>
pub fn tim16<T>(tim: TIM16, timeout: T, rcc: &mut Rcc) -> Timer<TIM16> where | [src] |
Configures a TIM peripheral as a periodic count down timer
pub fn listen(&mut self, event: Event) | [src] |
Starts listening for an event
pub fn unlisten(&mut self, event: Event) | [src] |
Stops listening for an event
pub fn release(self) -> TIM16 | [src] |
Releases the TIM peripheral
impl Timer<TIM17>
[src]
impl Timer<TIM17>
pub fn tim17<T>(tim: TIM17, timeout: T, rcc: &mut Rcc) -> Timer<TIM17> where | [src] |
Configures a TIM peripheral as a periodic count down timer
pub fn listen(&mut self, event: Event) | [src] |
Starts listening for an event
pub fn unlisten(&mut self, event: Event) | [src] |
Stops listening for an event
pub fn release(self) -> TIM17 | [src] |
Releases the TIM peripheral
impl Timer<TIM2>
[src]
impl Timer<TIM2>
pub fn tim2<T>(tim: TIM2, timeout: T, rcc: &mut Rcc) -> Timer<TIM2> where | [src] |
Configures a TIM peripheral as a periodic count down timer
pub fn listen(&mut self, event: Event) | [src] |
Starts listening for an event
pub fn unlisten(&mut self, event: Event) | [src] |
Stops listening for an event
pub fn release(self) -> TIM2 | [src] |
Releases the TIM peripheral
Trait Implementations
impl CountDown for Timer<TIM16>
[src]
impl CountDown for Timer<TIM16>
type Time = Hertz
The unit of time used by this timer
fn start<T>(&mut self, timeout: T) where | [src] |
Start the timer with a timeout
fn wait(&mut self) -> Result<(), Error<Void>> | [src] |
Return Ok
if the timer has wrapped
Automatically clears the flag and restarts the time
impl CountDown for Timer<TIM17>
[src]
impl CountDown for Timer<TIM17>
type Time = Hertz
The unit of time used by this timer
fn start<T>(&mut self, timeout: T) where | [src] |
Start the timer with a timeout
fn wait(&mut self) -> Result<(), Error<Void>> | [src] |
Return Ok
if the timer has wrapped
Automatically clears the flag and restarts the time
impl CountDown for Timer<SYST>
[src]
impl CountDown for Timer<SYST>
Use the systick as a timer
Be aware that intervals less than 4 Hertz may not function properly
type Time = Hertz
The unit of time used by this timer
fn start<T>(&mut self, timeout: T) where | [src] |
Start the timer with a timeout
fn wait(&mut self) -> Result<(), Error<Void>> | [src] |
Return Ok
if the timer has wrapped
Automatically clears the flag and restarts the time
impl CountDown for Timer<TIM3>
[src]
impl CountDown for Timer<TIM3>
type Time = Hertz
The unit of time used by this timer
fn start<T>(&mut self, timeout: T) where | [src] |
Start the timer with a timeout
fn wait(&mut self) -> Result<(), Error<Void>> | [src] |
Return Ok
if the timer has wrapped
Automatically clears the flag and restarts the time
impl CountDown for Timer<TIM14>
[src]
impl CountDown for Timer<TIM14>
type Time = Hertz
The unit of time used by this timer
fn start<T>(&mut self, timeout: T) where | [src] |
Start the timer with a timeout
fn wait(&mut self) -> Result<(), Error<Void>> | [src] |
Return Ok
if the timer has wrapped
Automatically clears the flag and restarts the time
impl CountDown for Timer<TIM2>
[src]
impl CountDown for Timer<TIM2>
type Time = Hertz
The unit of time used by this timer
fn start<T>(&mut self, timeout: T) where | [src] |
Start the timer with a timeout
fn wait(&mut self) -> Result<(), Error<Void>> | [src] |
Return Ok
if the timer has wrapped
Automatically clears the flag and restarts the time
impl CountDown for Timer<TIM1>
[src]
impl CountDown for Timer<TIM1>
type Time = Hertz
The unit of time used by this timer
fn start<T>(&mut self, timeout: T) where | [src] |
Start the timer with a timeout
fn wait(&mut self) -> Result<(), Error<Void>> | [src] |
Return Ok
if the timer has wrapped
Automatically clears the flag and restarts the time
impl Periodic for Timer<TIM14>
[src]
impl Periodic for Timer<TIM14>
impl Periodic for Timer<SYST>
[src]
impl Periodic for Timer<SYST>
impl Periodic for Timer<TIM16>
[src]
impl Periodic for Timer<TIM16>
impl Periodic for Timer<TIM2>
[src]
impl Periodic for Timer<TIM2>
impl Periodic for Timer<TIM1>
[src]
impl Periodic for Timer<TIM1>
impl Periodic for Timer<TIM3>
[src]
impl Periodic for Timer<TIM3>
impl Periodic for Timer<TIM17>
[src]
impl Periodic for Timer<TIM17>
Auto Trait Implementations
Blanket Implementations
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |