Struct esp8266_hal::gpio::Gpio5
source · [−]pub struct Gpio5<MODE> { /* private fields */ }
Expand description
Pin
Implementations
sourceimpl<MODE> Gpio5<Input<MODE>>
impl<MODE> Gpio5<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> Gpio5<MODE>
impl<MODE> Gpio5<MODE>
sourcepub unsafe fn unsafe_info<T>(self) -> Gpio5<T>
pub unsafe fn unsafe_info<T>(self) -> Gpio5<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) -> Gpio5<Output<PushPull>>
pub fn into_open_drain_output(self) -> Gpio5<Output<OpenDrain>>
pub fn into_floating_input(self) -> Gpio5<Input<Floating>>
pub fn into_pull_up_input(self) -> Gpio5<Input<PullUp>>
Trait Implementations
sourceimpl<MODE> StatefulOutputPin for Gpio5<Output<MODE>>
impl<MODE> StatefulOutputPin for Gpio5<Output<MODE>>
impl<MODE> Default for Gpio5<Output<MODE>>
Auto Trait Implementations
impl<MODE> RefUnwindSafe for Gpio5<MODE> where
MODE: RefUnwindSafe,
impl<MODE> Send for Gpio5<MODE> where
MODE: Send,
impl<MODE> Sync for Gpio5<MODE> where
MODE: Sync,
impl<MODE> Unpin for Gpio5<MODE> where
MODE: Unpin,
impl<MODE> UnwindSafe for Gpio5<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