Struct esp32s3_hal::gpio::rtc_io::LowPowerPin
source · pub struct LowPowerPin<MODE, const PIN: u8> { /* private fields */ }
Expand description
A GPIO pin configured for low power operation
Implementations§
source§impl<MODE, const PIN: u8> LowPowerPin<MODE, PIN>
impl<MODE, const PIN: u8> LowPowerPin<MODE, PIN>
sourcepub fn into_pull_up_input(self) -> LowPowerPin<Input<PullUp>, PIN>
pub fn into_pull_up_input(self) -> LowPowerPin<Input<PullUp>, PIN>
Configures the pin as an input with the internal pull-up resistor enabled.
sourcepub fn into_pull_down_input(self) -> LowPowerPin<Input<PullDown>, PIN>
pub fn into_pull_down_input(self) -> LowPowerPin<Input<PullDown>, PIN>
Configures the pin as an input with the internal pull-down resistor enabled.
sourcepub fn into_floating_input(self) -> LowPowerPin<Input<Floating>, PIN>
pub fn into_floating_input(self) -> LowPowerPin<Input<Floating>, PIN>
Configures the pin as a floating input pin.
sourcepub fn into_push_pull_output(self) -> LowPowerPin<Output<PushPull>, PIN>
pub fn into_push_pull_output(self) -> LowPowerPin<Output<PushPull>, PIN>
Configures the pin as an output pin.
Auto Trait Implementations§
impl<MODE, const PIN: u8> RefUnwindSafe for LowPowerPin<MODE, PIN>where
MODE: RefUnwindSafe,
impl<MODE, const PIN: u8> Send for LowPowerPin<MODE, PIN>where
MODE: Send,
impl<MODE, const PIN: u8> Sync for LowPowerPin<MODE, PIN>where
MODE: Sync,
impl<MODE, const PIN: u8> Unpin for LowPowerPin<MODE, PIN>where
MODE: Unpin,
impl<MODE, const PIN: u8> UnwindSafe for LowPowerPin<MODE, PIN>where
MODE: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more