pub struct Gpio3<'a>(/* private fields */);Implementations§
Source§impl Gpio3<'_>
impl Gpio3<'_>
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) -> Gpio3<'_>
pub unsafe fn reborrow(&mut self) -> Gpio3<'_>
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> Gpio3<'a>
impl<'a> Gpio3<'a>
pub fn degrade_input(self) -> AnyInputPin<'a>
Source§impl<'a> Gpio3<'a>
impl<'a> Gpio3<'a>
pub fn degrade_output(self) -> AnyOutputPin<'a>
pub fn degrade_input_output(self) -> AnyIOPin<'a>
Trait Implementations§
Source§impl ADCPin for Gpio3<'_>
impl ADCPin for Gpio3<'_>
Source§type AdcChannel = ADCCH3<ADCU1>
type AdcChannel = ADCCH3<ADCU1>
Return the ADC channel for this pin
Source§impl<'a> From<Gpio3<'a>> for AnyInputPin<'a>
impl<'a> From<Gpio3<'a>> for AnyInputPin<'a>
Source§impl<'a> From<Gpio3<'a>> for AnyOutputPin<'a>
impl<'a> From<Gpio3<'a>> for AnyOutputPin<'a>
impl InputPin for Gpio3<'_>
impl OutputPin for Gpio3<'_>
impl Send for Gpio3<'_>
Auto Trait Implementations§
impl<'a> Freeze for Gpio3<'a>
impl<'a> RefUnwindSafe for Gpio3<'a>
impl<'a> Sync for Gpio3<'a>
impl<'a> Unpin for Gpio3<'a>
impl<'a> UnsafeUnpin for Gpio3<'a>
impl<'a> !UnwindSafe for Gpio3<'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