Struct esp8266_hal::gpio::Gpio2
source · [−]pub struct Gpio2<MODE> { /* private fields */ }
Expand description
Pin
Implementations
sourceimpl<MODE> Gpio2<Input<MODE>>
impl<MODE> Gpio2<Input<MODE>>
pub fn set_interrupt_mode(&mut self, mode: InterruptMode)
pub fn clear_interrupt(&mut self)
pub fn interrupt_status(&mut self) -> bool
sourceimpl<MODE> Gpio2<MODE>
impl<MODE> Gpio2<MODE>
sourcepub unsafe fn unsafe_info<T>(self) -> Gpio2<T>
pub unsafe fn unsafe_info<T>(self) -> Gpio2<T>
Change the pin into a specific mode without doing any of the pin configuration
This should only be used if you know the pin is already configured correctly
pub fn into_push_pull_output(self) -> Gpio2<Output<PushPull>>
pub fn into_open_drain_output(self) -> Gpio2<Output<OpenDrain>>
pub fn into_floating_input(self) -> Gpio2<Input<Floating>>
pub fn into_pull_up_input(self) -> Gpio2<Input<PullUp>>
Trait Implementations
sourceimpl<MODE> StatefulOutputPin for Gpio2<Output<MODE>>
impl<MODE> StatefulOutputPin for Gpio2<Output<MODE>>
impl<MODE> Default for Gpio2<Output<MODE>>
Auto Trait Implementations
impl<MODE> RefUnwindSafe for Gpio2<MODE> where
MODE: RefUnwindSafe,
impl<MODE> Send for Gpio2<MODE> where
MODE: Send,
impl<MODE> Sync for Gpio2<MODE> where
MODE: Sync,
impl<MODE> Unpin for Gpio2<MODE> where
MODE: Unpin,
impl<MODE> UnwindSafe for Gpio2<MODE> where
MODE: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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