pub struct DedicatedGpioOutputChannel<'lt, const CH: u8> { /* private fields */ }Expand description
A single dedicated GPIO output channel.
Implementations§
Source§impl<const CH: u8> DedicatedGpioOutputChannel<'_, CH>
impl<const CH: u8> DedicatedGpioOutputChannel<'_, CH>
Sourcepub unsafe fn steal() -> Self
pub unsafe fn steal() -> Self
Conjures a new dedicated GPIO output 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> OutputChannel for &mut DedicatedGpioOutputChannel<'_, CH>
Available on crate feature
unstable only.impl<const CH: u8> OutputChannel for DedicatedGpioOutputChannel<'_, CH>
Available on crate feature
unstable only.Auto Trait Implementations§
impl<'lt, const CH: u8> Freeze for DedicatedGpioOutputChannel<'lt, CH>
impl<'lt, const CH: u8> RefUnwindSafe for DedicatedGpioOutputChannel<'lt, CH>
impl<'lt, const CH: u8> Send for DedicatedGpioOutputChannel<'lt, CH>
impl<'lt, const CH: u8> Sync for DedicatedGpioOutputChannel<'lt, CH>
impl<'lt, const CH: u8> Unpin for DedicatedGpioOutputChannel<'lt, CH>
impl<'lt, const CH: u8> UnsafeUnpin for DedicatedGpioOutputChannel<'lt, CH>
impl<'lt, const CH: u8> !UnwindSafe for DedicatedGpioOutputChannel<'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