pub struct CaptureChannel<TIM: CPin<C>, const C: u8, const COMP: bool = false, Otype = PushPull> { /* private fields */ }
Implementations§
Source§impl<TIM: Instance + WithCapture + CPin<C>, const C: u8, const COMP: bool, Otype> CaptureChannel<TIM, C, COMP, Otype>
impl<TIM: Instance + WithCapture + CPin<C>, const C: u8, const COMP: bool, Otype> CaptureChannel<TIM, C, COMP, Otype>
pub const fn channel(&self) -> u8
pub fn release(self) -> (CaptureChannelDisabled<TIM, C>, TIM::Ch<Otype>)
pub fn erase(self) -> CaptureErasedChannel<TIM>
pub fn set_prescaler(&mut self, psc: CapturePrescaler)
pub fn set_filter(&mut self, filter: CaptureFilter)
Source§impl<TIM: Instance + WithCapture + CPin<C>, const C: u8, const COMP: bool, Otype> CaptureChannel<TIM, C, COMP, Otype>
impl<TIM: Instance + WithCapture + CPin<C>, const C: u8, const COMP: bool, Otype> CaptureChannel<TIM, C, COMP, Otype>
Sourcepub fn get_capture(&self) -> u32
pub fn get_capture(&self) -> u32
Get capture value
Sourcepub fn set_polarity(&mut self, p: CapturePolarity)
pub fn set_polarity(&mut self, p: CapturePolarity)
Set input capture channel polarity
Auto Trait Implementations§
impl<TIM, const C: u8, const COMP: bool, Otype> Freeze for CaptureChannel<TIM, C, COMP, Otype>
impl<TIM, const C: u8, const COMP: bool, Otype> RefUnwindSafe for CaptureChannel<TIM, C, COMP, Otype>
impl<TIM, const C: u8, const COMP: bool, Otype> Send for CaptureChannel<TIM, C, COMP, Otype>
impl<TIM, const C: u8, const COMP: bool, Otype> Sync for CaptureChannel<TIM, C, COMP, Otype>
impl<TIM, const C: u8, const COMP: bool, Otype> Unpin for CaptureChannel<TIM, C, COMP, Otype>
impl<TIM, const C: u8, const COMP: bool, Otype> UnwindSafe for CaptureChannel<TIM, C, COMP, Otype>
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