pub struct Gpio5<'a>(/* private fields */);Implementations§
Source§impl Gpio5<'_>
impl Gpio5<'_>
Sourcepub unsafe fn steal() -> Self
pub unsafe fn steal() -> Self
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) -> Gpio5<'_>
pub unsafe fn reborrow(&mut self) -> Gpio5<'_>
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> Gpio5<'a>
impl<'a> Gpio5<'a>
pub fn degrade_input(self) -> AnyInputPin<'a>
Source§impl<'a> Gpio5<'a>
impl<'a> Gpio5<'a>
pub fn degrade_output(self) -> AnyOutputPin<'a>
pub fn degrade_input_output(self) -> AnyIOPin<'a>
Trait Implementations§
Source§impl ADCPin for Gpio5<'_>
impl ADCPin for Gpio5<'_>
Source§type AdcChannel = ADCCH0<ADCU2>
type AdcChannel = ADCCH0<ADCU2>
Return the ADC channel for this pin
Source§impl<'a> From<Gpio5<'a>> for AnyInputPin<'a>
impl<'a> From<Gpio5<'a>> for AnyInputPin<'a>
Source§impl<'a> From<Gpio5<'a>> for AnyOutputPin<'a>
impl<'a> From<Gpio5<'a>> for AnyOutputPin<'a>
impl InputPin for Gpio5<'_>
impl OutputPin for Gpio5<'_>
impl Send for Gpio5<'_>
Auto Trait Implementations§
impl<'a> Freeze for Gpio5<'a>
impl<'a> RefUnwindSafe for Gpio5<'a>
impl<'a> Sync for Gpio5<'a>
impl<'a> Unpin for Gpio5<'a>
impl<'a> UnsafeUnpin for Gpio5<'a>
impl<'a> !UnwindSafe for Gpio5<'a>
Blanket Implementations§
Source§impl<P> AdcChannels for Pwhere
P: ADCPin,
impl<P> AdcChannels for Pwhere
P: ADCPin,
type AdcUnit = <<P as ADCPin>::AdcChannel as AdcChannel>::AdcUnit
type Iterator<'a> = Once<(u32, u32)> where P: 'a
fn iter(&self) -> <P as AdcChannels>::Iterator<'_>
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more