Skip to main content
RKTK API Docs RKTK Home Repo

Multiplexer

Trait Multiplexer 

Source
pub trait Multiplexer {
    type Error: Debug + MaybeFormat;

    // Required method
    async fn select(&mut self, channel: u8) -> Result<(), Self::Error>;
}
Expand description

Analog multiplexer driver interface.

Required Associated Types§

Source

type Error: Debug + MaybeFormat

Error type for multiplexer operations.

Required Methods§

Source

async fn select(&mut self, channel: u8) -> Result<(), Self::Error>

Selects the channel.

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§