Type Alias rp2040_pac::pads_bank0::swd::W

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

Register SWD writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn slewfast(&mut self) -> SLEWFAST_W<'_, SWD_SPEC>

Bit 0 - Slew rate control. 1 = Fast, 0 = Slow

source

pub fn schmitt(&mut self) -> SCHMITT_W<'_, SWD_SPEC>

Bit 1 - Enable schmitt trigger

source

pub fn pde(&mut self) -> PDE_W<'_, SWD_SPEC>

Bit 2 - Pull down enable

source

pub fn pue(&mut self) -> PUE_W<'_, SWD_SPEC>

Bit 3 - Pull up enable

source

pub fn drive(&mut self) -> DRIVE_W<'_, SWD_SPEC>

Bits 4:5 - Drive strength.

source

pub fn ie(&mut self) -> IE_W<'_, SWD_SPEC>

Bit 6 - Input enable

source

pub fn od(&mut self) -> OD_W<'_, SWD_SPEC>

Bit 7 - Output disable. Has priority over output enable from peripherals

source

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

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual