View Source CircuitsSim.Device.BMP3XX (circuits_sim v0.1.0)

Bosch BMP3XX sensors.

Most sensors are at address 0x77, but some are at 0x76. See the datasheet for details. Many features aren't implemented.

Summary

Types

@type options() :: [{:sensor_type, sensor_type()}]
@type sensor_type() :: :bmp380 | :bmp390 | :bmp180 | :bmp280 | :bme280 | :bme680
@type t() :: %CircuitsSim.Device.BMP3XX{registers: map(), sensor_type: sensor_type()}

Functions

Link to this function

calibration_registers(sensor_type)

View Source
@spec calibration_registers(atom()) :: %{required(byte()) => byte()}
@spec child_spec(keyword()) :: Supervisor.child_spec()
Link to this function

default_registers(sensor_type)

View Source
@spec default_registers(atom()) :: %{required(byte()) => byte()}
Link to this function

measurement_registers(sensor_type, arg2 \\ nil)

View Source
@spec measurement_registers(atom(), any()) :: %{required(byte()) => byte()}
@spec new(options()) :: t()