pub struct W(_);
Expand description
Register BDTR
writer
Implementations
sourceimpl W
impl W
sourcepub fn dtg(
&mut self
) -> FieldWriterRaw<'_, u32, BDTR_SPEC, u8, u8, Unsafe, 8, 0>
pub fn dtg(
&mut self
) -> FieldWriterRaw<'_, u32, BDTR_SPEC, u8, u8, Unsafe, 8, 0>
Bits 0:7 - Dead-time generator setup
sourcepub fn lock(
&mut self
) -> FieldWriterRaw<'_, u32, BDTR_SPEC, u8, u8, Unsafe, 2, 8>
pub fn lock(
&mut self
) -> FieldWriterRaw<'_, u32, BDTR_SPEC, u8, u8, Unsafe, 2, 8>
Bits 8:9 - Lock configuration
sourcepub fn ossi(&mut self) -> BitWriterRaw<'_, u32, BDTR_SPEC, OSSI_A, BitM, 10>
pub fn ossi(&mut self) -> BitWriterRaw<'_, u32, BDTR_SPEC, OSSI_A, BitM, 10>
Bit 10 - Off-state selection for Idle mode
sourcepub fn ossr(&mut self) -> BitWriterRaw<'_, u32, BDTR_SPEC, OSSR_A, BitM, 11>
pub fn ossr(&mut self) -> BitWriterRaw<'_, u32, BDTR_SPEC, OSSR_A, BitM, 11>
Bit 11 - Off-state selection for Run mode
sourcepub fn bke(&mut self) -> BitWriterRaw<'_, u32, BDTR_SPEC, bool, BitM, 12>
pub fn bke(&mut self) -> BitWriterRaw<'_, u32, BDTR_SPEC, bool, BitM, 12>
Bit 12 - Break enable
sourcepub fn bkp(&mut self) -> BitWriterRaw<'_, u32, BDTR_SPEC, bool, BitM, 13>
pub fn bkp(&mut self) -> BitWriterRaw<'_, u32, BDTR_SPEC, bool, BitM, 13>
Bit 13 - Break polarity
sourcepub fn aoe(&mut self) -> BitWriterRaw<'_, u32, BDTR_SPEC, bool, BitM, 14>
pub fn aoe(&mut self) -> BitWriterRaw<'_, u32, BDTR_SPEC, bool, BitM, 14>
Bit 14 - Automatic output enable
sourcepub fn moe(&mut self) -> BitWriterRaw<'_, u32, BDTR_SPEC, MOE_A, BitM, 15>
pub fn moe(&mut self) -> BitWriterRaw<'_, u32, BDTR_SPEC, MOE_A, BitM, 15>
Bit 15 - Main output enable
sourcepub fn bkf(
&mut self
) -> FieldWriterRaw<'_, u32, BDTR_SPEC, u8, u8, Unsafe, 4, 16>
pub fn bkf(
&mut self
) -> FieldWriterRaw<'_, u32, BDTR_SPEC, u8, u8, Unsafe, 4, 16>
Bits 16:19 - Break filter
sourcepub fn bk2f(
&mut self
) -> FieldWriterRaw<'_, u32, BDTR_SPEC, u8, u8, Unsafe, 4, 20>
pub fn bk2f(
&mut self
) -> FieldWriterRaw<'_, u32, BDTR_SPEC, u8, u8, Unsafe, 4, 20>
Bits 20:23 - Break 2 filter
sourcepub fn bk2e(&mut self) -> BitWriterRaw<'_, u32, BDTR_SPEC, bool, BitM, 24>
pub fn bk2e(&mut self) -> BitWriterRaw<'_, u32, BDTR_SPEC, bool, BitM, 24>
Bit 24 - Break 2 enable
Methods from Deref<Target = W<BDTR_SPEC>>
sourcepub 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
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