Struct stm32f4xx_hal::timer::pwm::ChannelBuilder

source ·
pub struct ChannelBuilder<TIM, const C: u8, const COMP: bool = false, Otype = PushPull> { /* private fields */ }

Implementations§

source§

impl<TIM, Otype, const C: u8> ChannelBuilder<TIM, C, false, Otype>
where TIM: CPin<C>,

source

pub fn new(pin: impl Into<TIM::Ch<Otype>>) -> Self

source§

impl<TIM, Otype, const C: u8, const COMP: bool> ChannelBuilder<TIM, C, COMP, Otype>
where TIM: CPin<C>,

source

pub fn with(self, pin: impl Into<TIM::Ch<Otype>>) -> Self

source§

impl<TIM, Otype, const C: u8, const COMP: bool> ChannelBuilder<TIM, C, COMP, Otype>
where TIM: NCPin<C>,

source

pub fn with_complementary( self, pin: impl Into<TIM::ChN<Otype>> ) -> ChannelBuilder<TIM, C, true, Otype>

Trait Implementations§

source§

impl<TIM, O1, const NC1: bool> Pins<TIM> for ChannelBuilder<TIM, C1, NC1, O1>

source§

const C1: bool = true

source§

const NC1: bool = NC1

source§

const C2: bool = false

source§

const C3: bool = false

source§

const C4: bool = false

source§

const NC2: bool = false

source§

const NC3: bool = false

source§

const NC4: bool = false

source§

fn check_used(c: Channel) -> Channel

source§

fn check_complementary_used(c: Channel) -> Channel

source§

impl<TIM, O2, const NC2: bool> Pins<TIM> for ChannelBuilder<TIM, C2, NC2, O2>

source§

const C2: bool = true

source§

const NC2: bool = NC2

source§

const C1: bool = false

source§

const C3: bool = false

source§

const C4: bool = false

source§

const NC1: bool = false

source§

const NC3: bool = false

source§

const NC4: bool = false

source§

fn check_used(c: Channel) -> Channel

source§

fn check_complementary_used(c: Channel) -> Channel

source§

impl<TIM, O3, const NC3: bool> Pins<TIM> for ChannelBuilder<TIM, C3, NC3, O3>

source§

const C3: bool = true

source§

const NC3: bool = NC3

source§

const C1: bool = false

source§

const C2: bool = false

source§

const C4: bool = false

source§

const NC1: bool = false

source§

const NC2: bool = false

source§

const NC4: bool = false

source§

fn check_used(c: Channel) -> Channel

source§

fn check_complementary_used(c: Channel) -> Channel

source§

impl<TIM, O4, const NC4: bool> Pins<TIM> for ChannelBuilder<TIM, C4, NC4, O4>

source§

const C4: bool = true

source§

const NC4: bool = NC4

source§

const C1: bool = false

source§

const C2: bool = false

source§

const C3: bool = false

source§

const NC1: bool = false

source§

const NC2: bool = false

source§

const NC3: bool = false

source§

fn check_used(c: Channel) -> Channel

source§

fn check_complementary_used(c: Channel) -> Channel

Auto Trait Implementations§

§

impl<TIM, const C: u8, const COMP: bool, Otype> Freeze for ChannelBuilder<TIM, C, COMP, Otype>

§

impl<TIM, const C: u8, const COMP: bool, Otype> RefUnwindSafe for ChannelBuilder<TIM, C, COMP, Otype>
where TIM: RefUnwindSafe, Otype: RefUnwindSafe,

§

impl<TIM, const C: u8, const COMP: bool, Otype> Send for ChannelBuilder<TIM, C, COMP, Otype>
where TIM: Send, Otype: Send,

§

impl<TIM, const C: u8, const COMP: bool, Otype> Sync for ChannelBuilder<TIM, C, COMP, Otype>
where TIM: Sync, Otype: Sync,

§

impl<TIM, const C: u8, const COMP: bool, Otype> Unpin for ChannelBuilder<TIM, C, COMP, Otype>
where TIM: Unpin, Otype: Unpin,

§

impl<TIM, const C: u8, const COMP: bool, Otype> UnwindSafe for ChannelBuilder<TIM, C, COMP, Otype>
where TIM: UnwindSafe, Otype: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.