Type Alias gd32e1::gd32e103::gpioa::ctl1::Md8W

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

Field MD8 writer - Port x mode bits (x = 8)

Aliased Type§

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

Implementations§

source§

impl<'a, REG> Md8W<'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