pub struct OpenLogger<I2C> { /* private fields */ }Implementations§
Source§impl<I2C> OpenLogger<I2C>where
I2C: I2c,
impl<I2C> OpenLogger<I2C>where
I2C: I2c,
Sourcepub fn new(address: DeviceAddr, i2c: I2C) -> Self
pub fn new(address: DeviceAddr, i2c: I2C) -> Self
Create a new OpenLogger instance.
Sourcepub fn new_and_validate(
address: DeviceAddr,
i2c: I2C,
) -> Result<Self, I2C::Error>
pub fn new_and_validate( address: DeviceAddr, i2c: I2C, ) -> Result<Self, I2C::Error>
Create a new OpenLogger instance and validate that it is ready for writing.
pub fn get_version(&mut self) -> Result<Version, I2C::Error>
pub fn get_status(&mut self) -> Result<Status, I2C::Error>
Trait Implementations§
Auto Trait Implementations§
impl<I2C> Freeze for OpenLogger<I2C>where
I2C: Freeze,
impl<I2C> RefUnwindSafe for OpenLogger<I2C>where
I2C: RefUnwindSafe,
impl<I2C> Send for OpenLogger<I2C>where
I2C: Send,
impl<I2C> Sync for OpenLogger<I2C>where
I2C: Sync,
impl<I2C> Unpin for OpenLogger<I2C>where
I2C: Unpin,
impl<I2C> UnwindSafe for OpenLogger<I2C>where
I2C: UnwindSafe,
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