pub struct ExtiInput<'d> { /* private fields */ }Expand description
EXTI input driver
Implementations§
Source§impl<'d> ExtiInput<'d>
impl<'d> ExtiInput<'d>
pub fn new<T: GpioPin>( pin: Peri<'d, T>, ch: Peri<'d, T::ExtiChannel>, pull: Pull, ) -> Self
pub fn is_high(&self) -> bool
pub fn is_low(&self) -> bool
pub fn get_level(&self) -> Level
pub async fn wait_for_high<'a>(&'a mut self)
pub async fn wait_for_low<'a>(&'a mut self)
pub async fn wait_for_rising_edge<'a>(&'a mut self)
pub async fn wait_for_falling_edge<'a>(&'a mut self)
pub async fn wait_for_any_edge<'a>(&'a mut self)
Trait Implementations§
impl<'d> Unpin for ExtiInput<'d>
Source§impl<'d> Wait for ExtiInput<'d>
impl<'d> Wait for ExtiInput<'d>
Source§async fn wait_for_high(&mut self) -> Result<(), Self::Error>
async fn wait_for_high(&mut self) -> Result<(), Self::Error>
Wait until the pin is high. If it is already high, return immediately. Read more
Source§async fn wait_for_low(&mut self) -> Result<(), Self::Error>
async fn wait_for_low(&mut self) -> Result<(), Self::Error>
Wait until the pin is low. If it is already low, return immediately. Read more
Source§async fn wait_for_rising_edge(&mut self) -> Result<(), Self::Error>
async fn wait_for_rising_edge(&mut self) -> Result<(), Self::Error>
Wait for the pin to undergo a transition from low to high. Read more
Source§async fn wait_for_falling_edge(&mut self) -> Result<(), Self::Error>
async fn wait_for_falling_edge(&mut self) -> Result<(), Self::Error>
Wait for the pin to undergo a transition from high to low. Read more
Source§async fn wait_for_any_edge(&mut self) -> Result<(), Self::Error>
async fn wait_for_any_edge(&mut self) -> Result<(), Self::Error>
Wait for the pin to undergo any transition, i.e low to high OR high to low.