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§
Sourcefn set_input_pullup_mode(&mut self)
fn set_input_pullup_mode(&mut self)
Sets the pin to input mode with pullup resistor.
Sourcefn set_output_mode(&mut self)
fn set_output_mode(&mut self)
Sets the pin to output mode.