pub fn reset(&mut self) -> Result<DeviceStatus> {
    self.ensure_ready()?;

    self.device.smbus_write_byte(0xE2)?;
    self.sleep_write();

    self.wait_for_ready()?;
    Ok(self.read_status()?)
  }
/// Sends a device reset command, waits for it to become ready again, and
/// returns a refreshed [`DeviceStatus`]. Raises an error if the device i
/// not initially ready.
Sends a device reset command, waits for it to become ready again, and
returns a refreshed [`DeviceStatus`]. Raises an error if the device i
not initially ready.
Sends a device reset command waits for it to become ready again and returns a refreshed [ ` DeviceStatus ` ] . Raises an error if the device i not initially ready .
pub fn reset(&mut self) -> Result<DeviceStatus> {
    self.ensure_ready()?;
    self.device.smbus_write_byte(0xE2)?;
    self.sleep_write();
    self.wait_for_ready()?;
    Ok(self.read_status()?)
  }
pub fn reset ( & mut self ) -> Result < DeviceStatus > { self . ensure_ready ( ) ? ; self . device . smbus_write_byte ( 0xE2 ) ? ; self . sleep_write ( ) ; self . wait_for_ready ( ) ? ; Ok ( self . read_status ( ) ? ) }
Sends a device reset command, waits for it to become ready again, and
returns a refreshed [`DeviceStatus`].
Sends a device reset command waits for it to become ready again and returns a refreshed [ ` DeviceStatus ` ] .
&mut self
&mut self