View Source HTS221.CTRLReg1 (hts221 v1.1.0)

Control the power state, data rate, and update strategy of the HTS221

Link to this section Summary

Functions

Parse the binary into a HTS221.CTRLReg1 structure

Turn the HTS221.CTRLReg1 structure into a binary to be sent to the transport layer

Link to this section Types

Specs

block_data_update() :: :continuous | :wait_for_reading

Specs

output_data_rate() :: :one_shot | :one_Hz | :seven_Hz | :twelve_point_five_Hz

Specs

power_mode() :: :down | :active

Specs

t() :: %HTS221.CTRLReg1{
  block_data_update: block_data_update(),
  output_data_rate: output_data_rate(),
  power_mode: power_mode()
}

Link to this section Functions

Specs

from_binary(binary()) :: t()

Parse the binary into a HTS221.CTRLReg1 structure

Specs

to_binary(t()) :: binary()

Turn the HTS221.CTRLReg1 structure into a binary to be sent to the transport layer