pub struct Channel4 {}
Expand description
A capture/compare channel of the timer.
Implementations§
source§impl Channel4
impl Channel4
sourcepub fn listen_dma(&self)
pub fn listen_dma(&self)
Allow the channel to generate DMA requests.
sourcepub fn to_output_compare(&self, value: u16)
pub fn to_output_compare(&self, value: u16)
Operate the channel as an output-compare.
§Args
value
- The value to compare the sampling timer’s counter against.
sourcepub fn into_input_capture(self, input: CaptureSource4) -> Channel4InputCapture
pub fn into_input_capture(self, input: CaptureSource4) -> Channel4InputCapture
Operate the channel in input-capture mode.
§Args
input
- The input source for the input capture event.
Auto Trait Implementations§
impl Freeze for Channel4
impl RefUnwindSafe for Channel4
impl Send for Channel4
impl Sync for Channel4
impl Unpin for Channel4
impl UnwindSafe for Channel4
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