TMF882X.Measure (tmf882x v0.1.0)

Manages the starting and stopping of the measurement process.

Link to this section Summary

Functions

Clears the interrupt register

Enables the interrupt register

Reads the data in the measurement registry and returns the decoded TMF882X.Result struct.

Starts a measurement

Stops a measurement in progress

Waits for interrupt bit to be set. Useful when the interrupt pin is not used.

Link to this section Functions

Link to this function

clear_interrupts(pid)

Clears the interrupt register

Link to this function

enable_interrupt(pid)

@spec enable_interrupt(reference()) :: :ok | {:error, any()}

Enables the interrupt register

Reads the data in the measurement registry and returns the decoded TMF882X.Result struct.

Starts a measurement

Stops a measurement in progress

Link to this function

wait_for_interrupt(pid, timeout)

Waits for interrupt bit to be set. Useful when the interrupt pin is not used.