Struct esp32c2_hal::gpio::Gpio8
source · pub struct Gpio8<MODE> { /* private fields */ }
Implementations
sourceimpl<MODE> Gpio8<MODE>
impl<MODE> Gpio8<MODE>
pub fn into_pull_up_input(self) -> Gpio8<Input<PullUp>>
pub fn into_pull_down_input(self) -> Gpio8<Input<PullDown>>
pub fn into_push_pull_output(self) -> Gpio8<Output<PushPull>>
pub fn into_open_drain_output(self) -> Gpio8<Output<OpenDrain>>
pub fn into_alternate_1(self) -> Gpio8<Alternate<AF1>>
pub fn into_alternate_2(self) -> Gpio8<Alternate<AF2>>
Trait Implementations
sourceimpl<MODE> InputPin for Gpio8<MODE>
impl<MODE> InputPin for Gpio8<MODE>
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_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. Read morefn connect_input_to_peripheral(&mut self, signal: InputSignal) -> &mut Self
sourceimpl<MODE> OutputPin for Gpio8<MODE>
impl<MODE> OutputPin for Gpio8<MODE>
fn set_to_open_drain_output(&mut self) -> &mut Self
fn set_to_push_pull_output(&mut self) -> &mut Self
fn enable_output(&mut self, on: bool) -> &mut Self
fn set_output_high(&mut self, high: bool) -> &mut Self
fn set_drive_strength(&mut self, strength: DriveStrength) -> &mut Self
fn enable_open_drain(&mut self, on: bool) -> &mut Self
fn internal_pull_up_in_sleep_mode(&mut self, on: bool) -> &mut Self
fn internal_pull_down_in_sleep_mode(&mut self, on: bool) -> &mut Self
fn enable_output_in_sleep_mode(&mut self, on: bool) -> &mut Self
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
sourcefn disconnect_peripheral_from_output(&mut self) -> &mut Self
fn disconnect_peripheral_from_output(&mut self) -> &mut Self
fn internal_pull_up(&mut self, on: bool) -> &mut Self
fn internal_pull_down(&mut self, on: bool) -> &mut Self
fn connect_peripheral_to_output(&mut self, signal: OutputSignal) -> &mut Self
sourceimpl<MODE> Pin for Gpio8<MODE>
impl<MODE> Pin for Gpio8<MODE>
fn number(&self) -> u8
fn sleep_mode(&mut self, on: bool) -> &mut Self
fn set_alternate_function(&mut self, alternate: AlternateFunction) -> &mut Self
fn listen_with_options(
&mut self,
event: Event,
int_enable: bool,
nmi_enable: bool,
wake_up_from_light_sleep: bool
)
fn unlisten(&mut self)
fn clear_interrupt(&mut self)
fn is_pcore_interrupt_set(&self) -> bool
fn is_pcore_non_maskable_interrupt_set(&self) -> bool
fn is_acore_interrupt_set(&self) -> bool
fn is_acore_non_maskable_interrupt_set(&self) -> bool
fn enable_hold(&mut self, _on: bool)
fn listen(&mut self, event: Event)
sourceimpl<MODE> StatefulOutputPin for Gpio8<Output<MODE>>
impl<MODE> StatefulOutputPin for Gpio8<Output<MODE>>
Auto Trait Implementations
impl<MODE> RefUnwindSafe for Gpio8<MODE>where
MODE: RefUnwindSafe,
impl<MODE> Send for Gpio8<MODE>where
MODE: Send,
impl<MODE> Sync for Gpio8<MODE>where
MODE: Sync,
impl<MODE> Unpin for Gpio8<MODE>where
MODE: Unpin,
impl<MODE> UnwindSafe for Gpio8<MODE>where
MODE: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more