Struct nrf52840_hal::gpio::Pin [−][src]
pub struct Pin<MODE> { /* fields omitted */ }
Expand description
Generic $PX pin
Implementations
Convert the pin to be a floating input
Convert the pin to be a push-pull output with normal drive.
pub fn into_open_drain_output(
self,
config: OpenDrainConfig,
initial_output: Level
) -> Pin<Output<OpenDrain>>
pub fn into_open_drain_output(
self,
config: OpenDrainConfig,
initial_output: Level
) -> Pin<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.