C# 클래스 Emlid.WindowsIot.Hardware.Components.Ms5611.Ms5611Device

MS5611 barometric pressure and temperature sensor (hardware device), connected via I2C.
상속: DisposableObject
파일 보기 프로젝트 열기: emlid/Navio-SDK-Windows-IoT

Private Properties

프로퍼티 타입 설명
Ms5611Device System

공개 메소드들

메소드 설명
Reset ( ) : void

Resets the device, updates PROM data and clears current measurements

Update ( ) : void

Converts then calculates the Measurement.

보호된 메소드들

메소드 설명
Calculate ( int rawPressure, int rawTemperature ) : void

Calculates the Measurement by applying the Prom coefficients and other rules to the raw measurements.

ConvertPressure ( Ms5611Osr rate ) : int

Executes the Ms5611Command.ConvertD1Pressure command to measure pressure at the specified OSR, waits then returns the result.

ConvertTemperature ( Ms5611Osr rate ) : int

Executes the Ms5611Command.ConvertD2Temperature command to measure pressure at the specified OSR, waits then returns the result.

Dispose ( bool disposing ) : void

DisposableObject.Dispose(bool).

GetConvertDelay ( Ms5611Osr rate ) : int

Gets the time to wait in milliseconds for conversion with the specified OSR.

ReadProm ( ) : bool

Reads calibration data from PROM, validates and updates the PROM data.

Should only be executed after Reset to get accurate values.

ReadPromCoefficient ( int index, byte buffer, int offset ) : void

Reads a coefficient value from the PROM.

Reads Ms5611PromData.CoefficientSize bytes into the target buffer at the specified offset.

WaitForConversion ( Ms5611Osr rate ) : void

Waits for conversion at the specified OSR.

비공개 메소드들

메소드 설명
Ms5611Device ( Windows.Devices.I2c.I2cDevice device, Ms5611Osr rate ) : System

메소드 상세

Calculate() 보호된 메소드

Calculates the Measurement by applying the Prom coefficients and other rules to the raw measurements.
protected Calculate ( int rawPressure, int rawTemperature ) : void
rawPressure int
rawTemperature int
리턴 void

ConvertPressure() 보호된 메소드

Executes the Ms5611Command.ConvertD1Pressure command to measure pressure at the specified OSR, waits then returns the result.
protected ConvertPressure ( Ms5611Osr rate ) : int
rate Ms5611Osr
리턴 int

ConvertTemperature() 보호된 메소드

Executes the Ms5611Command.ConvertD2Temperature command to measure pressure at the specified OSR, waits then returns the result.
protected ConvertTemperature ( Ms5611Osr rate ) : int
rate Ms5611Osr
리턴 int

Dispose() 보호된 메소드

DisposableObject.Dispose(bool).
protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

GetConvertDelay() 보호된 메소드

Gets the time to wait in milliseconds for conversion with the specified OSR.
protected GetConvertDelay ( Ms5611Osr rate ) : int
rate Ms5611Osr Over-Sampling Rate for which to return the delay.
리턴 int

ReadProm() 보호된 메소드

Reads calibration data from PROM, validates and updates the PROM data.
Should only be executed after Reset to get accurate values.
protected ReadProm ( ) : bool
리턴 bool

ReadPromCoefficient() 보호된 메소드

Reads a coefficient value from the PROM.
Reads Ms5611PromData.CoefficientSize bytes into the target buffer at the specified offset.
protected ReadPromCoefficient ( int index, byte buffer, int offset ) : void
index int Coefficient index (0-7).
buffer byte Target buffer.
offset int Target offset.
리턴 void

Reset() 공개 메소드

Resets the device, updates PROM data and clears current measurements
public Reset ( ) : void
리턴 void

Update() 공개 메소드

Converts then calculates the Measurement.
public Update ( ) : void
리턴 void

WaitForConversion() 보호된 메소드

Waits for conversion at the specified OSR.
protected WaitForConversion ( Ms5611Osr rate ) : void
rate Ms5611Osr Over-Sampling Rate to wait for.
리턴 void