pub struct W(_);
Expand description
Register AFSEL0
writer
Implementations
sourceimpl W
impl W
sourcepub fn sel7(
&mut self
) -> FieldWriterRaw<'_, u32, AFSEL0_SPEC, u8, SEL0_A, Unsafe, 4_u8, 0_u8>
pub fn sel7(
&mut self
) -> FieldWriterRaw<'_, u32, AFSEL0_SPEC, u8, SEL0_A, Unsafe, 4_u8, 0_u8>
Bits 28:31 - Pin 7 alternate function selected
sourcepub fn sel6(
&mut self
) -> FieldWriterRaw<'_, u32, AFSEL0_SPEC, u8, SEL0_A, Unsafe, 4_u8, 0_u8>
pub fn sel6(
&mut self
) -> FieldWriterRaw<'_, u32, AFSEL0_SPEC, u8, SEL0_A, Unsafe, 4_u8, 0_u8>
Bits 24:27 - Pin 6 alternate function selected
sourcepub fn sel5(
&mut self
) -> FieldWriterRaw<'_, u32, AFSEL0_SPEC, u8, SEL0_A, Unsafe, 4_u8, 0_u8>
pub fn sel5(
&mut self
) -> FieldWriterRaw<'_, u32, AFSEL0_SPEC, u8, SEL0_A, Unsafe, 4_u8, 0_u8>
Bits 20:23 - Pin 5 alternate function selected
sourcepub fn sel4(
&mut self
) -> FieldWriterRaw<'_, u32, AFSEL0_SPEC, u8, SEL0_A, Unsafe, 4_u8, 0_u8>
pub fn sel4(
&mut self
) -> FieldWriterRaw<'_, u32, AFSEL0_SPEC, u8, SEL0_A, Unsafe, 4_u8, 0_u8>
Bits 16:19 - Pin 4 alternate function selected
sourcepub fn sel3(
&mut self
) -> FieldWriterRaw<'_, u32, AFSEL0_SPEC, u8, SEL0_A, Unsafe, 4_u8, 0_u8>
pub fn sel3(
&mut self
) -> FieldWriterRaw<'_, u32, AFSEL0_SPEC, u8, SEL0_A, Unsafe, 4_u8, 0_u8>
Bits 12:15 - Pin 3 alternate function selected
sourcepub fn sel2(
&mut self
) -> FieldWriterRaw<'_, u32, AFSEL0_SPEC, u8, SEL0_A, Unsafe, 4_u8, 0_u8>
pub fn sel2(
&mut self
) -> FieldWriterRaw<'_, u32, AFSEL0_SPEC, u8, SEL0_A, Unsafe, 4_u8, 0_u8>
Bits 8:11 - Pin 2 alternate function selected
sourcepub fn sel1(
&mut self
) -> FieldWriterRaw<'_, u32, AFSEL0_SPEC, u8, SEL0_A, Unsafe, 4_u8, 0_u8>
pub fn sel1(
&mut self
) -> FieldWriterRaw<'_, u32, AFSEL0_SPEC, u8, SEL0_A, Unsafe, 4_u8, 0_u8>
Bits 4:7 - Pin 1 alternate function selected
Methods from Deref<Target = W<AFSEL0_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<AFSEL0_SPEC>> for W
impl From<W<AFSEL0_SPEC>> for W
sourcefn from(writer: W<AFSEL0_SPEC>) -> W
fn from(writer: W<AFSEL0_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