Struct hts221::device::AvConf [] [src]

pub struct AvConf(_);

The AV_CONF register. Controls humidity and temperature resolution modes.

Methods

impl AvConf
[src]

[src]

Blocking read of the AV_CONF register over comm.

[src]

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

[src]

Returns the number of internal humidity samples averaged together to generate one sample. Note that this is an interpretation of the bit pattern, not the bit pattern itself.

[src]

Sets the number of internal humidity samples that are averaged together to generate one sample. Use inside a modify function to actually set the value on the chip.

Do this:

let av_conf = hts221.av_conf()?;
av_conf.modify(|w| w.set_humidity_samples_averaged(AvgH::Avg8))?;

Instead of this:

let av_conf = hts221.av_conf()?;
av_conf.set_humidity_samples_averaged(AvgH::Avg8)?;  // not written to chip

[src]

Returns the number of internal temperature samples averaged together to generate one sample. Note that this is an interpretation of the bit pattern, not the bit pattern itself.

[src]

Sets the number of internal temperature samples that are averaged together to generate one sample. Use inside a modify function to actually set the value on the chip.

Trait Implementations

impl Debug for AvConf
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for AvConf

impl Sync for AvConf