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