SensorAccess

Trait SensorAccess 

pub trait SensorAccess: Sealed {
    // Required method
    fn sensor(&self) -> &'static dyn Sensor;
}
Available on crate feature sensors only.
Expand description

Provides access to the sensor driver instance. For driver implementors only.

Required Methods§

fn sensor(&self) -> &'static dyn Sensor

Returns the sensor driver instance that produced these samples. For driver implementors only.

Implementors§