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