#[repr(u8)]pub enum CaptureCompare {
Output = 0,
InputTi1 = 1,
InputTi2 = 2,
InputTrc = 3,
}
Expand description
Capture/Compare selection.
This field defines the direction of the channel (input/output) as well as the used input.
It affects the TIMx_CCMR1 register, CCxS fields. Note that the signifiders of the input sources
varies depending on the channel. For example, the one labeled InputTi1
here is always the associated
channel, while InputTi2
is 2 for ch1, 1 for ch2, 4 for ch3, and 3 for ch4.
Variants§
Trait Implementations§
Source§impl Clone for CaptureCompare
impl Clone for CaptureCompare
Source§fn clone(&self) -> CaptureCompare
fn clone(&self) -> CaptureCompare
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for CaptureCompare
Auto Trait Implementations§
impl Freeze for CaptureCompare
impl RefUnwindSafe for CaptureCompare
impl Send for CaptureCompare
impl Sync for CaptureCompare
impl Unpin for CaptureCompare
impl UnwindSafe for CaptureCompare
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