pub struct HrCapt<TIM, PSCL, CH, DMA> { /* private fields */ }
Implementations§
Source§impl<TIM: InstanceX, CH: ChExt, PSCL> HrCapt<TIM, PSCL, CH, NoDma>
impl<TIM: InstanceX, CH: ChExt, PSCL> HrCapt<TIM, PSCL, CH, NoDma>
Sourcepub fn add_event<E: CaptureEvent<TIM, PSCL>>(&mut self, _event: &E)
pub fn add_event<E: CaptureEvent<TIM, PSCL>>(&mut self, _event: &E)
Add event to capture
If multiple events are added, they will be ORed together meaning that a capture will be trigger if any one of the events triggers
Sourcepub fn remove_event<E: CaptureEvent<TIM, PSCL>>(&mut self, _event: &E)
pub fn remove_event<E: CaptureEvent<TIM, PSCL>>(&mut self, _event: &E)
Remove event to capture
Sourcepub fn trigger_now(&mut self)
pub fn trigger_now(&mut self)
Force capture trigger now
pub fn enable_interrupt(&mut self, enable: bool, _hr_control: &mut HrPwmControl)
pub fn enable_dma(self, _ch: DmaChannel<TIM>) -> HrCapt<TIM, PSCL, CH, Dma>
Trait Implementations§
Source§impl<TIM: InstanceX, CH: ChExt, PSCL, DMA> HrCapture for HrCapt<TIM, PSCL, CH, DMA>
impl<TIM: InstanceX, CH: ChExt, PSCL, DMA> HrCapture for HrCapt<TIM, PSCL, CH, DMA>
fn get_last(&self) -> (u16, CountingDirection)
fn clear_interrupt(&mut self)
fn is_pending(&self) -> bool
Auto Trait Implementations§
impl<TIM, PSCL, CH, DMA> Freeze for HrCapt<TIM, PSCL, CH, DMA>
impl<TIM, PSCL, CH, DMA> RefUnwindSafe for HrCapt<TIM, PSCL, CH, DMA>
impl<TIM, PSCL, CH, DMA> Send for HrCapt<TIM, PSCL, CH, DMA>
impl<TIM, PSCL, CH, DMA> Sync for HrCapt<TIM, PSCL, CH, DMA>
impl<TIM, PSCL, CH, DMA> Unpin for HrCapt<TIM, PSCL, CH, DMA>
impl<TIM, PSCL, CH, DMA> UnwindSafe for HrCapt<TIM, PSCL, CH, DMA>
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