pub struct OutputChannel<'d> { /* private fields */ }
Expand description
GPIOTE channel driver in output mode
Implementations§
Source§impl<'d> OutputChannel<'d>
impl<'d> OutputChannel<'d>
Sourcepub fn new(
ch: impl Peripheral<P = impl Channel> + 'd,
pin: Output<'d>,
polarity: OutputChannelPolarity,
) -> Self
pub fn new( ch: impl Peripheral<P = impl Channel> + 'd, pin: Output<'d>, polarity: OutputChannelPolarity, ) -> Self
Create a new GPIOTE output channel driver.
Trait Implementations§
Auto Trait Implementations§
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> !UnwindSafe 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