[−][src]Trait esp32_hal::gpio::InputPin
Functions available on input pins
Required methods
fn set_to_input(&mut self) -> &mut Self
Set pad as input
Disables output, pull up/down resistors and sleep mode. Sets function to GPIO. Does not change sleep mode settings
fn enable_input(&mut self, on: bool) -> &mut Self
Enable/Disable input circuitry
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
Enable/Disable input circuitry while in sleep mode
fn is_input_high(&mut self) -> bool
Get state of input
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
Connect input to peripheral
invert
inverts the output signal and force_via_gpio_mux
forces the signal
to be routed through the gpio mux even when it could be routed directly via
the io mux.
Provided methods
fn connect_input_to_peripheral(&mut self, signal: InputSignal) -> &mut Self
Connect input to peripheral using default options
This is a wrapper around connect_input_to_peripheral_with_options, which sets all the options to false.
Implementors
impl<MODE> InputPin for Gpio0<MODE>
[src]
fn set_to_input(&mut self) -> &mut Self
[src]
fn enable_input(&mut self, on: bool) -> &mut Self
[src]
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn is_input_high(&mut self) -> bool
[src]
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
impl<MODE> InputPin for Gpio1<MODE>
[src]
fn set_to_input(&mut self) -> &mut Self
[src]
fn enable_input(&mut self, on: bool) -> &mut Self
[src]
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn is_input_high(&mut self) -> bool
[src]
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
impl<MODE> InputPin for Gpio2<MODE>
[src]
fn set_to_input(&mut self) -> &mut Self
[src]
fn enable_input(&mut self, on: bool) -> &mut Self
[src]
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn is_input_high(&mut self) -> bool
[src]
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
impl<MODE> InputPin for Gpio3<MODE>
[src]
fn set_to_input(&mut self) -> &mut Self
[src]
fn enable_input(&mut self, on: bool) -> &mut Self
[src]
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn is_input_high(&mut self) -> bool
[src]
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
impl<MODE> InputPin for Gpio4<MODE>
[src]
fn set_to_input(&mut self) -> &mut Self
[src]
fn enable_input(&mut self, on: bool) -> &mut Self
[src]
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn is_input_high(&mut self) -> bool
[src]
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
impl<MODE> InputPin for Gpio5<MODE>
[src]
fn set_to_input(&mut self) -> &mut Self
[src]
fn enable_input(&mut self, on: bool) -> &mut Self
[src]
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn is_input_high(&mut self) -> bool
[src]
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
impl<MODE> InputPin for Gpio6<MODE>
[src]
fn set_to_input(&mut self) -> &mut Self
[src]
fn enable_input(&mut self, on: bool) -> &mut Self
[src]
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn is_input_high(&mut self) -> bool
[src]
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
impl<MODE> InputPin for Gpio7<MODE>
[src]
fn set_to_input(&mut self) -> &mut Self
[src]
fn enable_input(&mut self, on: bool) -> &mut Self
[src]
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn is_input_high(&mut self) -> bool
[src]
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
impl<MODE> InputPin for Gpio8<MODE>
[src]
fn set_to_input(&mut self) -> &mut Self
[src]
fn enable_input(&mut self, on: bool) -> &mut Self
[src]
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn is_input_high(&mut self) -> bool
[src]
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
impl<MODE> InputPin for Gpio9<MODE>
[src]
fn set_to_input(&mut self) -> &mut Self
[src]
fn enable_input(&mut self, on: bool) -> &mut Self
[src]
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn is_input_high(&mut self) -> bool
[src]
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
impl<MODE> InputPin for Gpio10<MODE>
[src]
fn set_to_input(&mut self) -> &mut Self
[src]
fn enable_input(&mut self, on: bool) -> &mut Self
[src]
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn is_input_high(&mut self) -> bool
[src]
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
impl<MODE> InputPin for Gpio11<MODE>
[src]
fn set_to_input(&mut self) -> &mut Self
[src]
fn enable_input(&mut self, on: bool) -> &mut Self
[src]
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn is_input_high(&mut self) -> bool
[src]
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
impl<MODE> InputPin for Gpio12<MODE>
[src]
fn set_to_input(&mut self) -> &mut Self
[src]
fn enable_input(&mut self, on: bool) -> &mut Self
[src]
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn is_input_high(&mut self) -> bool
[src]
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
impl<MODE> InputPin for Gpio13<MODE>
[src]
fn set_to_input(&mut self) -> &mut Self
[src]
fn enable_input(&mut self, on: bool) -> &mut Self
[src]
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn is_input_high(&mut self) -> bool
[src]
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
impl<MODE> InputPin for Gpio14<MODE>
[src]
fn set_to_input(&mut self) -> &mut Self
[src]
fn enable_input(&mut self, on: bool) -> &mut Self
[src]
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn is_input_high(&mut self) -> bool
[src]
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
impl<MODE> InputPin for Gpio15<MODE>
[src]
fn set_to_input(&mut self) -> &mut Self
[src]
fn enable_input(&mut self, on: bool) -> &mut Self
[src]
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn is_input_high(&mut self) -> bool
[src]
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
impl<MODE> InputPin for Gpio16<MODE>
[src]
fn set_to_input(&mut self) -> &mut Self
[src]
fn enable_input(&mut self, on: bool) -> &mut Self
[src]
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn is_input_high(&mut self) -> bool
[src]
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
impl<MODE> InputPin for Gpio17<MODE>
[src]
fn set_to_input(&mut self) -> &mut Self
[src]
fn enable_input(&mut self, on: bool) -> &mut Self
[src]
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn is_input_high(&mut self) -> bool
[src]
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
impl<MODE> InputPin for Gpio18<MODE>
[src]
fn set_to_input(&mut self) -> &mut Self
[src]
fn enable_input(&mut self, on: bool) -> &mut Self
[src]
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn is_input_high(&mut self) -> bool
[src]
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
impl<MODE> InputPin for Gpio19<MODE>
[src]
fn set_to_input(&mut self) -> &mut Self
[src]
fn enable_input(&mut self, on: bool) -> &mut Self
[src]
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn is_input_high(&mut self) -> bool
[src]
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
impl<MODE> InputPin for Gpio20<MODE>
[src]
fn set_to_input(&mut self) -> &mut Self
[src]
fn enable_input(&mut self, on: bool) -> &mut Self
[src]
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn is_input_high(&mut self) -> bool
[src]
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
impl<MODE> InputPin for Gpio21<MODE>
[src]
fn set_to_input(&mut self) -> &mut Self
[src]
fn enable_input(&mut self, on: bool) -> &mut Self
[src]
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn is_input_high(&mut self) -> bool
[src]
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
impl<MODE> InputPin for Gpio22<MODE>
[src]
fn set_to_input(&mut self) -> &mut Self
[src]
fn enable_input(&mut self, on: bool) -> &mut Self
[src]
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn is_input_high(&mut self) -> bool
[src]
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
impl<MODE> InputPin for Gpio23<MODE>
[src]
fn set_to_input(&mut self) -> &mut Self
[src]
fn enable_input(&mut self, on: bool) -> &mut Self
[src]
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn is_input_high(&mut self) -> bool
[src]
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
impl<MODE> InputPin for Gpio25<MODE>
[src]
fn set_to_input(&mut self) -> &mut Self
[src]
fn enable_input(&mut self, on: bool) -> &mut Self
[src]
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn is_input_high(&mut self) -> bool
[src]
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
impl<MODE> InputPin for Gpio26<MODE>
[src]
fn set_to_input(&mut self) -> &mut Self
[src]
fn enable_input(&mut self, on: bool) -> &mut Self
[src]
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn is_input_high(&mut self) -> bool
[src]
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
impl<MODE> InputPin for Gpio27<MODE>
[src]
fn set_to_input(&mut self) -> &mut Self
[src]
fn enable_input(&mut self, on: bool) -> &mut Self
[src]
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn is_input_high(&mut self) -> bool
[src]
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
impl<MODE> InputPin for Gpio32<MODE>
[src]
fn set_to_input(&mut self) -> &mut Self
[src]
fn enable_input(&mut self, on: bool) -> &mut Self
[src]
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn is_input_high(&mut self) -> bool
[src]
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
impl<MODE> InputPin for Gpio33<MODE>
[src]
fn set_to_input(&mut self) -> &mut Self
[src]
fn enable_input(&mut self, on: bool) -> &mut Self
[src]
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn is_input_high(&mut self) -> bool
[src]
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
impl<MODE> InputPin for Gpio34<MODE>
[src]
fn set_to_input(&mut self) -> &mut Self
[src]
fn enable_input(&mut self, on: bool) -> &mut Self
[src]
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn is_input_high(&mut self) -> bool
[src]
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
impl<MODE> InputPin for Gpio35<MODE>
[src]
fn set_to_input(&mut self) -> &mut Self
[src]
fn enable_input(&mut self, on: bool) -> &mut Self
[src]
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn is_input_high(&mut self) -> bool
[src]
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
impl<MODE> InputPin for Gpio36<MODE>
[src]
fn set_to_input(&mut self) -> &mut Self
[src]
fn enable_input(&mut self, on: bool) -> &mut Self
[src]
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn is_input_high(&mut self) -> bool
[src]
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
impl<MODE> InputPin for Gpio37<MODE>
[src]
fn set_to_input(&mut self) -> &mut Self
[src]
fn enable_input(&mut self, on: bool) -> &mut Self
[src]
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn is_input_high(&mut self) -> bool
[src]
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
impl<MODE> InputPin for Gpio38<MODE>
[src]
fn set_to_input(&mut self) -> &mut Self
[src]
fn enable_input(&mut self, on: bool) -> &mut Self
[src]
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn is_input_high(&mut self) -> bool
[src]
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
impl<MODE> InputPin for Gpio39<MODE>
[src]
fn set_to_input(&mut self) -> &mut Self
[src]
fn enable_input(&mut self, on: bool) -> &mut Self
[src]
fn enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn is_input_high(&mut self) -> bool
[src]
fn connect_input_to_peripheral_with_options(
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: InputSignal,
invert: bool,
force_via_gpio_mux: bool
) -> &mut Self