Type Alias atsamd51p::port::group::pincfg::W

source ·
pub type W = W<PINCFG_SPEC>;
Expand description

Register PINCFG[%s] writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn pmuxen(&mut self) -> PMUXEN_W<'_, PINCFG_SPEC, 0>

Bit 0 - Peripheral Multiplexer Enable

source

pub fn inen(&mut self) -> INEN_W<'_, PINCFG_SPEC, 1>

Bit 1 - Input Enable

source

pub fn pullen(&mut self) -> PULLEN_W<'_, PINCFG_SPEC, 2>

Bit 2 - Pull Enable

source

pub fn drvstr(&mut self) -> DRVSTR_W<'_, PINCFG_SPEC, 6>

Bit 6 - Output Driver Strength Selection

source

pub unsafe fn bits(&mut self, bits: u8) -> &mut Self

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual