Bmxx80Base 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 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
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