pub struct InputChannel<'d> { /* private fields */ }
Expand description
GPIOTE channel driver in input mode
Implementations§
Source§impl<'d> InputChannel<'d>
impl<'d> InputChannel<'d>
Sourcepub fn new(
ch: impl Peripheral<P = impl Channel> + 'd,
pin: Input<'d>,
polarity: InputChannelPolarity,
) -> Self
pub fn new( ch: impl Peripheral<P = impl Channel> + 'd, pin: Input<'d>, polarity: InputChannelPolarity, ) -> Self
Create a new GPIOTE input channel driver.
Trait Implementations§
Source§impl<'d> Drop for InputChannel<'d>
impl<'d> Drop for InputChannel<'d>
Source§impl<'d> ErrorType for InputChannel<'d>
impl<'d> ErrorType for InputChannel<'d>
Source§type Error = Infallible
type Error = Infallible
Error type
Source§impl<'d> InputPin for InputChannel<'d>
impl<'d> InputPin for InputChannel<'d>
Auto Trait Implementations§
impl<'d> Freeze for InputChannel<'d>
impl<'d> RefUnwindSafe for InputChannel<'d>
impl<'d> Send for InputChannel<'d>
impl<'d> Sync for InputChannel<'d>
impl<'d> Unpin for InputChannel<'d>
impl<'d> !UnwindSafe for InputChannel<'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