[][src]Struct tm4c123x_hal::pwm::Timer

pub struct Timer<T> { /* fields omitted */ }

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]

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]

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]

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]

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]

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]

Create the PWM implementation for both halves of a timer peripheral

Trait Implementations

Auto Trait Implementations

impl<T> Send for Timer<T> where
    T: Send

impl<T> Sync for Timer<T> where
    T: Sync

impl<T> Unpin for Timer<T> where
    T: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.