pub struct DedicatedGpioInputChannel<'lt, const CH: u8> { /* private fields */ }Expand description
A single dedicated GPIO input channel.
Implementations§
Source§impl<const CH: u8> DedicatedGpioInputChannel<'_, CH>
impl<const CH: u8> DedicatedGpioInputChannel<'_, CH>
Sourcepub unsafe fn steal() -> Self
pub unsafe fn steal() -> Self
Conjures a new dedicated GPIO input channel out of thin air.
§Safety
The DedicatedGpio struct must be initialized before this function is called. There
should only be one reference to the channel in use at one time.
Trait Implementations§
impl<const CH: u8> InputChannel for &mut DedicatedGpioInputChannel<'_, CH>
Available on crate feature
unstable only.impl<const CH: u8> InputChannel for DedicatedGpioInputChannel<'_, CH>
Available on crate feature
unstable only.Auto Trait Implementations§
impl<'lt, const CH: u8> Freeze for DedicatedGpioInputChannel<'lt, CH>
impl<'lt, const CH: u8> RefUnwindSafe for DedicatedGpioInputChannel<'lt, CH>
impl<'lt, const CH: u8> Send for DedicatedGpioInputChannel<'lt, CH>
impl<'lt, const CH: u8> Sync for DedicatedGpioInputChannel<'lt, CH>
impl<'lt, const CH: u8> Unpin for DedicatedGpioInputChannel<'lt, CH>
impl<'lt, const CH: u8> UnsafeUnpin for DedicatedGpioInputChannel<'lt, CH>
impl<'lt, const CH: u8> !UnwindSafe for DedicatedGpioInputChannel<'lt, CH>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more