I2C LSM9DS1 RaspberryPI C++ Library
MagSettings Struct Reference

Magnetometer settings with default values. More...

#include <LSM9DS1.h>

Public Types

enum  Scale { M_SCALE_4GS = 4, M_SCALE_8GS = 8, M_SCALE_12GS = 12, M_SCALE_16GS = 16 }
 Defines all possible FSR's of the magnetometer. More...
 
enum  SampleRate {
  M_ODR_0625, M_ODR_125, M_ODR_250, M_ODR_5,
  M_ODR_10, M_ODR_20, M_ODR_40, M_ODR_80
}
 Defines all possible output data rates of the magnetometer.
 

Public Attributes

uint8_t enabled = true
 
Scale scale = M_SCALE_16GS
 
SampleRate sampleRate = M_ODR_80
 Output data rate of the magnetometer.
 
uint8_t tempCompensationEnable = false
 
uint8_t XYPerformance = 3
 magPerformance can be any value between 0-3 0 = Low power mode 2 = high performance 1 = medium performance 3 = ultra-high performance
 
uint8_t ZPerformance = 3
 
uint8_t lowPowerEnable = false
 

Detailed Description

Magnetometer settings with default values.

Member Enumeration Documentation

◆ Scale

Defines all possible FSR's of the magnetometer.

Enumerator
M_SCALE_4GS 

4Gs

M_SCALE_8GS 

8Gs

M_SCALE_12GS 

12Gs

M_SCALE_16GS 

16Gs


The documentation for this struct was generated from the following file: