pub struct Channel2 {}
Expand description
A capture/compare channel of the timer.
Implementations§
source§impl Channel2
impl Channel2
sourcepub fn listen_dma(&self)
pub fn listen_dma(&self)
Allow the channel to generate DMA requests.
sourcepub fn to_output_compare(&self, value: u32)
pub fn to_output_compare(&self, value: u32)
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: CaptureSource2) -> Channel2InputCapture
pub fn into_input_capture(self, input: CaptureSource2) -> Channel2InputCapture
Operate the channel in input-capture mode.
§Args
input
- The input source for the input capture event.
Auto Trait Implementations§
impl Freeze for Channel2
impl RefUnwindSafe for Channel2
impl Send for Channel2
impl Sync for Channel2
impl Unpin for Channel2
impl UnwindSafe for Channel2
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