pub struct LowPowerInput<'d, const PIN: u8> { /* private fields */ }Expand description
A GPIO input pin configured for low power operation
Implementations§
Source§impl<'d, const PIN: u8> LowPowerInput<'d, PIN>
impl<'d, const PIN: u8> LowPowerInput<'d, PIN>
Sourcepub fn new<P>(_pin: impl Peripheral<P = P> + 'd) -> Self
pub fn new<P>(_pin: impl Peripheral<P = P> + 'd) -> Self
Create a new input pin for use by the low-power core
Sourcepub fn pullup_enable(&self, enable: bool)
pub fn pullup_enable(&self, enable: bool)
Sets pull-up enable for the pin
Sourcepub fn pulldown_enable(&self, enable: bool)
pub fn pulldown_enable(&self, enable: bool)
Sets pull-down enable for the pin
Auto Trait Implementations§
impl<'d, const PIN: u8> Freeze for LowPowerInput<'d, PIN>
impl<'d, const PIN: u8> RefUnwindSafe for LowPowerInput<'d, PIN>
impl<'d, const PIN: u8> Send for LowPowerInput<'d, PIN>
impl<'d, const PIN: u8> Sync for LowPowerInput<'d, PIN>
impl<'d, const PIN: u8> Unpin for LowPowerInput<'d, PIN>
impl<'d, const PIN: u8> UnwindSafe for LowPowerInput<'d, PIN>
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