pub struct W(_);
Expand description
Register CHCTL2
writer
Implementations
sourceimpl W
impl W
sourcepub fn ch1np(
&mut self
) -> BitWriterRaw<'_, u16, CHCTL2_SPEC, CH0P_A, BitM, 7_u8>
pub fn ch1np(
&mut self
) -> BitWriterRaw<'_, u16, CHCTL2_SPEC, CH0P_A, BitM, 7_u8>
Bit 7 - Channel 1 complementary output polarity
sourcepub fn ch1p(&mut self) -> BitWriterRaw<'_, u16, CHCTL2_SPEC, CH0P_A, BitM, 5_u8>
pub fn ch1p(&mut self) -> BitWriterRaw<'_, u16, CHCTL2_SPEC, CH0P_A, BitM, 5_u8>
Bit 5 - Channel 1 polarity
sourcepub fn ch1en(
&mut self
) -> BitWriterRaw<'_, u16, CHCTL2_SPEC, CH0EN_A, BitM, 4_u8>
pub fn ch1en(
&mut self
) -> BitWriterRaw<'_, u16, CHCTL2_SPEC, CH0EN_A, BitM, 4_u8>
Bit 4 - Channel 1 polarity
sourcepub fn ch0np(
&mut self
) -> BitWriterRaw<'_, u16, CHCTL2_SPEC, CH0P_A, BitM, 3_u8>
pub fn ch0np(
&mut self
) -> BitWriterRaw<'_, u16, CHCTL2_SPEC, CH0P_A, BitM, 3_u8>
Bit 3 - Channel 0 complementary output polarity
sourcepub fn ch0nen(
&mut self
) -> BitWriterRaw<'_, u16, CHCTL2_SPEC, CH0EN_A, BitM, 2_u8>
pub fn ch0nen(
&mut self
) -> BitWriterRaw<'_, u16, CHCTL2_SPEC, CH0EN_A, BitM, 2_u8>
Bit 2 - Channel 0 complementary output enable
sourcepub fn ch0p(&mut self) -> BitWriterRaw<'_, u16, CHCTL2_SPEC, CH0P_A, BitM, 1_u8>
pub fn ch0p(&mut self) -> BitWriterRaw<'_, u16, CHCTL2_SPEC, CH0P_A, BitM, 1_u8>
Bit 1 - Channel 0 polarity
sourcepub fn ch0en(
&mut self
) -> BitWriterRaw<'_, u16, CHCTL2_SPEC, CH0EN_A, BitM, 0_u8>
pub fn ch0en(
&mut self
) -> BitWriterRaw<'_, u16, CHCTL2_SPEC, CH0EN_A, BitM, 0_u8>
Bit 0 - Channel 0 enable
Methods from Deref<Target = W<CHCTL2_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
sourceimpl From<W<CHCTL2_SPEC>> for W
impl From<W<CHCTL2_SPEC>> for W
sourcefn from(writer: W<CHCTL2_SPEC>) -> W
fn from(writer: W<CHCTL2_SPEC>) -> W
Converts to this type from the input type.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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