Struct hts221::device::CtrlReg1 [] [src]

pub struct CtrlReg1(_);

The CTRL_REG1 register. Contains power on, data transfer mode, and data rate configuration.

Methods

impl CtrlReg1
[src]

[src]

Blocking read of the CTRL_REG1 register over comm.

[src]

Updates the register using f, then writes the new value out to the chip.

[src]

Returns true if the chip is active.

[src]

Clears the power-down bit. The device is in power-down mode when PD = 0.

[src]

Sets the power-down bit. The device is active when PD = 1.

[src]

Returns true if the chip is using block-update mode.

[src]

Clears the block-update mode bit. In default (continuous) mode, the lower and upper parts of the output registers are updated continuously. If it is not certain whether the read will be faster than output data rate, it is recommended to use block-update mode.

[src]

Sets the block-update mode bit. In block-update mode, after the reading of the lower (upper) register part, the content of that output register is not updated until the upper (lower) part is read also. This feature prevents the reading of LSB and MSB related to different samples.

[src]

Returns the configured data rate.

[src]

Sets the output data rates of humidity and temperature samples.

Trait Implementations

impl Debug for CtrlReg1
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for CtrlReg1

impl Sync for CtrlReg1