Struct gd32f1x0_hal::pac::gpioa::pud::W[][src]

pub struct W(_);
Expand description

Register PUD writer

Implementations

impl W[src]

pub fn pud15(&mut self) -> PUD15_W<'_>[src]

Bits 30:31 - Pin 15 pull-up or pull-down bits

pub fn pud14(&mut self) -> PUD14_W<'_>[src]

Bits 28:29 - Pin 14 pull-up or pull-down bits

pub fn pud13(&mut self) -> PUD13_W<'_>[src]

Bits 26:27 - Pin 13 pull-up or pull-down bits

pub fn pud12(&mut self) -> PUD12_W<'_>[src]

Bits 24:25 - Pin 12 pull-up or pull-down bits

pub fn pud11(&mut self) -> PUD11_W<'_>[src]

Bits 22:23 - Pin 11 pull-up or pull-down bits

pub fn pud10(&mut self) -> PUD10_W<'_>[src]

Bits 20:21 - Pin 10 pull-up or pull-down bits

pub fn pud9(&mut self) -> PUD9_W<'_>[src]

Bits 18:19 - Pin 9 pull-up or pull-down bits

pub fn pud8(&mut self) -> PUD8_W<'_>[src]

Bits 16:17 - Pin 8 pull-up or pull-down bits

pub fn pud7(&mut self) -> PUD7_W<'_>[src]

Bits 14:15 - Pin 7 pull-up or pull-down bits

pub fn pud6(&mut self) -> PUD6_W<'_>[src]

Bits 12:13 - Pin 6 pull-up or pull-down bits

pub fn pud5(&mut self) -> PUD5_W<'_>[src]

Bits 10:11 - Pin 5 pull-up or pull-down bits

pub fn pud4(&mut self) -> PUD4_W<'_>[src]

Bits 8:9 - Pin 4 pull-up or pull-down bits

pub fn pud3(&mut self) -> PUD3_W<'_>[src]

Bits 6:7 - Pin 3 pull-up or pull-down bits

pub fn pud2(&mut self) -> PUD2_W<'_>[src]

Bits 4:5 - Pin 2 pull-up or pull-down bits

pub fn pud1(&mut self) -> PUD1_W<'_>[src]

Bits 2:3 - Pin 1 pull-up or pull-down bits

pub fn pud0(&mut self) -> PUD0_W<'_>[src]

Bits 0:1 - Pin 0 pull-up or pull-down bits

pub unsafe fn bits(&mut self, bits: u32) -> &mut W[src]

Writes raw bits to the register.

Methods from Deref<Target = W<PUD_SPEC>>

pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>[src]

Writes raw bits to the register.

Trait Implementations

impl Deref for W[src]

type Target = W<PUD_SPEC>

The resulting type after dereferencing.

pub fn deref(&self) -> &<W as Deref>::Target[src]

Dereferences the value.

impl DerefMut for W[src]

pub fn deref_mut(&mut self) -> &mut <W as Deref>::Target[src]

Mutably dereferences the value.

impl From<W<PUD_SPEC>> for W[src]

pub fn from(writer: W<PUD_SPEC>) -> W[src]

Performs the conversion.

Auto Trait Implementations

impl Send for W

impl Sync for W

impl Unpin for W

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.