pub struct AdvancedPwm<'d, T: Instance> { /* private fields */ }Expand description
Struct used to divide a high resolution timer into multiple channels
Implementations§
Source§impl<'d, T: Instance> AdvancedPwm<'d, T>
impl<'d, T: Instance> AdvancedPwm<'d, T>
Sourcepub fn new(
tim: Peri<'d, T>,
_cha: Option<HRPin<'d, T, ChA>>,
_chb: Option<HRPin<'d, T, ChB>>,
_chc: Option<HRPin<'d, T, ChC>>,
_chd: Option<HRPin<'d, T, ChD>>,
_che: Option<HRPin<'d, T, ChE>>,
) -> Self
pub fn new( tim: Peri<'d, T>, _cha: Option<HRPin<'d, T, ChA>>, _chb: Option<HRPin<'d, T, ChB>>, _chc: Option<HRPin<'d, T, ChC>>, _chd: Option<HRPin<'d, T, ChD>>, _che: Option<HRPin<'d, T, ChE>>, ) -> Self
Create a new HRTIM driver.
This splits the HRTIM into its constituent parts, which you can then use individually.
Auto Trait Implementations§
impl<'d, T> Freeze for AdvancedPwm<'d, T>where
T: Freeze,
impl<'d, T> RefUnwindSafe for AdvancedPwm<'d, T>where
T: RefUnwindSafe,
impl<'d, T> Send for AdvancedPwm<'d, T>where
T: Send,
impl<'d, T> Sync for AdvancedPwm<'d, T>where
T: Sync,
impl<'d, T> Unpin for AdvancedPwm<'d, T>where
T: Unpin,
impl<'d, T> !UnwindSafe for AdvancedPwm<'d, T>
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
Source§impl<T> ToMutAligned for Twhere
T: ?Sized,
impl<T> ToMutAligned for Twhere
T: ?Sized,
Source§fn to_mut_aligned<A>(&mut self) -> &mut Aligned<A, <T as ToMutAligned>::Element>where
A: Alignment,
fn to_mut_aligned<A>(&mut self) -> &mut Aligned<A, <T as ToMutAligned>::Element>where
A: Alignment,
Create a type-checked aligned value from a value that is aligned.