[−][src]Struct nucleo_f401re::timer::Timer
Hardware timers
Methods
impl Timer<SYST>
[src]
pub fn syst<T>(syst: SYST, timeout: T, clocks: Clocks) -> Timer<SYST> where
T: Into<Hertz>,
[src]
T: Into<Hertz>,
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]
pub fn tim1<T>(tim: TIM1, timeout: T, clocks: Clocks) -> Timer<TIM1> where
T: Into<Hertz>,
[src]
T: Into<Hertz>,
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<TIM5>
[src]
pub fn tim5<T>(tim: TIM5, timeout: T, clocks: Clocks) -> Timer<TIM5> where
T: Into<Hertz>,
[src]
T: Into<Hertz>,
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) -> TIM5
[src]
Releases the TIM peripheral
impl Timer<TIM9>
[src]
pub fn tim9<T>(tim: TIM9, timeout: T, clocks: Clocks) -> Timer<TIM9> where
T: Into<Hertz>,
[src]
T: Into<Hertz>,
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) -> TIM9
[src]
Releases the TIM peripheral
impl Timer<TIM11>
[src]
pub fn tim11<T>(tim: TIM11, timeout: T, clocks: Clocks) -> Timer<TIM11> where
T: Into<Hertz>,
[src]
T: Into<Hertz>,
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) -> TIM11
[src]
Releases the TIM peripheral
impl Timer<TIM2>
[src]
pub fn tim2<T>(tim: TIM2, timeout: T, clocks: Clocks) -> Timer<TIM2> where
T: Into<Hertz>,
[src]
T: Into<Hertz>,
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
impl Timer<TIM3>
[src]
pub fn tim3<T>(tim: TIM3, timeout: T, clocks: Clocks) -> Timer<TIM3> where
T: Into<Hertz>,
[src]
T: Into<Hertz>,
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<TIM4>
[src]
pub fn tim4<T>(tim: TIM4, timeout: T, clocks: Clocks) -> Timer<TIM4> where
T: Into<Hertz>,
[src]
T: Into<Hertz>,
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) -> TIM4
[src]
Releases the TIM peripheral
impl Timer<TIM10>
[src]
pub fn tim10<T>(tim: TIM10, timeout: T, clocks: Clocks) -> Timer<TIM10> where
T: Into<Hertz>,
[src]
T: Into<Hertz>,
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) -> TIM10
[src]
Releases the TIM peripheral
Trait Implementations
impl Periodic for Timer<TIM1>
[src]
impl Periodic for Timer<TIM3>
[src]
impl Periodic for Timer<TIM5>
[src]
impl Periodic for Timer<TIM11>
[src]
impl Periodic for Timer<TIM10>
[src]
impl Periodic for Timer<TIM4>
[src]
impl Periodic for Timer<TIM9>
[src]
impl Periodic for Timer<TIM2>
[src]
impl Periodic for Timer<SYST>
[src]
impl CountDown for Timer<SYST>
[src]
type Time = Hertz
The unit of time used by this timer
fn start<T>(&mut self, timeout: T) where
T: Into<Hertz>,
[src]
T: Into<Hertz>,
fn wait(&mut self) -> Result<(), Error<Void>>
[src]
impl CountDown for Timer<TIM1>
[src]
type Time = Hertz
The unit of time used by this timer
fn start<T>(&mut self, timeout: T) where
T: Into<Hertz>,
[src]
T: Into<Hertz>,
fn wait(&mut self) -> Result<(), Error<Void>>
[src]
impl CountDown for Timer<TIM9>
[src]
type Time = Hertz
The unit of time used by this timer
fn start<T>(&mut self, timeout: T) where
T: Into<Hertz>,
[src]
T: Into<Hertz>,
fn wait(&mut self) -> Result<(), Error<Void>>
[src]
impl CountDown for Timer<TIM3>
[src]
type Time = Hertz
The unit of time used by this timer
fn start<T>(&mut self, timeout: T) where
T: Into<Hertz>,
[src]
T: Into<Hertz>,
fn wait(&mut self) -> Result<(), Error<Void>>
[src]
impl CountDown for Timer<TIM5>
[src]
type Time = Hertz
The unit of time used by this timer
fn start<T>(&mut self, timeout: T) where
T: Into<Hertz>,
[src]
T: Into<Hertz>,
fn wait(&mut self) -> Result<(), Error<Void>>
[src]
impl CountDown for Timer<TIM10>
[src]
type Time = Hertz
The unit of time used by this timer
fn start<T>(&mut self, timeout: T) where
T: Into<Hertz>,
[src]
T: Into<Hertz>,
fn wait(&mut self) -> Result<(), Error<Void>>
[src]
impl CountDown for Timer<TIM11>
[src]
type Time = Hertz
The unit of time used by this timer
fn start<T>(&mut self, timeout: T) where
T: Into<Hertz>,
[src]
T: Into<Hertz>,
fn wait(&mut self) -> Result<(), Error<Void>>
[src]
impl CountDown for Timer<TIM4>
[src]
type Time = Hertz
The unit of time used by this timer
fn start<T>(&mut self, timeout: T) where
T: Into<Hertz>,
[src]
T: Into<Hertz>,
fn wait(&mut self) -> Result<(), Error<Void>>
[src]
impl CountDown for Timer<TIM2>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same for T
type Output = T
Should always be Self