pub struct Gpio11<'a>(/* private fields */);Implementations§
Source§impl Gpio11<'_>
impl Gpio11<'_>
Sourcepub unsafe fn steal() -> Gpio11<'_>
pub unsafe fn steal() -> Gpio11<'_>
Unsafely create an instance of this peripheral out of thin air.
§Safety
You must ensure that you’re only using one instance of this type at a time.
Sourcepub unsafe fn reborrow(&mut self) -> Gpio11<'_>
pub unsafe fn reborrow(&mut self) -> Gpio11<'_>
Creates a new peripheral reference with a shorter lifetime.
Use this method if you would like to keep working with the peripheral after you dropped the driver that consumes this.
§Safety
You must ensure that you are not using reborrowed peripherals in drivers which are
forgotten via core::mem::forget.
Source§impl<'a> Gpio11<'a>
impl<'a> Gpio11<'a>
pub fn degrade_input(self) -> AnyInputPin<'a>
Source§impl<'a> Gpio11<'a>
impl<'a> Gpio11<'a>
pub fn degrade_output(self) -> AnyOutputPin<'a>
pub fn degrade_input_output(self) -> AnyIOPin<'a>
Trait Implementations§
Source§impl<'a> From<Gpio11<'a>> for AnyInputPin<'a>
impl<'a> From<Gpio11<'a>> for AnyInputPin<'a>
Source§fn from(pin: Gpio11<'_>) -> AnyInputPin<'a>
fn from(pin: Gpio11<'_>) -> AnyInputPin<'a>
Converts to this type from the input type.
Source§impl<'a> From<Gpio11<'a>> for AnyOutputPin<'a>
impl<'a> From<Gpio11<'a>> for AnyOutputPin<'a>
Source§fn from(pin: Gpio11<'_>) -> AnyOutputPin<'a>
fn from(pin: Gpio11<'_>) -> AnyOutputPin<'a>
Converts to this type from the input type.