Struct bq40z50::BQ40Z50 [−][src]
Implementations
impl<I2C, I2cError> BQ40Z50<I2C> where
I2C: WriteRead<Error = I2cError>,
[src]
I2C: WriteRead<Error = I2cError>,
pub fn new(i2c: I2C) -> BQ40Z50<I2C>
[src]
pub fn get_temperature(&mut self) -> Result<f32, Error<I2cError>>
[src]
pub fn get_voltage(&mut self) -> Result<u32, Error<I2cError>>
[src]
pub fn get_current(&mut self) -> Result<u32, Error<I2cError>>
[src]
pub fn get_cell_voltage_1(&mut self) -> Result<u32, Error<I2cError>>
[src]
pub fn get_cell_voltage_2(&mut self) -> Result<u32, Error<I2cError>>
[src]
pub fn get_cell_voltage_3(&mut self) -> Result<u32, Error<I2cError>>
[src]
pub fn get_cell_voltage_4(&mut self) -> Result<u32, Error<I2cError>>
[src]
Auto Trait Implementations
impl<I2C> RefUnwindSafe for BQ40Z50<I2C> where
I2C: RefUnwindSafe,
I2C: RefUnwindSafe,
impl<I2C> Send for BQ40Z50<I2C> where
I2C: Send,
I2C: Send,
impl<I2C> Sync for BQ40Z50<I2C> where
I2C: Sync,
I2C: Sync,
impl<I2C> Unpin for BQ40Z50<I2C> where
I2C: Unpin,
I2C: Unpin,
impl<I2C> UnwindSafe for BQ40Z50<I2C> where
I2C: 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,
pub 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.
pub 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>,