Struct stm32f042_hal::stm32::syscfg_comp::comp_csr::W
source · pub struct W { /* private fields */ }
Expand description
Value to write to the register
Implementations
sourceimpl W
impl W
sourcepub fn reset_value() -> W
pub fn reset_value() -> W
Reset value of the register
sourcepub fn comp1_inp_dac(&mut self) -> _COMP1_INP_DACW<'_>
pub fn comp1_inp_dac(&mut self) -> _COMP1_INP_DACW<'_>
Bit 1 - COMP1_INP_DAC
sourcepub fn comp1mode(&mut self) -> _COMP1MODEW<'_>
pub fn comp1mode(&mut self) -> _COMP1MODEW<'_>
Bits 2:3 - Comparator 1 mode
sourcepub fn comp1insel(&mut self) -> _COMP1INSELW<'_>
pub fn comp1insel(&mut self) -> _COMP1INSELW<'_>
Bits 4:6 - Comparator 1 inverting input selection
sourcepub fn comp1outsel(&mut self) -> _COMP1OUTSELW<'_>
pub fn comp1outsel(&mut self) -> _COMP1OUTSELW<'_>
Bits 8:10 - Comparator 1 output selection
sourcepub fn comp1pol(&mut self) -> _COMP1POLW<'_>
pub fn comp1pol(&mut self) -> _COMP1POLW<'_>
Bit 11 - Comparator 1 output polarity
sourcepub fn comp1hyst(&mut self) -> _COMP1HYSTW<'_>
pub fn comp1hyst(&mut self) -> _COMP1HYSTW<'_>
Bits 12:13 - Comparator 1 hysteresis
sourcepub fn comp1lock(&mut self) -> _COMP1LOCKW<'_>
pub fn comp1lock(&mut self) -> _COMP1LOCKW<'_>
Bit 15 - Comparator 1 lock
sourcepub fn comp2mode(&mut self) -> _COMP2MODEW<'_>
pub fn comp2mode(&mut self) -> _COMP2MODEW<'_>
Bits 18:19 - Comparator 2 mode
sourcepub fn comp2insel(&mut self) -> _COMP2INSELW<'_>
pub fn comp2insel(&mut self) -> _COMP2INSELW<'_>
Bits 20:22 - Comparator 2 inverting input selection
sourcepub fn comp2outsel(&mut self) -> _COMP2OUTSELW<'_>
pub fn comp2outsel(&mut self) -> _COMP2OUTSELW<'_>
Bits 24:26 - Comparator 2 output selection
sourcepub fn comp2pol(&mut self) -> _COMP2POLW<'_>
pub fn comp2pol(&mut self) -> _COMP2POLW<'_>
Bit 27 - Comparator 2 output polarity
sourcepub fn comp2hyst(&mut self) -> _COMP2HYSTW<'_>
pub fn comp2hyst(&mut self) -> _COMP2HYSTW<'_>
Bits 28:29 - Comparator 2 hysteresis
sourcepub fn comp2lock(&mut self) -> _COMP2LOCKW<'_>
pub fn comp2lock(&mut self) -> _COMP2LOCKW<'_>
Bit 31 - Comparator 2 lock
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