[−][src]Struct sensor_tlv493d::Tlv493d
Implementations
impl<I2c, E> Tlv493d<I2c, E> where
I2c: Read<Error = E> + Write<Error = E> + WriteRead<Error = E>,
E: Debug,
[src]
I2c: Read<Error = E> + Write<Error = E> + WriteRead<Error = E>,
E: Debug,
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,
E: RefUnwindSafe,
I2c: RefUnwindSafe,
impl<I2c, E> Send for Tlv493d<I2c, E> where
E: Send,
I2c: Send,
E: Send,
I2c: Send,
impl<I2c, E> Sync for Tlv493d<I2c, E> where
E: Sync,
I2c: Sync,
E: Sync,
I2c: Sync,
impl<I2c, E> Unpin for Tlv493d<I2c, E> where
E: Unpin,
I2c: Unpin,
E: Unpin,
I2c: Unpin,
impl<I2c, E> UnwindSafe for Tlv493d<I2c, E> where
E: UnwindSafe,
I2c: UnwindSafe,
E: UnwindSafe,
I2c: UnwindSafe,
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>,