# PIN_R in k210_pac::gpio::direction - Rust
Reader of fields `pin(0-7)`
Keywords: rust, rustlang, rust-lang, PIN_R

# Type Definition k210_pac::gpio::direction::PIN_R

source · [−]

    pub type PIN_R = R<bool, PIN_A>;

Expand description

Reader of fields `pin(0-7)`

## 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`