Struct htu2xd::UserRegister [−][src]
pub struct UserRegister(_);
The user register, used for configuration
The only way to create a UserRegister
object is to read it from a sensor. It can then be
modified and written back.
Implementations
impl UserRegister
[src]
pub fn resolution(&self) -> Resolution
[src]
Returns the current measurement resolution
pub fn supply_voltage(&self) -> SupplyVoltage
[src]
Returns the supply voltage when the last temperature or humidity measurement was taken
pub fn heater_enabled(&self) -> bool
[src]
Returns true if the on-chip heater is enabled
pub fn otp_reload_enabled(&self) -> bool
[src]
Returns true if the one-time programmable memory reload is active
With this active, the default settings will be restored after each temperature or humidity measurement.
pub fn set_resolution(&mut self, resolution: Resolution)
[src]
Sets the measurement resolution
pub fn set_heater_enabled(&mut self, enabled: bool)
[src]
Enables or disables the on-chip heater
pub fn set_otp_reload_enabled(&mut self, otp_reload: bool)
[src]
Enables or disables the reloading of default settings from one-time programmable memory after each measurement
Trait Implementations
Auto Trait Implementations
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>,