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