[−][src]Struct esp32_hal::gpio::Gpio2
Pin
Implementations
impl<MODE> Gpio2<MODE>
[src]
pub fn into_floating_input(self) -> Gpio2<Input<Floating>>
[src]
impl<MODE> Gpio2<MODE>
[src]
pub fn into_pull_up_input(self) -> Gpio2<Input<PullUp>>
[src]
pub fn into_pull_down_input(self) -> Gpio2<Input<PullDown>>
[src]
pub fn into_push_pull_output(self) -> Gpio2<Output<PushPull>>
[src]
pub fn into_open_drain_output(self) -> Gpio2<Output<OpenDrain>>
[src]
pub fn into_alternate_1(self) -> Gpio2<Alternate<AF1>>
[src]
pub fn into_alternate_2(self) -> Gpio2<Alternate<AF2>>
[src]
pub fn into_alternate_4(self) -> Gpio2<Alternate<AF4>>
[src]
pub fn into_alternate_5(self) -> Gpio2<Alternate<AF5>>
[src]
pub fn into_alternate_6(self) -> Gpio2<Alternate<AF6>>
[src]
impl<MODE> Gpio2<MODE>
[src]
pub fn into_analog(self) -> Gpio2<Analog>
[src]
pub fn into_floating_rtc_input(self) -> Gpio2<RTCInput<Floating>>
[src]
pub fn into_pull_up_rtc_input(self) -> Gpio2<RTCInput<PullUp>>
[src]
pub fn into_pull_down_rtc_input(self) -> Gpio2<RTCInput<PullDown>>
[src]
pub fn into_push_pull_rtc_output(self) -> Gpio2<RTCOutput<PushPull>>
[src]
pub fn into_open_drain_rtc_output(self) -> Gpio2<RTCOutput<OpenDrain>>
[src]
Trait Implementations
impl Channel<ADC2> for Gpio2<Analog>
[src]
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
fn connect_input_to_peripheral(&mut self, signal: InputSignal) -> &mut Self
[src]
impl<MODE> InputPin for Gpio2<Input<MODE>>
[src]
type Error = Infallible
Error type
fn is_high(&self) -> Result<bool, Self::Error>
[src]
fn is_low(&self) -> Result<bool, Self::Error>
[src]
impl<MODE> InputPin for Gpio2<RTCInput<MODE>>
[src]
type Error = Infallible
Error type
fn is_high(&self) -> Result<bool, Self::Error>
[src]
fn is_low(&self) -> Result<bool, Self::Error>
[src]
impl<MODE> OutputPin for Gpio2<MODE>
[src]
fn set_to_open_drain_output(&mut self) -> &mut Self
[src]
fn set_to_push_pull_output(&mut self) -> &mut Self
[src]
fn enable_output(&mut self, on: bool) -> &mut Self
[src]
fn set_output_high(&mut self, high: bool) -> &mut Self
[src]
fn set_drive_strength(&mut self, strength: DriveStrength) -> &mut Self
[src]
fn enable_open_drain(&mut self, on: bool) -> &mut Self
[src]
fn set_drive_strength_in_sleep_mode(
&mut self,
strength: DriveStrength
) -> &mut Self
[src]
&mut self,
strength: DriveStrength
) -> &mut Self
fn internal_pull_up_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn internal_pull_down_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn enable_output_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn connect_peripheral_to_output_with_options(
&mut self,
signal: OutputSignal,
invert: bool,
invert_enable: bool,
enable_from_gpio: bool,
force_via_gpio_mux: bool
) -> &mut Self
[src]
&mut self,
signal: OutputSignal,
invert: bool,
invert_enable: bool,
enable_from_gpio: bool,
force_via_gpio_mux: bool
) -> &mut Self
fn connect_peripheral_to_output(&mut self, signal: OutputSignal) -> &mut Self
[src]
impl<MODE> OutputPin for Gpio2<Output<MODE>>
[src]
type Error = Infallible
Error type
fn set_high(&mut self) -> Result<(), Self::Error>
[src]
fn set_low(&mut self) -> Result<(), Self::Error>
[src]
impl<MODE> OutputPin for Gpio2<RTCOutput<MODE>>
[src]
type Error = Infallible
Error type
fn set_high(&mut self) -> Result<(), Self::Error>
[src]
fn set_low(&mut self) -> Result<(), Self::Error>
[src]
impl<MODE> Pin for Gpio2<MODE>
[src]
fn sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn set_alternate_function(&mut self, alternate: AlternateFunction) -> &mut Self
[src]
fn listen_with_options(
&mut self,
event: Event,
pro_int: bool,
app_int: bool,
pro_nmi: bool,
app_nmi: bool,
wake_up_from_light_sleep: bool
)
[src]
&mut self,
event: Event,
pro_int: bool,
app_int: bool,
pro_nmi: bool,
app_nmi: bool,
wake_up_from_light_sleep: bool
)
fn unlisten(&mut self)
[src]
fn clear_interrupt(&mut self)
[src]
fn is_interrupt_set(&mut self) -> bool
[src]
fn is_non_maskable_interrupt_set(&mut self) -> bool
[src]
fn enable_hold(&mut self, on: bool)
[src]
fn listen(&mut self, event: Event)
[src]
impl<MODE> Pull for Gpio2<MODE>
[src]
fn internal_pull_up(&mut self, on: bool) -> &mut Self
[src]
fn internal_pull_down(&mut self, on: bool) -> &mut Self
[src]
impl<MODE> RTCInputPin for Gpio2<MODE>
[src]
fn rtc_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn rtc_enable_input(&mut self, on: bool) -> &mut Self
[src]
fn rtc_enable_input_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
fn rtc_is_input_high(&mut self) -> bool
[src]
impl<MODE> RTCOutputPin for Gpio2<MODE>
[src]
fn rtc_enable_output(&mut self, on: bool) -> &mut Self
[src]
Enable/disable the output
fn rtc_set_output_high(&mut self, on: bool) -> &mut Self
[src]
Set the output to high or low
fn rtc_set_drive_strength(&mut self, strength: DriveStrength) -> &mut Self
[src]
Set drive strength
fn rtc_enable_open_drain(&mut self, on: bool) -> &mut Self
[src]
Enable/Disable open drain
fn rtc_enable_output_in_sleep_mode(&mut self, on: bool) -> &mut Self
[src]
Enable/disable the output while in sleep mode
impl<MODE> StatefulOutputPin for Gpio2<Output<MODE>>
[src]
fn is_set_high(&self) -> Result<bool, Self::Error>
[src]
fn is_set_low(&self) -> Result<bool, Self::Error>
[src]
impl<MODE> StatefulOutputPin for Gpio2<RTCOutput<MODE>>
[src]
fn is_set_high(&self) -> Result<bool, Self::Error>
[src]
fn is_set_low(&self) -> Result<bool, Self::Error>
[src]
impl<MODE> ToggleableOutputPin for Gpio2<Output<MODE>>
[src]
impl<MODE> ToggleableOutputPin for Gpio2<RTCOutput<MODE>>
[src]
Auto Trait Implementations
impl<MODE> Send for Gpio2<MODE> where
MODE: Send,
MODE: Send,
impl<MODE> Sync for Gpio2<MODE> where
MODE: Sync,
MODE: Sync,
impl<MODE> Unpin for Gpio2<MODE> where
MODE: Unpin,
MODE: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> InputPin for T where
T: InputPin,
[src]
T: InputPin,
type Error = ()
Error type
fn is_low(&self) -> Result<bool, <T as InputPin>::Error>
[src]
fn is_high(&self) -> Result<bool, <T as InputPin>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> OutputPin for T where
T: OutputPin,
[src]
T: OutputPin,
type Error = ()
Error type
fn set_low(&mut self) -> Result<(), <T as OutputPin>::Error>
[src]
fn set_high(&mut self) -> Result<(), <T as OutputPin>::Error>
[src]
impl<T> StatefulOutputPin for T where
T: StatefulOutputPin + OutputPin,
[src]
T: StatefulOutputPin + OutputPin,
fn is_set_low(&self) -> Result<bool, <T as OutputPin>::Error>
[src]
fn is_set_high(&self) -> Result<bool, <T as OutputPin>::Error>
[src]
impl<P> ToggleableOutputPin for P where
P: Default,
[src]
P: Default,
type Error = <P as OutputPin>::Error
Error type
fn toggle(&mut self) -> Result<(), <P as ToggleableOutputPin>::Error>
[src]
Toggle pin output
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,