#[non_exhaustive]pub struct GPIO49<'a> { /* private fields */ }Expand description
GPIO49 peripheral singleton
Implementations§
Source§impl<'d> GPIO49<'d>
impl<'d> GPIO49<'d>
Sourcepub unsafe fn split(self) -> (InputSignal<'d>, OutputSignal<'d>)
Available on crate feature unstable only.
pub unsafe fn split(self) -> (InputSignal<'d>, OutputSignal<'d>)
unstable only.Split the pin into an input and output signal.
Peripheral signals allow connecting peripherals together without using external hardware.
§Safety
The caller must ensure that peripheral drivers don’t configure the same
GPIO at the same time in multiple places. This includes clones of the
InputSignal struct, as well as the OutputSignal struct.
let (rx, tx) = unsafe { peripherals.GPIO2.split() };
// rx and tx can then be passed to different peripherals to connect them.§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Source§impl GPIO49<'_>
impl GPIO49<'_>
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 clone_unchecked(&self) -> Self
pub unsafe fn clone_unchecked(&self) -> Self
Unsafely clone this peripheral reference.
§Safety
You must ensure that you’re only using one instance of this type at a time.
Trait Implementations§
Source§impl AdcChannel for GPIO49<'_>
Available on crate feature unstable only.
impl AdcChannel for GPIO49<'_>
unstable only.Source§fn adc_channel(&self) -> u8
fn adc_channel(&self) -> u8
impl AnalogPin for GPIO49<'_>
unstable only.§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
impl InputPin for GPIO49<'_>
impl MiiRxClk for GPIO49<'_>
unstable only.impl MiiRxDv for GPIO49<'_>
unstable only.impl MiiRxd0 for GPIO49<'_>
unstable only.impl MiiRxd1 for GPIO49<'_>
unstable only.impl MiiRxd2 for GPIO49<'_>
unstable only.impl MiiRxd3 for GPIO49<'_>
unstable only.impl MiiTxClk for GPIO49<'_>
unstable only.impl MiiTxEn for GPIO49<'_>
unstable only.impl MiiTxd0 for GPIO49<'_>
unstable only.impl MiiTxd1 for GPIO49<'_>
unstable only.impl MiiTxd2 for GPIO49<'_>
unstable only.impl MiiTxd3 for GPIO49<'_>
unstable only.impl OutputPin for GPIO49<'_>
impl<'d> PeripheralInput<'d> for GPIO49<'d>
impl<'d> PeripheralOutput<'d> for GPIO49<'d>
impl<'d> PeripheralSignal<'d> for GPIO49<'d>
impl RmiiTxEn for GPIO49<'_>
unstable only.