View Source HTS221.IORead (hts221 v1.1.0)

Data structure that provides information about how to read registers

This is only useful if you are implementing the HTS221.Register protocol.

If the :length field is more than one, then the read will read length number of registers sequentially.

For example:

%HTS221.IORead{
  register: 0x01,
  length: 5
}

This will read registers 0x01 to 0x05 and provide a 5 byte binary string.

Link to this section Summary

Functions

Create a new HTS221.IORead data structure

Link to this section Types

Specs

t() :: %HTS221.IORead{length: non_neg_integer(), register: byte()}

Link to this section Functions

Specs

new(byte(), non_neg_integer()) :: t()

Create a new HTS221.IORead data structure