[][src]Struct sensor_tlv493d::Tlv493d

pub struct Tlv493d<I2c, E> { /* fields omitted */ }

Implementations

impl<I2c, E> Tlv493d<I2c, E> where
    I2c: Read<Error = E> + Write<Error = E> + WriteRead<Error = E>,
    E: Debug
[src]

pub fn new(i2c: I2c, addr: u8, mode: Mode) -> Result<Self, Error<E>>[src]

Create a new TLV493D instance

pub fn configure(&mut self, mode: Mode) -> Result<(), Error<E>>[src]

pub fn read_raw(&mut self) -> Result<[i16; 4], Error<E>>[src]

Read raw values from the sensor

pub fn read(&mut self) -> Result<Values, Error<E>>[src]

Read and convert values from the sensor

Auto Trait Implementations

impl<I2c, E> RefUnwindSafe for Tlv493d<I2c, E> where
    E: RefUnwindSafe,
    I2c: RefUnwindSafe

impl<I2c, E> Send for Tlv493d<I2c, E> where
    E: Send,
    I2c: Send

impl<I2c, E> Sync for Tlv493d<I2c, E> where
    E: Sync,
    I2c: Sync

impl<I2c, E> Unpin for Tlv493d<I2c, E> where
    E: Unpin,
    I2c: Unpin

impl<I2c, E> UnwindSafe for Tlv493d<I2c, E> where
    E: UnwindSafe,
    I2c: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.