pub struct Channel1 {}
Expand description
A capture/compare channel of the timer.
Implementations§
source§impl Channel1
impl Channel1
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: CaptureSource1) -> Channel1InputCapture
pub fn into_input_capture(self, input: CaptureSource1) -> Channel1InputCapture
Operate the channel in input-capture mode.
§Args
input
- The input source for the input capture event.
Auto Trait Implementations§
impl Freeze for Channel1
impl RefUnwindSafe for Channel1
impl Send for Channel1
impl Sync for Channel1
impl Unpin for Channel1
impl UnwindSafe for Channel1
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