Struct nrf9160_hal::gpio::p0::P0_03
source · pub struct P0_03<MODE> { /* private fields */ }
Implementations§
source§impl<MODE> P0_03<MODE>
impl<MODE> P0_03<MODE>
sourcepub fn into_floating_input(self) -> P0_03<Input<Floating>>
pub fn into_floating_input(self) -> P0_03<Input<Floating>>
Convert the pin to be a floating input
pub fn into_pulldown_input(self) -> P0_03<Input<PullDown>>
pub fn into_pullup_input(self) -> P0_03<Input<PullUp>>
sourcepub fn into_push_pull_output_drive(
self,
initial_output: Level,
drive: DriveConfig
) -> P0_03<Output<PushPull>>
pub fn into_push_pull_output_drive( self, initial_output: Level, drive: DriveConfig ) -> P0_03<Output<PushPull>>
Convert the pin to bepin a push-pull output with specified drive
sourcepub fn into_push_pull_output(
self,
initial_output: Level
) -> P0_03<Output<PushPull>>
pub fn into_push_pull_output( self, initial_output: Level ) -> P0_03<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
) -> P0_03<Output<OpenDrain>>
pub fn into_open_drain_output( self, config: OpenDrainConfig, initial_output: Level ) -> P0_03<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.
sourcepub fn into_open_drain_input_output(
self,
config: OpenDrainConfig,
initial_output: Level
) -> P0_03<Output<OpenDrainIO>>
pub fn into_open_drain_input_output( self, config: OpenDrainConfig, initial_output: Level ) -> P0_03<Output<OpenDrainIO>>
Convert the pin to be an open-drain input/output
Similar to into_open_drain_output
, but can also be read from.
This method currently does not support configuring an internal pull-up or pull-down resistor.
sourcepub fn into_disconnected(self) -> P0_03<Disconnected>
pub fn into_disconnected(self) -> P0_03<Disconnected>
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§
source§impl<MODE> OutputPin for P0_03<Output<MODE>>
impl<MODE> OutputPin for P0_03<Output<MODE>>
source§impl<MODE> OutputPin for P0_03<Output<MODE>>
impl<MODE> OutputPin for P0_03<Output<MODE>>
source§impl<MODE> StatefulOutputPin for P0_03<Output<MODE>>
impl<MODE> StatefulOutputPin for P0_03<Output<MODE>>
Auto Trait Implementations§
impl<MODE> Freeze for P0_03<MODE>
impl<MODE> RefUnwindSafe for P0_03<MODE>where
MODE: RefUnwindSafe,
impl<MODE> Send for P0_03<MODE>where
MODE: Send,
impl<MODE> Sync for P0_03<MODE>where
MODE: Sync,
impl<MODE> Unpin for P0_03<MODE>where
MODE: Unpin,
impl<MODE> UnwindSafe for P0_03<MODE>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