I2C LSM9DS1 RaspberryPI C++ Library
AccelSettings Struct Reference

Accelerometer settings with default values. More...

#include <LSM9DS1.h>

Public Types

enum  Scale { A_SCALE_2G = 2, A_SCALE_16G = 16, A_SCALE_4G = 4, A_SCALE_8G = 8 }
 defines all possible FSR's of the accelerometer
 
enum  Abw {
  A_ABW_408 = 0, A_ABW_211 = 1, A_ABW_105 = 2, A_ABW_50 = 3,
  A_ABW_OFF = -1
}
 Defines all possible anti-aliasing filter rates of the accelerometer. More...
 

Public Attributes

Scale scale = A_SCALE_16G
 accel scale (in g) can be 2, 4, 8, or 16
 
uint8_t enableX = true
 Enables accelerometer's X axis.
 
uint8_t enableY = true
 Enables accelerometer's Y axis.
 
uint8_t enableZ = true
 Enables accelerometer's Z axis.
 
Abw bandwidth = A_ABW_OFF
 Accel cutoff freqeuncy.
 
uint8_t highResEnable = false
 
uint8_t highResBandwidth = 0
 

Detailed Description

Accelerometer settings with default values.

Member Enumeration Documentation

◆ Abw

Defines all possible anti-aliasing filter rates of the accelerometer.

Enumerator
A_ABW_408 

408 Hz (0x0)

A_ABW_211 

211 Hz (0x1)

A_ABW_105 

105 Hz (0x2)

A_ABW_50 

50 Hz (0x3)

A_ABW_OFF 

no cutoff


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