k210_pac::gpio::direction

Type Alias PIN_R

Source
pub type PIN_R = R<bool, PIN_A>;
Expand description

Reader of fields pin(0-7)

Aliased Type§

struct PIN_R { /* private fields */ }

Implementations§

Source§

impl PIN_R

Source

pub fn variant(&self) -> PIN_A

Get enumerated values variant

Source

pub fn is_input(&self) -> bool

Checks if the value of the field is INPUT

Source

pub fn is_output(&self) -> bool

Checks if the value of the field is OUTPUT