|
DUDS
|
Distributed Update of Data from Something
|
Prevent Doxygen from mixing this up with other source-file specific items from other files. More...
Enumerations | |
| enum | AccelGyroRegs { AgrDeviceId = 0xF, AgrGyroConfig1, AgrGyroConfig2, AgrGyroConfig3, AgrTemp = 0x15, AgrStatusPreGyro = 0x17, AgrGyroSampleX, AgrGyroSampleY = 0x1A, AgrGyroSampleZ = 0x1C, AgrGyroConfig4 = 0x1E, AgrAccelConfig5, AgrAccelConfig6, AgrAccelConfig7, AgrConfig8, AgrConfig9, AgrStatusPreAccel = 0x27, AgrAccelSampleX, AgrAccelSampleY = 0x2A, AgrAccelSampleZ = 0x2C, AgrFifoConfig = 0x2E, AgrFifoStatus } |
| The registers for the accelerometer and gyroscope device. More... | |
| enum | MagRegs { MagOffsetX = 5, MagOffsetY = 7, MagOffsetZ = 9, MagDeviceId = 0xF, MagConfig1 = 0x20, MagConfig2, MagConfig3, MagConfig4, MagConfig5, MagStatus = 0x27, MagSampleX, MagSampleY = 0x2A, MagSampleZ = 0x2C } |
| The registers for the magnetometer device. More... | |
Functions | |
| static bool | 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 > | AccelDataRateVals |
| Available sampling rates for the accelerometer when the gyroscope is not in use. More... | |
| static const std::map< float, int > | AccelGyroDataRateVals |
| Available sampling rates for the accelerometer and gyroscope when both are in use. More... | |
| static const double | AccelScaleToUnits [] |
| static const double | GyroScaleToUnits [] |
| static const std::map< float, int > | MagDataRateVals |
| Sample rates for the magnetometer. More... | |
| static const double | MagScaleToUnits [] |
Prevent Doxygen from mixing this up with other source-file specific items from other files.
The registers for the accelerometer and gyroscope device.
They have been renamed to be more readable, understandable, and consistent with other code in this library.
Definition at line 32 of file LSM9DS1.cpp.
The registers for the magnetometer device.
They have been renamed to be more readable, understandable, and consistent with other code in this library.
Definition at line 67 of file LSM9DS1.cpp.
|
static |
Finds the lowest data rate that is at least as fast as requested, and the value needed to select this rate with the device.
No exception is thrown so that the caller may throw an object based on which data rate has trouble.
| destVal | Will be set to the value to send to the device to select the data rate. |
| actualRate | Will be set to the actual rate to use if one is found. |
| reqRate | The requested data rate. The actual rate may be greater, but will not be lower. |
| rateMap | The map containing the data rates and values. |
Definition at line 140 of file LSM9DS1.cpp.
Referenced by duds::hardware::devices::instruments::LSM9DS1AccelGyro::configure(), and duds::hardware::devices::instruments::LSM9DS1Mag::configure().
|
static |
Available sampling rates for the accelerometer when the gyroscope is not in use.
Definition at line 87 of file LSM9DS1.cpp.
Referenced by duds::hardware::devices::instruments::LSM9DS1AccelGyro::configure().
|
static |
Available sampling rates for the accelerometer and gyroscope when both are in use.
Definition at line 101 of file LSM9DS1.cpp.
Referenced by duds::hardware::devices::instruments::LSM9DS1AccelGyro::configure().
|
static |
Definition at line 156 of file LSM9DS1.cpp.
Referenced by duds::hardware::devices::instruments::LSM9DS1AccelGyro::accelerometerQuantity().
|
static |
Definition at line 164 of file LSM9DS1.cpp.
Referenced by duds::hardware::devices::instruments::LSM9DS1AccelGyro::gyroscopeQuantity().
|
static |
Sample rates for the magnetometer.
Definition at line 114 of file LSM9DS1.cpp.
Referenced by duds::hardware::devices::instruments::LSM9DS1Mag::configure().
|
static |
Definition at line 172 of file LSM9DS1.cpp.
Referenced by duds::hardware::devices::instruments::LSM9DS1Mag::quantity().