View Source HTS221.IOWrite (hts221 v1.1.0)
Data structure about writing to registers
This is only useful if you are implementing the HTS221.Register
protocol.
This only has one field :payload
but the register you writing to should be
the first byte in the binary.
register = 0x01
%HTS221.IOWrite{
payload: <<register, 0x01>>
}
The above example says to write 0x01
to the 0x01
register.
Link to this section Summary
Functions
Create a new HTSS221.IOWrite
data structure
Link to this section Types
Specs
t() :: %HTS221.IOWrite{payload: binary()}
Link to this section Functions
Specs
Create a new HTSS221.IOWrite
data structure