TMF882X.Result (tmf882x v0.1.0)

Encodes and decodes the contents of the measurement register.

Link to this section Summary

Functions

Creates a new Result from the contents of the result register (0x20). This assumes the binary starts with at 0x20 and includes the cid_rid value of 0x10.

Link to this section Types

@type t() :: %TMF882X.Result{
  ambient: term(),
  measurements: term(),
  number: term(),
  photon_count: term(),
  reference_count: term(),
  size: term(),
  sys_tick: term(),
  temperature: term(),
  tid: term(),
  valid_results: term()
}

Link to this section Functions

@spec new(binary()) :: t()

Creates a new Result from the contents of the result register (0x20). This assumes the binary starts with at 0x20 and includes the cid_rid value of 0x10.