pub struct Input(/* private fields */);Expand description
Input pin.
Can be created as a floating input pin or as an input pin with pull-up or pull-down.
Implementations§
Source§impl Input
impl Input
pub fn new_floating<I: PinId>(_pin: Pin<I>) -> Self
pub fn new_with_pull<I: PinId>(_pin: Pin<I>, pull: Pull) -> Self
pub fn id(&self) -> DynPinId
pub fn enable_interrupt(&mut self, irq_cfg: InterruptConfig)
pub fn configure_edge_interrupt(&mut self, edge: InterruptEdge)
pub fn configure_level_interrupt(&mut self, edge: InterruptLevel)
pub fn configure_delay(&mut self, delay_1: bool, delay_2: bool)
pub fn configure_filter_type( &mut self, filter: FilterType, clksel: FilterClockSelect, )
pub fn is_low(&self) -> bool
pub fn is_high(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Input
impl RefUnwindSafe for Input
impl Send for Input
impl !Sync for Input
impl Unpin for Input
impl UnwindSafe for Input
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