[−][src]Struct tm4c123x_hal::timer::Timer
Hardware timers
Implementations
impl Timer<TIMER0>
[src]
pub fn timer0<T>(
tim: TIMER0,
timeout: T,
pc: &PowerControl,
clocks: &Clocks
) -> Self where
T: Into<Hertz>,
[src]
tim: TIMER0,
timeout: T,
pc: &PowerControl,
clocks: &Clocks
) -> Self where
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 free(self) -> TIMER0
[src]
Releases the TIM peripheral
impl Timer<TIMER1>
[src]
pub fn timer1<T>(
tim: TIMER1,
timeout: T,
pc: &PowerControl,
clocks: &Clocks
) -> Self where
T: Into<Hertz>,
[src]
tim: TIMER1,
timeout: T,
pc: &PowerControl,
clocks: &Clocks
) -> Self where
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 free(self) -> TIMER1
[src]
Releases the TIM peripheral
impl Timer<TIMER2>
[src]
pub fn timer2<T>(
tim: TIMER2,
timeout: T,
pc: &PowerControl,
clocks: &Clocks
) -> Self where
T: Into<Hertz>,
[src]
tim: TIMER2,
timeout: T,
pc: &PowerControl,
clocks: &Clocks
) -> Self where
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 free(self) -> TIMER2
[src]
Releases the TIM peripheral
impl Timer<TIMER3>
[src]
pub fn timer3<T>(
tim: TIMER3,
timeout: T,
pc: &PowerControl,
clocks: &Clocks
) -> Self where
T: Into<Hertz>,
[src]
tim: TIMER3,
timeout: T,
pc: &PowerControl,
clocks: &Clocks
) -> Self where
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 free(self) -> TIMER3
[src]
Releases the TIM peripheral
impl Timer<TIMER4>
[src]
pub fn timer4<T>(
tim: TIMER4,
timeout: T,
pc: &PowerControl,
clocks: &Clocks
) -> Self where
T: Into<Hertz>,
[src]
tim: TIMER4,
timeout: T,
pc: &PowerControl,
clocks: &Clocks
) -> Self where
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 free(self) -> TIMER4
[src]
Releases the TIM peripheral
impl Timer<TIMER5>
[src]
pub fn timer5<T>(
tim: TIMER5,
timeout: T,
pc: &PowerControl,
clocks: &Clocks
) -> Self where
T: Into<Hertz>,
[src]
tim: TIMER5,
timeout: T,
pc: &PowerControl,
clocks: &Clocks
) -> Self where
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 free(self) -> TIMER5
[src]
Releases the TIM peripheral
impl Timer<WTIMER0>
[src]
pub fn wtimer0<T>(
tim: WTIMER0,
timeout: T,
pc: &PowerControl,
clocks: &Clocks
) -> Self where
T: Into<Hertz>,
[src]
tim: WTIMER0,
timeout: T,
pc: &PowerControl,
clocks: &Clocks
) -> Self where
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 free(self) -> WTIMER0
[src]
Releases the TIM peripheral
impl Timer<WTIMER1>
[src]
pub fn wtimer1<T>(
tim: WTIMER1,
timeout: T,
pc: &PowerControl,
clocks: &Clocks
) -> Self where
T: Into<Hertz>,
[src]
tim: WTIMER1,
timeout: T,
pc: &PowerControl,
clocks: &Clocks
) -> Self where
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 free(self) -> WTIMER1
[src]
Releases the TIM peripheral
impl Timer<WTIMER2>
[src]
pub fn wtimer2<T>(
tim: WTIMER2,
timeout: T,
pc: &PowerControl,
clocks: &Clocks
) -> Self where
T: Into<Hertz>,
[src]
tim: WTIMER2,
timeout: T,
pc: &PowerControl,
clocks: &Clocks
) -> Self where
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 free(self) -> WTIMER2
[src]
Releases the TIM peripheral
impl Timer<WTIMER3>
[src]
pub fn wtimer3<T>(
tim: WTIMER3,
timeout: T,
pc: &PowerControl,
clocks: &Clocks
) -> Self where
T: Into<Hertz>,
[src]
tim: WTIMER3,
timeout: T,
pc: &PowerControl,
clocks: &Clocks
) -> Self where
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 free(self) -> WTIMER3
[src]
Releases the TIM peripheral
impl Timer<WTIMER4>
[src]
pub fn wtimer4<T>(
tim: WTIMER4,
timeout: T,
pc: &PowerControl,
clocks: &Clocks
) -> Self where
T: Into<Hertz>,
[src]
tim: WTIMER4,
timeout: T,
pc: &PowerControl,
clocks: &Clocks
) -> Self where
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 free(self) -> WTIMER4
[src]
Releases the TIM peripheral
impl Timer<WTIMER5>
[src]
pub fn wtimer5<T>(
tim: WTIMER5,
timeout: T,
pc: &PowerControl,
clocks: &Clocks
) -> Self where
T: Into<Hertz>,
[src]
tim: WTIMER5,
timeout: T,
pc: &PowerControl,
clocks: &Clocks
) -> Self where
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 free(self) -> WTIMER5
[src]
Releases the TIM peripheral
Trait Implementations
impl CountDown for Timer<TIMER0>
[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<(), Void>
[src]
impl CountDown for Timer<TIMER1>
[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<(), Void>
[src]
impl CountDown for Timer<WTIMER4>
[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<(), Void>
[src]
impl CountDown for Timer<WTIMER5>
[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<(), Void>
[src]
impl CountDown for Timer<TIMER2>
[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<(), Void>
[src]
impl CountDown for Timer<TIMER3>
[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<(), Void>
[src]
impl CountDown for Timer<TIMER4>
[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<(), Void>
[src]
impl CountDown for Timer<TIMER5>
[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<(), Void>
[src]
impl CountDown for Timer<WTIMER0>
[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<(), Void>
[src]
impl CountDown for Timer<WTIMER1>
[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<(), Void>
[src]
impl CountDown for Timer<WTIMER2>
[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<(), Void>
[src]
impl CountDown for Timer<WTIMER3>
[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<(), Void>
[src]
impl Periodic for Timer<TIMER0>
[src]
impl Periodic for Timer<TIMER1>
[src]
impl Periodic for Timer<WTIMER4>
[src]
impl Periodic for Timer<WTIMER5>
[src]
impl Periodic for Timer<TIMER2>
[src]
impl Periodic for Timer<TIMER3>
[src]
impl Periodic for Timer<TIMER4>
[src]
impl Periodic for Timer<TIMER5>
[src]
impl Periodic for Timer<WTIMER0>
[src]
impl Periodic for Timer<WTIMER1>
[src]
impl Periodic for Timer<WTIMER2>
[src]
impl Periodic for Timer<WTIMER3>
[src]
Auto Trait Implementations
impl<TIM> Send for Timer<TIM> where
TIM: Send,
TIM: Send,
impl<TIM> Sync for Timer<TIM> where
TIM: Sync,
TIM: Sync,
impl<TIM> Unpin for Timer<TIM> where
TIM: Unpin,
TIM: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> 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> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,