Struct stm32l0x1_hal::gpio::PB5
source · pub struct PB5<MODE>(_);
Expand description
Specific GPIO pin
Implementations§
source§impl<MODE> PB5<MODE>
impl<MODE> PB5<MODE>
sourcepub fn into_analog(self) -> PB5<Analog>
pub fn into_analog(self) -> PB5<Analog>
Configures the PIN to operate as a high-impedance analog input
sourcepub fn into_input<Mode: PullMode>(self) -> PB5<Input<Mode>>
pub fn into_input<Mode: PullMode>(self) -> PB5<Input<Mode>>
Configures the PIN to operate as Input Pin according to Mode.
sourcepub fn set_pin_speed(&self, spd: PinSpeed)
pub fn set_pin_speed(&self, spd: PinSpeed)
Set pin drive strength of the pin
sourcepub fn into_output<OMode: OutputMode, PUMode: PullMode>(
self
) -> PB5<Output<OMode, PUMode>>
pub fn into_output<OMode: OutputMode, PUMode: PullMode>(
self
) -> PB5<Output<OMode, PUMode>>
Configures the PIN to operate as Output Pin according to OMode and PUMode
sourcepub fn into_alt_fun<AF: AltFun>(self) -> PB5<AF>
pub fn into_alt_fun<AF: AltFun>(self) -> PB5<AF>
Configures the PIN to operate as Alternate Function.
Trait Implementations§
source§impl<OMODE, PUMODE> OutputPin for PB5<Output<OMODE, PUMODE>>
impl<OMODE, PUMODE> OutputPin for PB5<Output<OMODE, PUMODE>>
source§impl<OMODE, PUMODE> StatefulOutputPin for PB5<Output<OMODE, PUMODE>>
impl<OMODE, PUMODE> StatefulOutputPin for PB5<Output<OMODE, PUMODE>>
source§fn 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
Returns whether high bit is set.
source§fn 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
Returns whether low bit is set.