Struct capsules_extra::ltc294x::LTC294X
source · pub struct LTC294X<'a, I: I2CDevice> { /* private fields */ }
Expand description
Implementation of a driver for the LTC294X coulomb counters.
Implementations§
source§impl<'a, I: I2CDevice> LTC294X<'a, I>
impl<'a, I: I2CDevice> LTC294X<'a, I>
pub fn new( i2c: &'a I, interrupt_pin: Option<&'a dyn InterruptPin<'a>>, buffer: &'static mut [u8], ) -> LTC294X<'a, I>
pub fn set_client<C: LTC294XClient>(&self, client: &'static C)
pub fn read_status(&self) -> Result<(), ErrorCode>
Trait Implementations§
Auto Trait Implementations§
impl<'a, I> !Freeze for LTC294X<'a, I>
impl<'a, I> !RefUnwindSafe for LTC294X<'a, I>
impl<'a, I> !Send for LTC294X<'a, I>
impl<'a, I> !Sync for LTC294X<'a, I>
impl<'a, I> Unpin for LTC294X<'a, I>
impl<'a, I> !UnwindSafe for LTC294X<'a, I>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more