RKTK API Docs RKTK Home Repo

Trait FlexPin

Source
pub trait FlexPin {
    // Required methods
    fn set_as_input(&mut self);
    fn set_as_output(&mut self);
    fn set_low(&mut self);
    fn set_high(&mut self);
    fn is_high(&self) -> bool;
    fn is_low(&self) -> bool;
    async fn wait_for_high(&mut self);
    async fn wait_for_low(&mut self);
    fn set_pull(&mut self, pull: Pull);
}

Required Methods§

Source

fn set_as_input(&mut self)

Source

fn set_as_output(&mut self)

Source

fn set_low(&mut self)

Source

fn set_high(&mut self)

Source

fn is_high(&self) -> bool

Source

fn is_low(&self) -> bool

Source

async fn wait_for_high(&mut self)

Source

async fn wait_for_low(&mut self)

Source

fn set_pull(&mut self, pull: Pull)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§