Bmx280Base Class

Definition

Represents the core functionality of the Bmx280 family.

public abstract class Bmx280Base : Iot.Device.Bmxx80.Bmxx80Base
[System.Device.Model.Interface("Represents the core functionality of the Bmx280 family.")]
public abstract class Bmx280Base : Iot.Device.Bmxx80.Bmxx80Base
type Bmx280Base = class
    inherit Bmxx80Base
[<System.Device.Model.Interface("Represents the core functionality of the Bmx280 family.")>]
type Bmx280Base = class
    inherit Bmxx80Base
Public MustInherit Class Bmx280Base
Inherits Bmxx80Base
Inheritance
Bmx280Base
Derived
Attributes

Constructors

Bmx280Base(Byte, I2cDevice)

Initializes a new instance of the Bmx280Base class.

Fields

_communicationProtocol

Chosen communication protocol.

(Inherited from Bmxx80Base)
_controlRegister

The control register of the sensor.

(Inherited from Bmxx80Base)
_i2cDevice

I2C device used to communicate with the device.

(Inherited from Bmxx80Base)
DefaultI2cAddress

Default I2C bus address.

s_osToMeasCycles

Converts oversampling to needed measurement cycles for that oversampling.

SecondaryI2cAddress

Secondary I2C bus address.

TemperatureFine (Inherited from Bmxx80Base)

Properties

_tempCalibrationFactor (Inherited from Bmxx80Base)
FilterMode

Gets or sets the IIR filter mode.

PressureSampling

Gets or sets the pressure sampling.

(Inherited from Bmxx80Base)
StandbyTime

Gets or sets the standby time between two consecutive measurements.

TempCalibrationFactor

The temperature calibration factor.

(Inherited from Bmxx80Base)
TemperatureFine

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

(Inherited from Bmxx80Base)
TemperatureSampling

Gets or sets the temperature sampling.

(Inherited from Bmxx80Base)

Methods

ByteToSampling(Byte)

Converts byte to Sampling.

(Inherited from Bmxx80Base)
CompensateTemperature(Int32)

Compensates the temperature.

(Inherited from Bmxx80Base)
Dispose()

Cleanup.

(Inherited from Bmxx80Base)
Dispose(Boolean)

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

(Inherited from Bmxx80Base)
GetMeasurementDuration()

Gets the required time in ms to perform a measurement with the current sampling modes.

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

Reads a 16 bit value over I2C.

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

Reads a 24 bit value over I2C.

(Inherited from Bmxx80Base)
Read8BitsFromRegister(Byte)

Reads an 8 bit value from a register.

(Inherited from Bmxx80Base)
ReadAltitudeAsync(Double)
ReadFilterMode()
ReadPowerMode()

Read the Bmx280PowerMode state.

ReadPressureAsync()
ReadPressureSampling() (Inherited from Bmxx80Base)
ReadStandbyTime()
ReadStatus()

Get the current status of the device.

ReadTemperatureAsync()
ReadTemperatureSampling() (Inherited from Bmxx80Base)
Reset()

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

(Inherited from Bmxx80Base)
SetDefaultConfiguration()

Sets the default configuration for the sensor.

SetDefaultConfiguration()

Sets the default configuration for the sensor.

(Inherited from Bmxx80Base)
SetFilterMode(FilteringMode)
SetPowerMode(Bmx280PowerMode)

Sets the power mode to the given mode

SetPressureSampling(Sampling) (Inherited from Bmxx80Base)
SetStandbyTime(StandbyTime)
SetTemperatureSampling(Sampling) (Inherited from Bmxx80Base)
TryReadAltitude(Length)

Calculates the altitude in meters from the mean sea-level pressure.

TryReadAltitude(Pressure, Length)

Calculates the altitude in meters from the specified sea-level pressure(in hPa).

TryReadPressure(Pressure)

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

TryReadPressure(Pressure)

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

(Inherited from Bmxx80Base)
TryReadPressureCore(Pressure, Boolean)

Performs a pressure reading.

TryReadTemperature(Temperature)

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

TryReadTemperature(Temperature)

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

(Inherited from Bmxx80Base)
TryReadTemperatureCore(Temperature)

Performs a temperature reading.

Applies to