Bmxx80Base Class

Definition

Represents the core functionality of the Bmxx80 family.

public abstract class Bmxx80Base : IDisposable
type Bmxx80Base = class
    interface IDisposable
Public MustInherit Class Bmxx80Base
Implements IDisposable
Inheritance
Bmxx80Base
Derived
Implements

Constructors

Bmxx80Base(Byte, I2cDevice)

Initializes a new instance of the Bmxx80Base class.

Fields

_communicationProtocol

Chosen communication protocol.

_controlRegister

The control register of the sensor.

_i2cDevice

I2C device used to communicate with the device.

TemperatureFine

Properties

_tempCalibrationFactor
PressureSampling

Gets or sets the pressure sampling.

TempCalibrationFactor

The temperature calibration factor.

TemperatureFine

The variable TemperatureFine carries a fine resolution temperature value over to the pressure compensation formula and could be implemented as a global variable.

TemperatureSampling

Gets or sets the temperature sampling.

Methods

ByteToSampling(Byte)

Converts byte to Sampling.

CompensateTemperature(Int32)

Compensates the temperature.

Dispose()

Cleanup.

Dispose(Boolean)

Releases the unmanaged resources used by the Bmxx80 and optionally releases the managed resources.

Read16BitsFromRegister(Byte)
Read16BitsFromRegister(Byte, Bmxx80Base+Endianness)

Reads a 16 bit value over I2C.

Read24BitsFromRegister(Byte)
Read24BitsFromRegister(Byte, Bmxx80Base+Endianness)

Reads a 24 bit value over I2C.

Read8BitsFromRegister(Byte)

Reads an 8 bit value from a register.

ReadPressureSampling()
ReadTemperatureSampling()
Reset()

When called, the device is reset using the complete power-on-reset procedure. The device will reset to the default configuration.

SetDefaultConfiguration()

Sets the default configuration for the sensor.

SetPressureSampling(Sampling)
SetTemperatureSampling(Sampling)
TryReadPressure(Pressure)

Reads the pressure. A return value indicates whether the reading succeeded.

TryReadTemperature(Temperature)

Reads the temperature. A return value indicates whether the reading succeeded.

Applies to