Struct stm32wlxx_hal::pac::tim1::af2::W
pub struct W(/* private fields */);
Available on crate feature
stm32wl5x_cm4
only.Expand description
Register AF2
writer
Implementations§
§impl W
impl W
pub fn bk2cmp2p(
&mut self
) -> BitWriterRaw<'_, u32, AF2_SPEC, BK2CMP2P_A, BitM, 11>
pub fn bk2cmp2p( &mut self ) -> BitWriterRaw<'_, u32, AF2_SPEC, BK2CMP2P_A, BitM, 11>
Bit 11 - BRK2 COMP2 input polarity
pub fn bk2cmp1p(
&mut self
) -> BitWriterRaw<'_, u32, AF2_SPEC, BK2CMP1P_A, BitM, 10>
pub fn bk2cmp1p( &mut self ) -> BitWriterRaw<'_, u32, AF2_SPEC, BK2CMP1P_A, BitM, 10>
Bit 10 - BRK2 COMP1 input polarity
pub fn bk2inp(&mut self) -> BitWriterRaw<'_, u32, AF2_SPEC, BK2INP_A, BitM, 9>
pub fn bk2inp(&mut self) -> BitWriterRaw<'_, u32, AF2_SPEC, BK2INP_A, BitM, 9>
Bit 9 - BRK2 BKIN2 input polarity
pub fn bk2cmp2e(
&mut self
) -> BitWriterRaw<'_, u32, AF2_SPEC, BK2CMP2E_A, BitM, 2>
pub fn bk2cmp2e( &mut self ) -> BitWriterRaw<'_, u32, AF2_SPEC, BK2CMP2E_A, BitM, 2>
Bit 2 - BRK2 COMP2 enable
pub fn bk2cmp1e(
&mut self
) -> BitWriterRaw<'_, u32, AF2_SPEC, BK2CMP1E_A, BitM, 1>
pub fn bk2cmp1e( &mut self ) -> BitWriterRaw<'_, u32, AF2_SPEC, BK2CMP1E_A, BitM, 1>
Bit 1 - BRK2 COMP1 enable
Methods from Deref<Target = W<AF2_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§
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