Struct stabilizer::hardware::timers::tim8::Channel4InputCapture
source · pub struct Channel4InputCapture {}
Expand description
A capture channel of the timer.
Implementations§
source§impl Channel4InputCapture
impl Channel4InputCapture
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 Channel4InputCapture
impl TargetAddress<PeripheralToMemory> for Channel4InputCapture
Auto Trait Implementations§
impl Freeze for Channel4InputCapture
impl RefUnwindSafe for Channel4InputCapture
impl Send for Channel4InputCapture
impl Sync for Channel4InputCapture
impl Unpin for Channel4InputCapture
impl UnwindSafe for Channel4InputCapture
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