pub struct W(_);
Expand description
Register CH5CTL
writer
Implementations
sourceimpl W
impl W
sourcepub fn chen(&mut self) -> BitWriterRaw<'_, u32, CH5CTL_SPEC, CHEN_A, BitM, 0_u8>
pub fn chen(&mut self) -> BitWriterRaw<'_, u32, CH5CTL_SPEC, CHEN_A, BitM, 0_u8>
Bit 0 - Channel enable
sourcepub fn ftfie(
&mut self
) -> BitWriterRaw<'_, u32, CH5CTL_SPEC, FTFIE_A, BitM, 1_u8>
pub fn ftfie(
&mut self
) -> BitWriterRaw<'_, u32, CH5CTL_SPEC, FTFIE_A, BitM, 1_u8>
Bit 1 - Enable bit for full transfer finish interrupt
sourcepub fn htfie(
&mut self
) -> BitWriterRaw<'_, u32, CH5CTL_SPEC, HTFIE_A, BitM, 2_u8>
pub fn htfie(
&mut self
) -> BitWriterRaw<'_, u32, CH5CTL_SPEC, HTFIE_A, BitM, 2_u8>
Bit 2 - Enable bit for half transfer finish interrupt
sourcepub fn errie(
&mut self
) -> BitWriterRaw<'_, u32, CH5CTL_SPEC, ERRIE_A, BitM, 3_u8>
pub fn errie(
&mut self
) -> BitWriterRaw<'_, u32, CH5CTL_SPEC, ERRIE_A, BitM, 3_u8>
Bit 3 - Enable bit for tranfer access error interrupt
sourcepub fn dir(&mut self) -> BitWriterRaw<'_, u32, CH5CTL_SPEC, DIR_A, BitM, 4_u8>
pub fn dir(&mut self) -> BitWriterRaw<'_, u32, CH5CTL_SPEC, DIR_A, BitM, 4_u8>
Bit 4 - Transfer mode
sourcepub fn cmen(&mut self) -> BitWriterRaw<'_, u32, CH5CTL_SPEC, CMEN_A, BitM, 5_u8>
pub fn cmen(&mut self) -> BitWriterRaw<'_, u32, CH5CTL_SPEC, CMEN_A, BitM, 5_u8>
Bit 5 - Circular mode enable
sourcepub fn pnaga(
&mut self
) -> BitWriterRaw<'_, u32, CH5CTL_SPEC, PNAGA_A, BitM, 6_u8>
pub fn pnaga(
&mut self
) -> BitWriterRaw<'_, u32, CH5CTL_SPEC, PNAGA_A, BitM, 6_u8>
Bit 6 - Next address generation algorithm of peripheral
sourcepub fn mnaga(
&mut self
) -> BitWriterRaw<'_, u32, CH5CTL_SPEC, PNAGA_A, BitM, 6_u8>
pub fn mnaga(
&mut self
) -> BitWriterRaw<'_, u32, CH5CTL_SPEC, PNAGA_A, BitM, 6_u8>
Bit 7 - Next address generation algorithm of memory
sourcepub fn pwidth(
&mut self
) -> FieldWriterRaw<'_, u32, CH5CTL_SPEC, u8, PWIDTH_A, Unsafe, 2_u8, 8_u8>
pub fn pwidth(
&mut self
) -> FieldWriterRaw<'_, u32, CH5CTL_SPEC, u8, PWIDTH_A, Unsafe, 2_u8, 8_u8>
Bits 8:9 - Transfer data size of peripheral
sourcepub fn mwidth(
&mut self
) -> FieldWriterRaw<'_, u32, CH5CTL_SPEC, u8, PWIDTH_A, Unsafe, 2_u8, 8_u8>
pub fn mwidth(
&mut self
) -> FieldWriterRaw<'_, u32, CH5CTL_SPEC, u8, PWIDTH_A, Unsafe, 2_u8, 8_u8>
Bits 10:11 - Transfer data size of memory
sourcepub fn prio(
&mut self
) -> FieldWriterRaw<'_, u32, CH5CTL_SPEC, u8, PRIO_A, Safe, 2_u8, 12_u8>
pub fn prio(
&mut self
) -> FieldWriterRaw<'_, u32, CH5CTL_SPEC, u8, PRIO_A, Safe, 2_u8, 12_u8>
Bits 12:13 - Priority Level of this channel
sourcepub fn m2m(&mut self) -> BitWriterRaw<'_, u32, CH5CTL_SPEC, M2M_A, BitM, 14_u8>
pub fn m2m(&mut self) -> BitWriterRaw<'_, u32, CH5CTL_SPEC, M2M_A, BitM, 14_u8>
Bit 14 - Memory to memory mode
Methods from Deref<Target = W<CH5CTL_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<CH5CTL_SPEC>> for W
impl From<W<CH5CTL_SPEC>> for W
sourcefn from(writer: W<CH5CTL_SPEC>) -> W
fn from(writer: W<CH5CTL_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