Bmp280 Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a BME280 temperature and barometric pressure sensor.
public class Bmp280 : Iot.Device.Bmxx80.Bmx280Base
type Bmp280 = class
inherit Bmx280Base
Public Class Bmp280
Inherits Bmx280Base
- Inheritance
Constructors
Bmp280(I2cDevice) |
Initializes a new instance of the Bmp280 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. (Inherited from Bmx280Base) |
SecondaryI2cAddress |
Secondary I2C bus address. (Inherited from Bmx280Base) |
TemperatureFine | (Inherited from Bmxx80Base) |
Properties
_tempCalibrationFactor | (Inherited from Bmxx80Base) |
FilterMode |
Gets or sets the IIR filter mode. (Inherited from Bmx280Base) |
PressureSampling |
Gets or sets the pressure sampling. (Inherited from Bmxx80Base) |
StandbyTime |
Gets or sets the standby time between two consecutive measurements. (Inherited from Bmx280Base) |
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. (Inherited from Bmx280Base) |
Read() |
Performs a synchronous reading. |
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) | (Inherited from Bmx280Base) |
ReadAsync() |
Performs an asynchronous reading. |
ReadFilterMode() | (Inherited from Bmx280Base) |
ReadPowerMode() |
Read the Bmx280PowerMode state. (Inherited from Bmx280Base) |
ReadPressureAsync() | (Inherited from Bmx280Base) |
ReadPressureSampling() | (Inherited from Bmxx80Base) |
ReadStandbyTime() | (Inherited from Bmx280Base) |
ReadStatus() |
Get the current status of the device. (Inherited from Bmx280Base) |
ReadTemperatureAsync() | (Inherited from Bmx280Base) |
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. (Inherited from Bmx280Base) |
SetFilterMode(FilteringMode) | (Inherited from Bmx280Base) |
SetPowerMode(Bmx280PowerMode) |
Sets the power mode to the given mode (Inherited from Bmx280Base) |
SetPressureSampling(Sampling) | (Inherited from Bmxx80Base) |
SetStandbyTime(StandbyTime) | (Inherited from Bmx280Base) |
SetTemperatureSampling(Sampling) | (Inherited from Bmxx80Base) |
TryReadAltitude(Length) |
Calculates the altitude in meters from the mean sea-level pressure. (Inherited from Bmx280Base) |
TryReadAltitude(Pressure, Length) |
Calculates the altitude in meters from the specified sea-level pressure(in hPa). (Inherited from Bmx280Base) |
TryReadPressure(Pressure) |
Reads the pressure. A return value indicates whether the reading succeeded. (Inherited from Bmx280Base) |
TryReadPressureCore(Pressure, Boolean) |
Performs a pressure reading. (Inherited from Bmx280Base) |
TryReadTemperature(Temperature) |
Reads the temperature. A return value indicates whether the reading succeeded. (Inherited from Bmx280Base) |
TryReadTemperatureCore(Temperature) |
Performs a temperature reading. (Inherited from Bmx280Base) |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for