[−][src]Struct matrix_rhal::Sensors
Communicates with the main sensors on the MATRIX Creator.
Fields
bus: &'a Bus
Methods
impl<'a> Sensors<'a>
[src]
pub fn new(bus: &Bus) -> Sensors
[src]
Creates a new instance of Sensors.
pub fn read_uv(&self) -> f32
[src]
Return the latest UV sensor value.
pub fn read_pressure(&self) -> Pressure
[src]
Return the latest Pressure sensor values.
pub fn read_humidity(&self) -> Humidity
[src]
Return the latest Humidity sensor values.
pub fn read_imu(&self) -> Imu
[src]
Return the latest IMU sensor values.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Sensors<'a>
impl<'a> Send for Sensors<'a>
impl<'a> Sync for Sensors<'a>
impl<'a> Unpin for Sensors<'a>
impl<'a> UnwindSafe for Sensors<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,