Type Alias rp2040_pac::pads_bank0::swclk::W

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

Register SWCLK writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

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

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

source

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

Bit 1 - Enable schmitt trigger

source

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

Bit 2 - Pull down enable

source

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

Bit 3 - Pull up enable

source

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

Bits 4:5 - Drive strength.

source

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

Bit 6 - Input enable

source

pub fn od(&mut self) -> OD_W<'_, SWCLK_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