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>,
impl<TIM, Otype, const C: u8> ChannelBuilder<TIM, C, false, Otype>where
TIM: CPin<C>,
source§impl<TIM, Otype, const C: u8, const COMP: bool> ChannelBuilder<TIM, C, COMP, Otype>where
TIM: CPin<C>,
impl<TIM, Otype, const C: u8, const COMP: bool> ChannelBuilder<TIM, C, COMP, Otype>where
TIM: CPin<C>,
source§impl<TIM, Otype, const C: u8, const COMP: bool> ChannelBuilder<TIM, C, COMP, Otype>where
TIM: NCPin<C>,
impl<TIM, Otype, const C: u8, const COMP: bool> ChannelBuilder<TIM, C, COMP, Otype>where
TIM: NCPin<C>,
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>
impl<TIM, O1, const NC1: bool> Pins<TIM> for ChannelBuilder<TIM, C1, NC1, O1>
const C1: bool = true
const NC1: bool = NC1
const C2: bool = false
const C3: bool = false
const C4: bool = false
const NC2: bool = false
const NC3: bool = false
const NC4: bool = false
fn check_used(c: Channel) -> Channel
fn check_complementary_used(c: Channel) -> Channel
source§impl<TIM, O2, const NC2: bool> Pins<TIM> for ChannelBuilder<TIM, C2, NC2, O2>
impl<TIM, O2, const NC2: bool> Pins<TIM> for ChannelBuilder<TIM, C2, NC2, O2>
const C2: bool = true
const NC2: bool = NC2
const C1: bool = false
const C3: bool = false
const C4: bool = false
const NC1: bool = false
const NC3: bool = false
const NC4: bool = false
fn check_used(c: Channel) -> Channel
fn check_complementary_used(c: Channel) -> Channel
source§impl<TIM, O3, const NC3: bool> Pins<TIM> for ChannelBuilder<TIM, C3, NC3, O3>
impl<TIM, O3, const NC3: bool> Pins<TIM> for ChannelBuilder<TIM, C3, NC3, O3>
const C3: bool = true
const NC3: bool = NC3
const C1: bool = false
const C2: bool = false
const C4: bool = false
const NC1: bool = false
const NC2: bool = false
const NC4: bool = false
fn check_used(c: Channel) -> Channel
fn check_complementary_used(c: Channel) -> Channel
source§impl<TIM, O4, const NC4: bool> Pins<TIM> for ChannelBuilder<TIM, C4, NC4, O4>
impl<TIM, O4, const NC4: bool> Pins<TIM> for ChannelBuilder<TIM, C4, NC4, O4>
const C4: bool = true
const NC4: bool = NC4
const C1: bool = false
const C2: bool = false
const C3: bool = false
const NC1: bool = false
const NC2: bool = false
const NC3: bool = false
fn check_used(c: Channel) -> Channel
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>
impl<TIM, const C: u8, const COMP: bool, Otype> Sync for ChannelBuilder<TIM, C, COMP, Otype>
impl<TIM, const C: u8, const COMP: bool, Otype> Unpin for ChannelBuilder<TIM, C, COMP, Otype>
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more