pub struct LowPowerInput<'d, const PIN: u8> { /* private fields */ }
Available on crate feature
unstable
only.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