Struct nrf52840_hal::gpio::p1::P1_05
source · pub struct P1_05<MODE> { /* private fields */ }
Implementations
sourceimpl<MODE> P1_05<MODE>
impl<MODE> P1_05<MODE>
sourcepub fn into_floating_input(self) -> P1_05<Input<Floating>>
pub fn into_floating_input(self) -> P1_05<Input<Floating>>
Convert the pin to be a floating input
pub fn into_pulldown_input(self) -> P1_05<Input<PullDown>>
pub fn into_pullup_input(self) -> P1_05<Input<PullUp>>
sourcepub fn into_push_pull_output(
self,
initial_output: Level
) -> P1_05<Output<PushPull>>
pub fn into_push_pull_output(
self,
initial_output: Level
) -> P1_05<Output<PushPull>>
Convert the pin to bepin a push-pull output with normal drive
sourcepub fn into_open_drain_output(
self,
config: OpenDrainConfig,
initial_output: Level
) -> P1_05<Output<OpenDrain>>
pub fn into_open_drain_output(
self,
config: OpenDrainConfig,
initial_output: Level
) -> P1_05<Output<OpenDrain>>
Convert the pin to be an open-drain output
This method currently does not support configuring an internal pull-up or pull-down resistor.
Trait Implementations
sourceimpl<MODE> InputPin for P1_05<Input<MODE>>
impl<MODE> InputPin for P1_05<Input<MODE>>
sourceimpl<MODE> OutputPin for P1_05<Output<MODE>>
impl<MODE> OutputPin for P1_05<Output<MODE>>
sourceimpl<MODE> StatefulOutputPin for P1_05<Output<MODE>>
impl<MODE> StatefulOutputPin for P1_05<Output<MODE>>
sourcefn is_set_high(&self) -> bool
👎Deprecated since 0.2.2: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
fn is_set_high(&self) -> bool
Is the output pin set as high?
sourcefn is_set_low(&self) -> bool
👎Deprecated since 0.2.2: Deprecated because the methods cannot return errors. Users should use the traits in digital::v2.
fn is_set_low(&self) -> bool
Is the output pin set as low?
Auto Trait Implementations
impl<MODE> RefUnwindSafe for P1_05<MODE>where
MODE: RefUnwindSafe,
impl<MODE> Send for P1_05<MODE>where
MODE: Send,
impl<MODE> Sync for P1_05<MODE>where
MODE: Sync,
impl<MODE> Unpin for P1_05<MODE>where
MODE: Unpin,
impl<MODE> UnwindSafe for P1_05<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