Skip to main content

InteractAsync

Trait InteractAsync 

Source
pub trait InteractAsync: Addressing {
    // Required methods
    async fn async_read<I: I2c<SevenBitAddress>, D: DelayNs>(
        &mut self,
        dev: &mut Ds2484<I, D>,
    ) -> Result<(), Ds2484Error<I::Error>>;
    async fn async_write<I: I2c<SevenBitAddress>, D: DelayNs>(
        &mut self,
        dev: &mut Ds2484<I, D>,
    ) -> Result<(), Ds2484Error<I::Error>>;
}
Expand description

Trait for interacting with the DS2484 I2C 1-Wire master asynchronously.

Required Methods§

Source

async fn async_read<I: I2c<SevenBitAddress>, D: DelayNs>( &mut self, dev: &mut Ds2484<I, D>, ) -> Result<(), Ds2484Error<I::Error>>

Read the register value from the DS2484 asynchronously.

Source

async fn async_write<I: I2c<SevenBitAddress>, D: DelayNs>( &mut self, dev: &mut Ds2484<I, D>, ) -> Result<(), Ds2484Error<I::Error>>

Write the register value to the DS2484 asynchronously.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§