Struct nrf52832_hal::gpio::p0::P0_04 [−][src]
pub struct P0_04<MODE> { /* fields omitted */ }
Implementations
Convert the pin to be a floating input
Convert the pin to bepin a push-pull output with normal drive
pub fn into_open_drain_output(
self,
config: OpenDrainConfig,
initial_output: Level
) -> P0_04<Output<OpenDrain>>
pub fn into_open_drain_output(
self,
config: OpenDrainConfig,
initial_output: Level
) -> P0_04<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.
Disconnects the pin.
In disconnected mode the pin cannot be used as input or output. It is primarily useful to reduce power usage.
Trait Implementations
Auto Trait Implementations
impl<MODE> RefUnwindSafe for P0_04<MODE> where
MODE: RefUnwindSafe,
impl<MODE> UnwindSafe for P0_04<MODE> where
MODE: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Performs the conversion.
Performs the conversion.
Casts the value.
OverflowingCasts the value.
Casts the value.
Casts the value.
Casts the value.
UnwrappedCasts the value.
Casts the value.
WrappingCasts the value.