Struct stabilizer::hardware::timers::tim8::Channel2InputCapture
source · pub struct Channel2InputCapture {}
Expand description
A capture channel of the timer.
Implementations§
source§impl Channel2InputCapture
impl Channel2InputCapture
sourcepub fn latest_capture(&mut self) -> Result<Option<u16>, Option<u16>>
pub fn latest_capture(&mut self) -> Result<Option<u16>, Option<u16>>
Get the latest capture from the channel.
sourcepub fn listen_dma(&self)
pub fn listen_dma(&self)
Allow the channel to generate DMA requests.
sourcepub fn check_overcapture(&self) -> bool
pub fn check_overcapture(&self) -> bool
Check if an over-capture event has occurred.
sourcepub fn configure_filter(&mut self, filter: InputFilter)
pub fn configure_filter(&mut self, filter: InputFilter)
Configure the input capture input pre-filter.
§Args
filter
- The desired input filter stage configuration. Defaults to disabled.
sourcepub fn configure_prescaler(&mut self, prescaler: Prescaler)
pub fn configure_prescaler(&mut self, prescaler: Prescaler)
Trait Implementations§
source§impl TargetAddress<PeripheralToMemory> for Channel2InputCapture
impl TargetAddress<PeripheralToMemory> for Channel2InputCapture
Auto Trait Implementations§
impl Freeze for Channel2InputCapture
impl RefUnwindSafe for Channel2InputCapture
impl Send for Channel2InputCapture
impl Sync for Channel2InputCapture
impl Unpin for Channel2InputCapture
impl UnwindSafe for Channel2InputCapture
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