Type Alias gd32f1::gd32f190::gpiod::pud::Pud0W

source ·
pub type Pud0W<'a, REG> = FieldWriter<'a, REG, 2, Pud0>;
Expand description

Field PUD0 writer - Pin 0 pull-up or pull-down bits

Aliased Type§

struct Pud0W<'a, REG> { /* private fields */ }

Implementations§

source§

impl<'a, REG> Pud0W<'a, REG>
where REG: Writable + RegisterSpec, REG::Ux: From<u8>,

source

pub fn floating(self) -> &'a mut W<REG>

No pull-up, pull-down (reset state)

source

pub fn pull_up(self) -> &'a mut W<REG>

Pull-up

source

pub fn pull_down(self) -> &'a mut W<REG>

Pull-down