Type Alias gd32e1::gd32e103::gpioa::ctl0::Md0W

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

Field MD0 writer - Port x mode bits (x = 0)

Aliased Type§

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

Implementations§

source§

impl<'a, REG> Md0W<'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 speed10m(self) -> &'a mut W<REG>

Output mode ,max speed 10MHz

source

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

Output mode ,max speed 2MHz

source

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

Output mode ,max speed 50MHz