DUDS
Distributed Update of Data from Something
LSM9DS1.cpp File Reference
Include dependency graph for LSM9DS1.cpp:

Go to the source code of this file.

Namespaces

 duds
 
 duds::hardware
 
 duds::hardware::devices
 The root namespace for various device drivers to support specific hardware items.
 
 duds::hardware::devices::instruments
 The namespace with support for various instruments that sense properties of the physical world.
 
 duds::hardware::devices::instruments::LSM9DS1_internal
 Prevent Doxygen from mixing this up with other source-file specific items from other files.
 

Enumerations

enum  duds::hardware::devices::instruments::LSM9DS1_internal::AccelGyroRegs {
  duds::hardware::devices::instruments::LSM9DS1_internal::AgrDeviceId = 0xF, duds::hardware::devices::instruments::LSM9DS1_internal::AgrGyroConfig1, duds::hardware::devices::instruments::LSM9DS1_internal::AgrGyroConfig2, duds::hardware::devices::instruments::LSM9DS1_internal::AgrGyroConfig3,
  duds::hardware::devices::instruments::LSM9DS1_internal::AgrTemp = 0x15, duds::hardware::devices::instruments::LSM9DS1_internal::AgrStatusPreGyro = 0x17, duds::hardware::devices::instruments::LSM9DS1_internal::AgrGyroSampleX, duds::hardware::devices::instruments::LSM9DS1_internal::AgrGyroSampleY = 0x1A,
  duds::hardware::devices::instruments::LSM9DS1_internal::AgrGyroSampleZ = 0x1C, duds::hardware::devices::instruments::LSM9DS1_internal::AgrGyroConfig4 = 0x1E, duds::hardware::devices::instruments::LSM9DS1_internal::AgrAccelConfig5, duds::hardware::devices::instruments::LSM9DS1_internal::AgrAccelConfig6,
  duds::hardware::devices::instruments::LSM9DS1_internal::AgrAccelConfig7, duds::hardware::devices::instruments::LSM9DS1_internal::AgrConfig8, duds::hardware::devices::instruments::LSM9DS1_internal::AgrConfig9, duds::hardware::devices::instruments::LSM9DS1_internal::AgrStatusPreAccel = 0x27,
  duds::hardware::devices::instruments::LSM9DS1_internal::AgrAccelSampleX, duds::hardware::devices::instruments::LSM9DS1_internal::AgrAccelSampleY = 0x2A, duds::hardware::devices::instruments::LSM9DS1_internal::AgrAccelSampleZ = 0x2C, duds::hardware::devices::instruments::LSM9DS1_internal::AgrFifoConfig = 0x2E,
  duds::hardware::devices::instruments::LSM9DS1_internal::AgrFifoStatus
}
 The registers for the accelerometer and gyroscope device. More...
 
enum  duds::hardware::devices::instruments::LSM9DS1_internal::MagRegs {
  duds::hardware::devices::instruments::LSM9DS1_internal::MagOffsetX = 5, duds::hardware::devices::instruments::LSM9DS1_internal::MagOffsetY = 7, duds::hardware::devices::instruments::LSM9DS1_internal::MagOffsetZ = 9, duds::hardware::devices::instruments::LSM9DS1_internal::MagDeviceId = 0xF,
  duds::hardware::devices::instruments::LSM9DS1_internal::MagConfig1 = 0x20, duds::hardware::devices::instruments::LSM9DS1_internal::MagConfig2, duds::hardware::devices::instruments::LSM9DS1_internal::MagConfig3, duds::hardware::devices::instruments::LSM9DS1_internal::MagConfig4,
  duds::hardware::devices::instruments::LSM9DS1_internal::MagConfig5, duds::hardware::devices::instruments::LSM9DS1_internal::MagStatus = 0x27, duds::hardware::devices::instruments::LSM9DS1_internal::MagSampleX, duds::hardware::devices::instruments::LSM9DS1_internal::MagSampleY = 0x2A,
  duds::hardware::devices::instruments::LSM9DS1_internal::MagSampleZ = 0x2C
}
 The registers for the magnetometer device. More...
 

Functions

static bool duds::hardware::devices::instruments::LSM9DS1_internal::matchDataRate (std::int8_t &destVal, float &actualRate, float reqRate, const std::map< float, int > &rateMap)
 Finds the lowest data rate that is at least as fast as requested, and the value needed to select this rate with the device. More...
 

Variables

static const std::map< float, int > duds::hardware::devices::instruments::LSM9DS1_internal::AccelDataRateVals
 Available sampling rates for the accelerometer when the gyroscope is not in use. More...
 
static const std::map< float, int > duds::hardware::devices::instruments::LSM9DS1_internal::AccelGyroDataRateVals
 Available sampling rates for the accelerometer and gyroscope when both are in use. More...
 
static const double duds::hardware::devices::instruments::LSM9DS1_internal::AccelScaleToUnits []
 
static const double duds::hardware::devices::instruments::LSM9DS1_internal::GyroScaleToUnits []
 
static const std::map< float, int > duds::hardware::devices::instruments::LSM9DS1_internal::MagDataRateVals
 Sample rates for the magnetometer. More...
 
static const double duds::hardware::devices::instruments::LSM9DS1_internal::MagScaleToUnits []