Type Alias R

Source
pub type R = R<GPIO_CONFIG_SPEC>;
Expand description

Register gpio_config[%s] reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn input_function(&self) -> INPUT_FUNCTION_R

Bit 0 - Enable input signal

Source

pub fn schmitt(&self) -> SCHMITT_R

Bit 1 - Enable schmitt trigger

Source

pub fn drive(&self) -> DRIVE_R

Bits 2:3 - Drive strength

Source

pub fn pull_up(&self) -> PULL_UP_R

Bit 4 - Enable internal pull-up

Source

pub fn pull_down(&self) -> PULL_DOWN_R

Bit 5 - Enable internal pull-down

Source

pub fn output_function(&self) -> OUTPUT_FUNCTION_R

Bit 6 - Enable output signal

Source

pub fn alternate(&self) -> ALTERNATE_R

Bits 8:12 - Pin alternate function switch

Source

pub fn interrupt_mode(&self) -> INTERRUPT_MODE_R

Bits 16:19 - Select pin interrupt mode

Source

pub fn interrupt_clear(&self) -> INTERRUPT_CLEAR_R

Bit 20 - Clear pin interrupt flag

Source

pub fn interrupt_state(&self) -> INTERRUPT_STATE_R

Bit 21 - Pin interrupt state

Source

pub fn interrupt_mask(&self) -> INTERRUPT_MASK_R

Bit 22 - Pin interrupt mask

Source

pub fn output_value(&self) -> OUTPUT_VALUE_R

Bit 24 - Output value

Source

pub fn input_value(&self) -> INPUT_VALUE_R

Bit 28 - Input value

Source

pub fn pin_mode(&self) -> PIN_MODE_R

Bits 30:31 - Pin input/output mode switch