[−][src]Struct tm4c123x_hal::pwm::Timer
a timer
Implementations
impl Timer<TIMER0>
[src]
pub fn timer0(power_control: &PowerControl, timer: TIMER0) -> Self
[src]
Initialize timer for PWM usage
pub fn into_even<P: EvenPin<Self>>(self, _pin: P) -> EvenPWM<TIMER0>
[src]
Create the PWM implementation for one half of a timer peripheral
pub fn into_odd<P: OddPin<Self>>(self, _pin: P) -> OddPWM<TIMER0>
[src]
Create the PWM implementation for one half of a timer peripheral
pub fn into_both<E: EvenPin<Self>, O: OddPin<Self>>(
self,
even_pin: E,
odd_pin: O
) -> (EvenPWM<TIMER0>, OddPWM<TIMER0>)
[src]
self,
even_pin: E,
odd_pin: O
) -> (EvenPWM<TIMER0>, OddPWM<TIMER0>)
Create the PWM implementation for both halves of a timer peripheral
impl Timer<TIMER1>
[src]
pub fn timer1(power_control: &PowerControl, timer: TIMER1) -> Self
[src]
Initialize timer for PWM usage
pub fn into_even<P: EvenPin<Self>>(self, _pin: P) -> EvenPWM<TIMER1>
[src]
Create the PWM implementation for one half of a timer peripheral
pub fn into_odd<P: OddPin<Self>>(self, _pin: P) -> OddPWM<TIMER1>
[src]
Create the PWM implementation for one half of a timer peripheral
pub fn into_both<E: EvenPin<Self>, O: OddPin<Self>>(
self,
even_pin: E,
odd_pin: O
) -> (EvenPWM<TIMER1>, OddPWM<TIMER1>)
[src]
self,
even_pin: E,
odd_pin: O
) -> (EvenPWM<TIMER1>, OddPWM<TIMER1>)
Create the PWM implementation for both halves of a timer peripheral
impl Timer<TIMER2>
[src]
pub fn timer2(power_control: &PowerControl, timer: TIMER2) -> Self
[src]
Initialize timer for PWM usage
pub fn into_even<P: EvenPin<Self>>(self, _pin: P) -> EvenPWM<TIMER2>
[src]
Create the PWM implementation for one half of a timer peripheral
pub fn into_odd<P: OddPin<Self>>(self, _pin: P) -> OddPWM<TIMER2>
[src]
Create the PWM implementation for one half of a timer peripheral
pub fn into_both<E: EvenPin<Self>, O: OddPin<Self>>(
self,
even_pin: E,
odd_pin: O
) -> (EvenPWM<TIMER2>, OddPWM<TIMER2>)
[src]
self,
even_pin: E,
odd_pin: O
) -> (EvenPWM<TIMER2>, OddPWM<TIMER2>)
Create the PWM implementation for both halves of a timer peripheral
impl Timer<TIMER3>
[src]
pub fn timer3(power_control: &PowerControl, timer: TIMER3) -> Self
[src]
Initialize timer for PWM usage
pub fn into_even<P: EvenPin<Self>>(self, _pin: P) -> EvenPWM<TIMER3>
[src]
Create the PWM implementation for one half of a timer peripheral
pub fn into_odd<P: OddPin<Self>>(self, _pin: P) -> OddPWM<TIMER3>
[src]
Create the PWM implementation for one half of a timer peripheral
pub fn into_both<E: EvenPin<Self>, O: OddPin<Self>>(
self,
even_pin: E,
odd_pin: O
) -> (EvenPWM<TIMER3>, OddPWM<TIMER3>)
[src]
self,
even_pin: E,
odd_pin: O
) -> (EvenPWM<TIMER3>, OddPWM<TIMER3>)
Create the PWM implementation for both halves of a timer peripheral
impl Timer<TIMER4>
[src]
pub fn timer4(power_control: &PowerControl, timer: TIMER4) -> Self
[src]
Initialize timer for PWM usage
pub fn into_even<P: EvenPin<Self>>(self, _pin: P) -> EvenPWM<TIMER4>
[src]
Create the PWM implementation for one half of a timer peripheral
pub fn into_odd<P: OddPin<Self>>(self, _pin: P) -> OddPWM<TIMER4>
[src]
Create the PWM implementation for one half of a timer peripheral
pub fn into_both<E: EvenPin<Self>, O: OddPin<Self>>(
self,
even_pin: E,
odd_pin: O
) -> (EvenPWM<TIMER4>, OddPWM<TIMER4>)
[src]
self,
even_pin: E,
odd_pin: O
) -> (EvenPWM<TIMER4>, OddPWM<TIMER4>)
Create the PWM implementation for both halves of a timer peripheral
impl Timer<TIMER5>
[src]
pub fn timer5(power_control: &PowerControl, timer: TIMER5) -> Self
[src]
Initialize timer for PWM usage
pub fn into_even<P: EvenPin<Self>>(self, _pin: P) -> EvenPWM<TIMER5>
[src]
Create the PWM implementation for one half of a timer peripheral
pub fn into_odd<P: OddPin<Self>>(self, _pin: P) -> OddPWM<TIMER5>
[src]
Create the PWM implementation for one half of a timer peripheral
pub fn into_both<E: EvenPin<Self>, O: OddPin<Self>>(
self,
even_pin: E,
odd_pin: O
) -> (EvenPWM<TIMER5>, OddPWM<TIMER5>)
[src]
self,
even_pin: E,
odd_pin: O
) -> (EvenPWM<TIMER5>, OddPWM<TIMER5>)
Create the PWM implementation for both halves of a timer peripheral
Trait Implementations
impl EvenPin<Timer<TIMER0>> for PB6<AlternateFunction<AF7, PushPull>>
[src]
impl EvenPin<Timer<TIMER0>> for PF0<AlternateFunction<AF7, PushPull>>
[src]
impl EvenPin<Timer<TIMER1>> for PF2<AlternateFunction<AF7, PushPull>>
[src]
impl EvenPin<Timer<TIMER1>> for PB4<AlternateFunction<AF7, PushPull>>
[src]
impl EvenPin<Timer<TIMER2>> for PF4<AlternateFunction<AF7, PushPull>>
[src]
impl EvenPin<Timer<TIMER2>> for PB0<AlternateFunction<AF7, PushPull>>
[src]
impl EvenPin<Timer<TIMER3>> for PB2<AlternateFunction<AF7, PushPull>>
[src]
impl EvenPin<Timer<TIMER4>> for PC0<AlternateFunction<AF7, PushPull>>
[src]
impl EvenPin<Timer<TIMER5>> for PC2<AlternateFunction<AF7, PushPull>>
[src]
impl OddPin<Timer<TIMER0>> for PB7<AlternateFunction<AF7, PushPull>>
[src]
impl OddPin<Timer<TIMER0>> for PF1<AlternateFunction<AF7, PushPull>>
[src]
impl OddPin<Timer<TIMER1>> for PF3<AlternateFunction<AF7, PushPull>>
[src]
impl OddPin<Timer<TIMER1>> for PB5<AlternateFunction<AF7, PushPull>>
[src]
impl OddPin<Timer<TIMER2>> for PB1<AlternateFunction<AF7, PushPull>>
[src]
impl OddPin<Timer<TIMER3>> for PB3<AlternateFunction<AF7, PushPull>>
[src]
impl OddPin<Timer<TIMER4>> for PC1<AlternateFunction<AF7, PushPull>>
[src]
impl OddPin<Timer<TIMER5>> for PC3<AlternateFunction<AF7, PushPull>>
[src]
Auto Trait Implementations
impl<T> Send for Timer<T> where
T: Send,
T: Send,
impl<T> Sync for Timer<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Timer<T> where
T: Unpin,
T: 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>,