[−][src]Struct nrf52832_hal::nrf52_hal_common::gpio::p0::P0_28
Methods
impl<MODE> P0_28<MODE>
[src]
impl<MODE> P0_28<MODE>
pub fn into_floating_input(self) -> P0_28<Input<Floating>>
[src]
pub fn into_floating_input(self) -> P0_28<Input<Floating>>
Convert the pin to be a floating input
pub fn into_push_pull_output(
self,
initial_output: Level
) -> P0_28<Output<PushPull>>
[src]
pub fn into_push_pull_output(
self,
initial_output: Level
) -> P0_28<Output<PushPull>>
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_28<Output<OpenDrain>>
[src]
pub fn into_open_drain_output(
self,
config: OpenDrainConfig,
initial_output: Level
) -> P0_28<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.
pub fn degrade(self) -> P0_Pin<MODE>
[src]
pub fn degrade(self) -> P0_Pin<MODE>
Degrade to a generic pin struct, which can be used with peripherals
Trait Implementations
impl<MODE> InputPin for P0_28<Input<MODE>>
[src]
impl<MODE> InputPin for P0_28<Input<MODE>>
fn is_high(&self) -> bool
[src]
fn is_high(&self) -> bool
Is the input pin high?
fn is_low(&self) -> bool
[src]
fn is_low(&self) -> bool
Is the input pin low?
impl<MODE> OutputPin for P0_28<Output<MODE>>
[src]
impl<MODE> OutputPin for P0_28<Output<MODE>>
impl<MODE> StatefulOutputPin for P0_28<Output<MODE>>
[src]
impl<MODE> StatefulOutputPin for P0_28<Output<MODE>>
fn is_set_high(&self) -> bool
[src]
fn is_set_high(&self) -> bool
Is the output pin set as high?
fn is_set_low(&self) -> bool
[src]
fn is_set_low(&self) -> bool
Is the output pin set as low?
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
🔬 This is a nightly-only experimental API. (
try_from
)Performs the conversion.
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
🔬 This is a nightly-only experimental API. (
try_from
)Performs the conversion.
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more