[−][src]Struct stm32l0x1_hal::gpio::PB7
Specific GPIO pin
Implementations
impl<MODE> PB7<MODE>
[src]
pub fn into_analog(self) -> PB7<Analog>
[src]
Configures the PIN to operate as a high-impedance analog input
pub fn into_input<Mode: PullMode>(self) -> PB7<Input<Mode>>
[src]
Configures the PIN to operate as Input Pin according to Mode.
pub fn set_pin_speed(&self, spd: PinSpeed)
[src]
Set pin drive strength of the pin
pub fn into_output<OMode: OutputMode, PUMode: PullMode>(
self
) -> PB7<Output<OMode, PUMode>>
[src]
self
) -> PB7<Output<OMode, PUMode>>
Configures the PIN to operate as Output Pin according to OMode and PUMode
pub fn into_alt_fun<AF: AltFun>(self) -> PB7<AF>
[src]
Configures the PIN to operate as Alternate Function.
Trait Implementations
impl<PUMODE> InputPin for PB7<Input<PUMODE>>
[src]
type Error = Infallible
Error type
fn try_is_high(&self) -> Result<bool, Self::Error>
[src]
fn try_is_low(&self) -> Result<bool, Self::Error>
[src]
impl<OMODE, PUMODE> OutputPin for PB7<Output<OMODE, PUMODE>>
[src]
type Error = Infallible
Error type
fn try_set_high(&mut self) -> Result<(), Self::Error>
[src]
fn try_set_low(&mut self) -> Result<(), Self::Error>
[src]
impl<OMODE, PUMODE> StatefulOutputPin for PB7<Output<OMODE, PUMODE>>
[src]
fn try_is_set_high(&self) -> Result<bool, Self::Error>
[src]
Returns whether high bit is set.
fn try_is_set_low(&self) -> Result<bool, Self::Error>
[src]
Returns whether low bit is set.
Auto Trait Implementations
impl<MODE> Send for PB7<MODE> where
MODE: Send,
MODE: Send,
impl<MODE> Sync for PB7<MODE> where
MODE: Sync,
MODE: Sync,
impl<MODE> Unpin for PB7<MODE> where
MODE: Unpin,
MODE: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,