Type Alias rp2040_pac::pads_bank0::gpio::R

source ·
pub type R = R<GPIO_SPEC>;
Expand description

Register GPIO%s reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn slewfast(&self) -> SLEWFAST_R

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

source

pub fn schmitt(&self) -> SCHMITT_R

Bit 1 - Enable schmitt trigger

source

pub fn pde(&self) -> PDE_R

Bit 2 - Pull down enable

source

pub fn pue(&self) -> PUE_R

Bit 3 - Pull up enable

source

pub fn drive(&self) -> DRIVE_R

Bits 4:5 - Drive strength.

source

pub fn ie(&self) -> IE_R

Bit 6 - Input enable

source

pub fn od(&self) -> OD_R

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