pub type W = W<GPIO_CONFIG_SPEC>;
Expand description
Register gpio_config[%s]
writer
Aliased Type§
struct W { /* private fields */ }
Implementations§
Source§impl W
impl W
Sourcepub fn input_function(&mut self) -> INPUT_FUNCTION_W<'_, GPIO_CONFIG_SPEC>
pub fn input_function(&mut self) -> INPUT_FUNCTION_W<'_, GPIO_CONFIG_SPEC>
Bit 0 - Enable input signal
Sourcepub fn schmitt(&mut self) -> SCHMITT_W<'_, GPIO_CONFIG_SPEC>
pub fn schmitt(&mut self) -> SCHMITT_W<'_, GPIO_CONFIG_SPEC>
Bit 1 - Enable schmitt trigger
Sourcepub fn drive(&mut self) -> DRIVE_W<'_, GPIO_CONFIG_SPEC>
pub fn drive(&mut self) -> DRIVE_W<'_, GPIO_CONFIG_SPEC>
Bits 2:3 - Drive strength
Sourcepub fn pull_up(&mut self) -> PULL_UP_W<'_, GPIO_CONFIG_SPEC>
pub fn pull_up(&mut self) -> PULL_UP_W<'_, GPIO_CONFIG_SPEC>
Bit 4 - Enable internal pull-up
Sourcepub fn pull_down(&mut self) -> PULL_DOWN_W<'_, GPIO_CONFIG_SPEC>
pub fn pull_down(&mut self) -> PULL_DOWN_W<'_, GPIO_CONFIG_SPEC>
Bit 5 - Enable internal pull-down
Sourcepub fn output_function(&mut self) -> OUTPUT_FUNCTION_W<'_, GPIO_CONFIG_SPEC>
pub fn output_function(&mut self) -> OUTPUT_FUNCTION_W<'_, GPIO_CONFIG_SPEC>
Bit 6 - Enable output signal
Sourcepub fn alternate(&mut self) -> ALTERNATE_W<'_, GPIO_CONFIG_SPEC>
pub fn alternate(&mut self) -> ALTERNATE_W<'_, GPIO_CONFIG_SPEC>
Bits 8:12 - Pin alternate function switch
Sourcepub fn interrupt_mode(&mut self) -> INTERRUPT_MODE_W<'_, GPIO_CONFIG_SPEC>
pub fn interrupt_mode(&mut self) -> INTERRUPT_MODE_W<'_, GPIO_CONFIG_SPEC>
Bits 16:19 - Select pin interrupt mode
Sourcepub fn interrupt_clear(&mut self) -> INTERRUPT_CLEAR_W<'_, GPIO_CONFIG_SPEC>
pub fn interrupt_clear(&mut self) -> INTERRUPT_CLEAR_W<'_, GPIO_CONFIG_SPEC>
Bit 20 - Clear pin interrupt flag
Sourcepub fn interrupt_mask(&mut self) -> INTERRUPT_MASK_W<'_, GPIO_CONFIG_SPEC>
pub fn interrupt_mask(&mut self) -> INTERRUPT_MASK_W<'_, GPIO_CONFIG_SPEC>
Bit 22 - Pin interrupt mask
Sourcepub fn output_value(&mut self) -> OUTPUT_VALUE_W<'_, GPIO_CONFIG_SPEC>
pub fn output_value(&mut self) -> OUTPUT_VALUE_W<'_, GPIO_CONFIG_SPEC>
Bit 24 - Output value
Sourcepub fn output_set(&mut self) -> OUTPUT_SET_W<'_, GPIO_CONFIG_SPEC>
pub fn output_set(&mut self) -> OUTPUT_SET_W<'_, GPIO_CONFIG_SPEC>
Bit 25 - Set output value to 1
When sets and clears at the same, only set will take effect.
Sourcepub fn output_clear(&mut self) -> OUTPUT_CLEAR_W<'_, GPIO_CONFIG_SPEC>
pub fn output_clear(&mut self) -> OUTPUT_CLEAR_W<'_, GPIO_CONFIG_SPEC>
Bit 26 - Clear output value to 0
When sets and clears at the same, only set will take effect.
Sourcepub fn pin_mode(&mut self) -> PIN_MODE_W<'_, GPIO_CONFIG_SPEC>
pub fn pin_mode(&mut self) -> PIN_MODE_W<'_, GPIO_CONFIG_SPEC>
Bits 30:31 - Pin input/output mode switch