pub struct Input<'d> { /* private fields */ }
Expand description
GPIO input driver. Internally, this is a specialized Flex pin.
Implementations§
Source§impl<'d> Input<'d>
impl<'d> Input<'d>
Source§impl Input<'_>
impl Input<'_>
Sourcepub async fn wait_for_any_edge(&mut self) -> Option<()>
pub async fn wait_for_any_edge(&mut self) -> Option<()>
Wait for a falling or rising edge on the pin. You can have at most 8 pins waiting. If you
try to wait for more than 8 pins, this function will return None
.
Sourcepub async fn wait_for_falling_edge(&mut self) -> Option<()>
pub async fn wait_for_falling_edge(&mut self) -> Option<()>
Wait for a falling edge on the pin. You can have at most 8 pins waiting. If you try to wait
for more than 8 pins, this function will return None
.
Sourcepub async fn wait_for_rising_edge(&mut self) -> Option<()>
pub async fn wait_for_rising_edge(&mut self) -> Option<()>
Wait for a rising edge on the pin. You can have at most 8 pins waiting. If you try to wait
for more than 8 pins, this function will return None
.
Sourcepub async fn wait_for_low(&mut self) -> Option<()>
pub async fn wait_for_low(&mut self) -> Option<()>
Wait for a low level on the pin. You can have at most 8 pins waiting. If you try to wait for
more than 8 pins, this function will return None
.
Sourcepub async fn wait_for_high(&mut self) -> Option<()>
pub async fn wait_for_high(&mut self) -> Option<()>
Wait for a high level on the pin. You can have at most 8 pins waiting. If you try to wait for
more than 8 pins, this function will return None
.