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

impl Debug for UserRegister[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.