Type Alias gd32f1::gd32f190::gpioc::ctl::Ctl0W

source ·
pub type Ctl0W<'a, REG> = FieldWriterSafe<'a, REG, 2, Ctl0>;
Expand description

Field CTL0 writer - Port x configuration bits (y = 0..15)

Aliased Type§

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

Implementations§

source§

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

source

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

Input mode (reset state)

source

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

General purpose output mode

source

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

Alternate function mode

source

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

Analog mode