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