Trait IoPin

Source
pub trait IoPin {
    // Required methods
    fn set_input_pullup_mode(&mut self);
    fn set_output_mode(&mut self);
}
Expand description

Currently, the HAL library only supports InputPin and OutputPin, but we need a pin, which can be reconfigured. Therefore, the GPIO type used should also provide the following functions.

Required Methods§

Source

fn set_input_pullup_mode(&mut self)

Sets the pin to input mode with pullup resistor.

Source

fn set_output_mode(&mut self)

Sets the pin to output mode.

Implementors§