Struct stm32wlxx_hal::pac::comp::comp1_csr::W
pub struct W(/* private fields */);
Available on crate feature
stm32wl5x_cm4
only.Expand description
Register COMP1_CSR
writer
Implementations§
§impl W
impl W
pub fn lock(
&mut self
) -> BitWriterRaw<'_, u32, COMP1_CSR_SPEC, LOCK_A, BitM, 31>
pub fn lock( &mut self ) -> BitWriterRaw<'_, u32, COMP1_CSR_SPEC, LOCK_A, BitM, 31>
Bit 31 - COMP1_CSR register lock bit
pub fn inmesel(
&mut self
) -> FieldWriterRaw<'_, u32, COMP1_CSR_SPEC, u8, INMESEL_A, Unsafe, 2, 25>
pub fn inmesel( &mut self ) -> FieldWriterRaw<'_, u32, COMP1_CSR_SPEC, u8, INMESEL_A, Unsafe, 2, 25>
Bits 25:26 - comparator 1 input minus extended selection bits.
pub fn scalen(
&mut self
) -> BitWriterRaw<'_, u32, COMP1_CSR_SPEC, SCALEN_A, BitM, 23>
pub fn scalen( &mut self ) -> BitWriterRaw<'_, u32, COMP1_CSR_SPEC, SCALEN_A, BitM, 23>
Bit 23 - Voltage scaler enable bit
pub fn brgen(
&mut self
) -> BitWriterRaw<'_, u32, COMP1_CSR_SPEC, BRGEN_A, BitM, 22>
pub fn brgen( &mut self ) -> BitWriterRaw<'_, u32, COMP1_CSR_SPEC, BRGEN_A, BitM, 22>
Bit 22 - Scaler bridge enable
pub fn blanking(
&mut self
) -> FieldWriterRaw<'_, u32, COMP1_CSR_SPEC, u8, BLANKING_A, Unsafe, 3, 18>
pub fn blanking( &mut self ) -> FieldWriterRaw<'_, u32, COMP1_CSR_SPEC, u8, BLANKING_A, Unsafe, 3, 18>
Bits 18:20 - Comparator 1 blanking source selection bits
pub fn hyst(
&mut self
) -> FieldWriterRaw<'_, u32, COMP1_CSR_SPEC, u8, HYST_A, Safe, 2, 16>
pub fn hyst( &mut self ) -> FieldWriterRaw<'_, u32, COMP1_CSR_SPEC, u8, HYST_A, Safe, 2, 16>
Bits 16:17 - Comparator 1 hysteresis selection bits
pub fn polarity(
&mut self
) -> BitWriterRaw<'_, u32, COMP1_CSR_SPEC, POLARITY_A, BitM, 15>
pub fn polarity( &mut self ) -> BitWriterRaw<'_, u32, COMP1_CSR_SPEC, POLARITY_A, BitM, 15>
Bit 15 - Comparator 1 polarity selection bit
pub fn inpsel(
&mut self
) -> FieldWriterRaw<'_, u32, COMP1_CSR_SPEC, u8, INPSEL_A, Unsafe, 2, 7>
pub fn inpsel( &mut self ) -> FieldWriterRaw<'_, u32, COMP1_CSR_SPEC, u8, INPSEL_A, Unsafe, 2, 7>
Bits 7:8 - Comparator1 input plus selection bit
pub fn inmsel(
&mut self
) -> FieldWriterRaw<'_, u32, COMP1_CSR_SPEC, u8, INMSEL_A, Unsafe, 3, 4>
pub fn inmsel( &mut self ) -> FieldWriterRaw<'_, u32, COMP1_CSR_SPEC, u8, INMSEL_A, Unsafe, 3, 4>
Bits 4:6 - Comparator 1 input minus selection bits
pub fn pwrmode(
&mut self
) -> FieldWriterRaw<'_, u32, COMP1_CSR_SPEC, u8, PWRMODE_A, Safe, 2, 2>
pub fn pwrmode( &mut self ) -> FieldWriterRaw<'_, u32, COMP1_CSR_SPEC, u8, PWRMODE_A, Safe, 2, 2>
Bits 2:3 - Power Mode of the comparator 1
pub fn en(&mut self) -> BitWriterRaw<'_, u32, COMP1_CSR_SPEC, EN_A, BitM, 0>
pub fn en(&mut self) -> BitWriterRaw<'_, u32, COMP1_CSR_SPEC, EN_A, BitM, 0>
Bit 0 - Comparator 1 enable bit
Methods from Deref<Target = W<COMP1_CSR_SPEC>>§
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.
Trait Implementations§
§impl From<W<COMP1_CSR_SPEC>> for W
impl From<W<COMP1_CSR_SPEC>> for W
§fn from(writer: W<COMP1_CSR_SPEC>) -> W
fn from(writer: W<COMP1_CSR_SPEC>) -> W
Converts to this type from the input type.
Auto Trait Implementations§
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