pub trait InputPin: Pin {
// Required methods
fn set_to_input(&mut self) -> &mut Self;
fn enable_input(&mut self, on: bool) -> &mut Self;
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self;
fn is_input_high(&self) -> bool;
fn connect_input_to_peripheral(&mut self, signal: InputSignal) -> &mut Self;
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool,
) -> &mut Self;
fn disconnect_input_from_peripheral(
&mut self,
signal: InputSignal,
) -> &mut Self;
}
Required Methods§
fn set_to_input(&mut self) -> &mut Self
fn enable_input(&mut self, on: bool) -> &mut Self
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
fn is_input_high(&self) -> bool
fn connect_input_to_peripheral(&mut self, signal: InputSignal) -> &mut Self
fn connect_input_to_peripheral_with_options( &mut self, signal: InputSignal, invert: bool, force_via_gpio_mux: bool, ) -> &mut Self
Sourcefn disconnect_input_from_peripheral(&mut self, signal: InputSignal) -> &mut Self
fn disconnect_input_from_peripheral(&mut self, signal: InputSignal) -> &mut Self
Remove a connected signal
from this input pin.
Clears the entry in the GPIO matrix / IO mux that associates this input
pin with the given input signal
. Any other
connected signals remain intact.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.