pub struct R(_);
Expand description
Register CAP_CH1_CFG
reader
Implementations
sourceimpl R
impl R
sourcepub fn cap1_mode(&self) -> CAP1_MODE_R
pub fn cap1_mode(&self) -> CAP1_MODE_R
Bits 1:2 - Edge of capture on channel 1 after prescaling. When bit0 is set to 1: enable capture on the negative edge, When bit1 is set to 1: enable capture on the positive edge.
sourcepub fn cap1_prescale(&self) -> CAP1_PRESCALE_R
pub fn cap1_prescale(&self) -> CAP1_PRESCALE_R
Bits 3:10 - Value of prescaling on possitive edge of CAP1. Prescale value = PWM_CAP1_PRESCALE + 1
sourcepub fn cap1_in_invert(&self) -> CAP1_IN_INVERT_R
pub fn cap1_in_invert(&self) -> CAP1_IN_INVERT_R
Bit 11 - when set, CAP1 form GPIO matrix is inverted before prescale
Methods from Deref<Target = R<CAP_CH1_CFG_SPEC>>
Trait Implementations
sourceimpl From<R<CAP_CH1_CFG_SPEC>> for R
impl From<R<CAP_CH1_CFG_SPEC>> for R
sourcefn from(reader: R<CAP_CH1_CFG_SPEC>) -> Self
fn from(reader: R<CAP_CH1_CFG_SPEC>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more