Trait kernel::hil::gpio::ConfigureInputOutput
source · pub trait ConfigureInputOutput: Configure {
// Required methods
fn make_input_output(&self) -> Configuration;
fn is_input_output(&self) -> bool;
}
Expand description
Configuration trait for pins that can be simultaneously input and output. Having this trait allows an implementation to statically verify this is possible.
Required Methods§
sourcefn make_input_output(&self) -> Configuration
fn make_input_output(&self) -> Configuration
Make the pin a simultaneously input and output; should always
return Configuration::InputOutput
.