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
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
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