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