C# 클래스 CyrusBuilt.MonoPi.Components.Gyroscope.Honeywell.HMC5883L

Represents a device abstraction component for a Honeywell HMC5883L 3-axis Digital Compass IC.
상속: ComponentBase, IMultiAxisGyro
파일 보기 프로젝트 열기: cyrusbuilt/MonoPi

공개 메소드들

메소드 설명
Disable ( ) : void

Disables the gyro.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Call Dispose when you are finished using the CyrusBuilt.MonoPi.Components.Gyroscope.Honeywell.HMC5883L. The Dispose method leaves the CyrusBuilt.MonoPi.Components.Gyroscope.Honeywell.HMC5883L in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.Components.Gyroscope.Honeywell.HMC5883L so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.Components.Gyroscope.Honeywell.HMC5883L was occupying.

Enable ( ) : void

Enables the gyro.

HMC5883L ( ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Gyroscope.Honeywell.HMC5883L class. This is the default constructor.

HMC5883L ( II2CBus device ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Gyroscope.Honeywell.HMC5883L class with the I2C device that represents the physical connection to the gyro.

HMC5883L ( II2CBus device, Int32 address ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Gyroscope.Honeywell.HMC5883L class with the I2C device that represents the physical connection to the gyro and the bus address of the device.

Init ( IGyroscope triggeringAxis, GyroTriggerMode mode ) : IGyroscope

Initializes the Gyro.

ReadGyro ( ) : void

Reads the gyro and stores the value internally.

RecalibrateOffset ( ) : void

Recalibrates the offset.

메소드 상세

Disable() 공개 메소드

Disables the gyro.
/// Unable to write to gyro. /// /// This instance has been disposed. ///
public Disable ( ) : void
리턴 void

Dispose() 공개 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Call Dispose when you are finished using the CyrusBuilt.MonoPi.Components.Gyroscope.Honeywell.HMC5883L. The Dispose method leaves the CyrusBuilt.MonoPi.Components.Gyroscope.Honeywell.HMC5883L in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.Components.Gyroscope.Honeywell.HMC5883L so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.Components.Gyroscope.Honeywell.HMC5883L was occupying.
public Dispose ( ) : void
리턴 void

Enable() 공개 메소드

Enables the gyro.
/// Unable to write to gyro. /// /// This instance has been disposed. ///
public Enable ( ) : void
리턴 void

HMC5883L() 공개 메소드

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Gyroscope.Honeywell.HMC5883L class. This is the default constructor.
public HMC5883L ( ) : System
리턴 System

HMC5883L() 공개 메소드

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Gyroscope.Honeywell.HMC5883L class with the I2C device that represents the physical connection to the gyro.
/// Unable to open the specified I2C bus device. /// /// The specified device instance has been disposed. ///
public HMC5883L ( II2CBus device ) : System
device II2CBus /// The I2C device that represents the physical connection to the gyro. /// If null, then it is assumed that the host is a revision 2 or higher /// board and a default /// using the rev 2 I2C bus path will be used instead. ///
리턴 System

HMC5883L() 공개 메소드

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Gyroscope.Honeywell.HMC5883L class with the I2C device that represents the physical connection to the gyro and the bus address of the device.
/// Unable to open the specified I2C bus device. /// /// The specified device instance has been disposed. ///
public HMC5883L ( II2CBus device, Int32 address ) : System
device II2CBus /// The I2C device that represents the physical connection to the gyro. /// If null, then it is assumed that the host is a revision 2 or higher /// board and a default /// using the rev 2 I2C bus path will be used instead. ///
address System.Int32 /// The bus address of the device. ///
리턴 System

Init() 공개 메소드

Initializes the Gyro.
/// Unable to write to gyro. /// /// This instance has been disposed. ///
public Init ( IGyroscope triggeringAxis, GyroTriggerMode mode ) : IGyroscope
triggeringAxis IGyroscope /// The gyro that represents the single axis responsible for /// the triggering of updates. ///
mode GyroTriggerMode /// The gyro update trigger mode. ///
리턴 IGyroscope

ReadGyro() 공개 메소드

Reads the gyro and stores the value internally.
/// An error occurred while reading from the gyro. /// /// This instance has been disposed. ///
public ReadGyro ( ) : void
리턴 void

RecalibrateOffset() 공개 메소드

Recalibrates the offset.
/// Unable to write to gyro. /// /// This instance has been disposed. ///
public RecalibrateOffset ( ) : void
리턴 void