[][src]Trait stm32f1xx_hal::pwm::Pins

pub trait Pins<REMAP, P> {
    type Channels;

    const C1: bool;
    const C2: bool;
    const C3: bool;
    const C4: bool;
    fn check_used(c: Channel) -> Channel { ... }
}

Associated Types

Loading content...

Associated Constants

const C1: bool

const C2: bool

const C3: bool

const C4: bool

Loading content...

Provided methods

Loading content...

Implementors

impl<TIM, REMAP, P1> Pins<REMAP, C1> for P1 where
    REMAP: Remap<Periph = TIM>,
    P1: Ch1<REMAP> + Mode<Alternate<PushPull>>, 
[src]

type Channels = PwmChannel<TIM, C1>

impl<TIM, REMAP, P1, P2> Pins<REMAP, (C1, C2)> for (P1, P2) where
    REMAP: Remap<Periph = TIM>,
    P1: Ch1<REMAP> + Mode<Alternate<PushPull>>,
    P2: Ch2<REMAP> + Mode<Alternate<PushPull>>, 
[src]

type Channels = (PwmChannel<TIM, C1>, PwmChannel<TIM, C2>)

impl<TIM, REMAP, P1, P2, P3> Pins<REMAP, (C1, C2, C3)> for (P1, P2, P3) where
    REMAP: Remap<Periph = TIM>,
    P1: Ch1<REMAP> + Mode<Alternate<PushPull>>,
    P2: Ch2<REMAP> + Mode<Alternate<PushPull>>,
    P3: Ch3<REMAP> + Mode<Alternate<PushPull>>, 
[src]

type Channels = (PwmChannel<TIM, C1>, PwmChannel<TIM, C2>, PwmChannel<TIM, C3>)

impl<TIM, REMAP, P1, P2, P3, P4> Pins<REMAP, (C1, C2, C3, C4)> for (P1, P2, P3, P4) where
    REMAP: Remap<Periph = TIM>,
    P1: Ch1<REMAP> + Mode<Alternate<PushPull>>,
    P2: Ch2<REMAP> + Mode<Alternate<PushPull>>,
    P3: Ch3<REMAP> + Mode<Alternate<PushPull>>,
    P4: Ch4<REMAP> + Mode<Alternate<PushPull>>, 
[src]

type Channels = (PwmChannel<TIM, C1>, PwmChannel<TIM, C2>, PwmChannel<TIM, C3>, PwmChannel<TIM, C4>)

impl<TIM, REMAP, P1, P2, P4> Pins<REMAP, (C1, C2, C4)> for (P1, P2, P4) where
    REMAP: Remap<Periph = TIM>,
    P1: Ch1<REMAP> + Mode<Alternate<PushPull>>,
    P2: Ch2<REMAP> + Mode<Alternate<PushPull>>,
    P4: Ch4<REMAP> + Mode<Alternate<PushPull>>, 
[src]

type Channels = (PwmChannel<TIM, C1>, PwmChannel<TIM, C2>, PwmChannel<TIM, C4>)

impl<TIM, REMAP, P1, P3> Pins<REMAP, (C1, C3)> for (P1, P3) where
    REMAP: Remap<Periph = TIM>,
    P1: Ch1<REMAP> + Mode<Alternate<PushPull>>,
    P3: Ch3<REMAP> + Mode<Alternate<PushPull>>, 
[src]

type Channels = (PwmChannel<TIM, C1>, PwmChannel<TIM, C3>)

impl<TIM, REMAP, P1, P3, P4> Pins<REMAP, (C1, C3, C4)> for (P1, P3, P4) where
    REMAP: Remap<Periph = TIM>,
    P1: Ch1<REMAP> + Mode<Alternate<PushPull>>,
    P3: Ch3<REMAP> + Mode<Alternate<PushPull>>,
    P4: Ch4<REMAP> + Mode<Alternate<PushPull>>, 
[src]

type Channels = (PwmChannel<TIM, C1>, PwmChannel<TIM, C3>, PwmChannel<TIM, C4>)

impl<TIM, REMAP, P1, P4> Pins<REMAP, (C1, C4)> for (P1, P4) where
    REMAP: Remap<Periph = TIM>,
    P1: Ch1<REMAP> + Mode<Alternate<PushPull>>,
    P4: Ch4<REMAP> + Mode<Alternate<PushPull>>, 
[src]

type Channels = (PwmChannel<TIM, C1>, PwmChannel<TIM, C4>)

impl<TIM, REMAP, P2> Pins<REMAP, C2> for P2 where
    REMAP: Remap<Periph = TIM>,
    P2: Ch2<REMAP> + Mode<Alternate<PushPull>>, 
[src]

type Channels = PwmChannel<TIM, C2>

impl<TIM, REMAP, P2, P3> Pins<REMAP, (C2, C3)> for (P2, P3) where
    REMAP: Remap<Periph = TIM>,
    P2: Ch2<REMAP> + Mode<Alternate<PushPull>>,
    P3: Ch3<REMAP> + Mode<Alternate<PushPull>>, 
[src]

type Channels = (PwmChannel<TIM, C2>, PwmChannel<TIM, C3>)

impl<TIM, REMAP, P2, P3, P4> Pins<REMAP, (C2, C3, C4)> for (P2, P3, P4) where
    REMAP: Remap<Periph = TIM>,
    P2: Ch2<REMAP> + Mode<Alternate<PushPull>>,
    P3: Ch3<REMAP> + Mode<Alternate<PushPull>>,
    P4: Ch4<REMAP> + Mode<Alternate<PushPull>>, 
[src]

type Channels = (PwmChannel<TIM, C2>, PwmChannel<TIM, C3>, PwmChannel<TIM, C4>)

impl<TIM, REMAP, P2, P4> Pins<REMAP, (C2, C4)> for (P2, P4) where
    REMAP: Remap<Periph = TIM>,
    P2: Ch2<REMAP> + Mode<Alternate<PushPull>>,
    P4: Ch4<REMAP> + Mode<Alternate<PushPull>>, 
[src]

type Channels = (PwmChannel<TIM, C2>, PwmChannel<TIM, C4>)

impl<TIM, REMAP, P3> Pins<REMAP, C3> for P3 where
    REMAP: Remap<Periph = TIM>,
    P3: Ch3<REMAP> + Mode<Alternate<PushPull>>, 
[src]

type Channels = PwmChannel<TIM, C3>

impl<TIM, REMAP, P3, P4> Pins<REMAP, (C3, C4)> for (P3, P4) where
    REMAP: Remap<Periph = TIM>,
    P3: Ch3<REMAP> + Mode<Alternate<PushPull>>,
    P4: Ch4<REMAP> + Mode<Alternate<PushPull>>, 
[src]

type Channels = (PwmChannel<TIM, C3>, PwmChannel<TIM, C4>)

impl<TIM, REMAP, P4> Pins<REMAP, C4> for P4 where
    REMAP: Remap<Periph = TIM>,
    P4: Ch4<REMAP> + Mode<Alternate<PushPull>>, 
[src]

type Channels = PwmChannel<TIM, C4>

Loading content...