HMC5883L  0.2
Library for I2C communication with HMC5883L over Arduino
 All Classes Files Functions Variables Modules
Gain settings

Convenient definitions for the gain settings. More...

Macros

#define HMC_GAIN088   0
 
#define HMC_GAIN130   1
 
#define HMC_GAIN190   2
 
#define HMC_GAIN250   3
 
#define HMC_GAIN400   4
 
#define HMC_GAIN470   5
 
#define HMC_GAIN560   6
 
#define HMC_GAIN810   7
 

Detailed Description

Convenient definitions for the gain settings.

See setGain() for more details.

Macro Definition Documentation

#define HMC_GAIN088   0

Gain: 1370 LSB/G, Range: ±0.88, Resolution: 0.73 (mG / LSB)

#define HMC_GAIN130   1

Gain: 1090 LSB/G, Range: ±1.30, Resolution: 0.92 (mG / LSB)

#define HMC_GAIN190   2

Gain: 820 LSB/G, Range: ±1.90, Resolution: 1.22 (mG / LSB)

#define HMC_GAIN250   3

Gain: 660 LSB/G, Range: ±2.50, Resolution: 1.52 (mG / LSB)

#define HMC_GAIN400   4

Gain: 440 LSB/G, Range: ±4.00, Resolution: 2.27 (mG / LSB)

#define HMC_GAIN470   5

Gain: 390 LSB/G, Range: ±4.70, Resolution: 2.56 (mG / LSB)

#define HMC_GAIN560   6

Gain: 330 LSB/G, Range: ±5.60, Resolution: 3.03 (mG / LSB)

#define HMC_GAIN810   7

Gain: 230 LSB/G, Range: ±8.10, Resolution: 4.35 (mG / LSB)