[][src]Struct ina219::INA219

pub struct INA219<I2C> { /* fields omitted */ }

Implementations

impl<I2C, E> INA219<I2C> where
    I2C: Write<Error = E> + Read<Error = E>, 
[src]

pub fn new(i2c: I2C, address: u8) -> INA219<I2C>[src]

pub fn calibrate(&mut self, value: u16) -> Result<(), E>[src]

pub fn shunt_voltage(&mut self) -> Result<i16, E>[src]

pub fn voltage(&mut self) -> Result<u16, E>[src]

pub fn power(&mut self) -> Result<i16, E>[src]

pub fn current(&mut self) -> Result<i16, E>[src]

Auto Trait Implementations

impl<I2C> RefUnwindSafe for INA219<I2C> where
    I2C: RefUnwindSafe

impl<I2C> Send for INA219<I2C> where
    I2C: Send

impl<I2C> Sync for INA219<I2C> where
    I2C: Sync

impl<I2C> Unpin for INA219<I2C> where
    I2C: Unpin

impl<I2C> UnwindSafe for INA219<I2C> where
    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.