pub struct OutputChannel<'d> { /* private fields */ }Expand description
GPIOTE channel driver in output mode
Implementations§
Source§impl OutputChannel<'static>
impl OutputChannel<'static>
Sourcepub fn persist(self)
pub fn persist(self)
Persist the channel’s configuration for the rest of the program’s lifetime. This method
should be preferred over core::mem::forget() because the 'static bound prevents
accidental reuse of the underlying peripheral.
Source§impl<'d> OutputChannel<'d>
impl<'d> OutputChannel<'d>
Sourcepub fn new<C: Channel, T: GpioPin>(
ch: Peri<'d, C>,
pin: Peri<'d, T>,
initial_output: Level,
drive: OutputDrive,
polarity: OutputChannelPolarity,
) -> Self
pub fn new<C: Channel, T: GpioPin>( ch: Peri<'d, C>, pin: Peri<'d, T>, initial_output: Level, drive: OutputDrive, polarity: OutputChannelPolarity, ) -> Self
Create a new GPIOTE output channel driver.
Trait Implementations§
Source§impl<'d> Drop for OutputChannel<'d>
impl<'d> Drop for OutputChannel<'d>
Auto Trait Implementations§
impl<'d> !UnwindSafe for OutputChannel<'d>
impl<'d> Freeze for OutputChannel<'d>
impl<'d> RefUnwindSafe for OutputChannel<'d>
impl<'d> Send for OutputChannel<'d>
impl<'d> Sync for OutputChannel<'d>
impl<'d> Unpin for OutputChannel<'d>
impl<'d> UnsafeUnpin for OutputChannel<'d>
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