15 namespace duds {
namespace hardware {
namespace devices {
namespace instruments {
90 AccelRange19m61ps2 = 0,
101 GyroRange2000dps = 3,
102 GyroRange4r276ps = 0,
104 GyroRange34r91ps = 3,
140 std::unique_ptr<duds::hardware::interface::I2c>
agcom;
184 std::unique_ptr<duds::hardware::interface::I2c> &i2c
204 void configure(
float freq,
Settings settings);
257 void accelerometerQuantity(ConvertedQuantity &ps)
const;
261 void gyroscopeQuantity(ConvertedQuantity &ps)
const;
289 std::int16_t vals[3];
371 std::unique_ptr<duds::hardware::interface::I2c>
magcom;
414 std::unique_ptr<duds::hardware::interface::I2c> &i2c
434 void configure(
float freq,
Settings settings);
478 void quantity(ConvertedQuantity &ps)
const;
Called medium performance in the doc; renamed to avoid buzzwords.
Selects the +/-8g accelerometer range.
MagAxesMode zMagMode
Operating mode for the Z axis.
MagRange magRange
The maximum magnetude setting.
duds::hardware::interface::Conversation statq
AccelRange
The maximum magnitude options for the accelerometer.
float mdatarate
The currently configured sample rate.
The requested data rate is unsupported.
Stores the sample data as reported by the device.
Initial support of the magnetometer of the LSM9DS1.
unsigned int accelerometer
Flag to use the accelerometer.
const RawSample & rawSample() const
Returns the magnetometer data as read from the device.
duds::hardware::interface::Conversation initialize
The conversation used to initialize the device.
float agdatarate
The currently configured sample rate.
GyroRange gyroRange
The maximum magnetude setting for the gyroscope.
unsigned int magTempComp
Enables temperature compensation using a temperature sensor inside the device.
boost::error_info< struct Info_UpdateRate, float > RequestedUpdateRate
MagAxesMode
Selects an operation mode for the axes.
Stores the sample data as reported by the device.
unsigned int gyroLowPower
Enable the low-power mode of the gyroscope.
Base class for all LSM9DS1 specific errors.
Initial support of the accelerometer and gyroscope on the LSM9DS1.
unsigned int magLowPower
A low-power mode that forces the 0.625Hz sample rate.
duds::data::QuantityXyz ConvertedQuantity
The sample data converted to Tesla.
std::unique_ptr< duds::hardware::interface::I2c > magcom
The I2C communication interface.
unsigned int magnetometer
Flag to use the magnetometer.
MagAxesMode xyMagMode
Operating mode for the X and Y axes.
AccelRange accelRange
The maximum magnetude setting for the accelerometer.
duds::hardware::interface::Conversation statq
std::unique_ptr< duds::hardware::interface::I2c > agcom
The I2C communication interface.
const RawSample & rawGyroscope() const
void resume()
Resumes operation after a call to suspend().
void start()
Tells the device to start sampling.
float sampleRate() const
Returns the confiured sampling rate.
Selects the +/-2g accelerometer range.
unsigned int gyroHighPass
duds::data::QuantityXyz ConvertedQuantity
The sample data converted to known units.
duds::hardware::interface::Conversation initialize
The conversation used to initialize the device.
The various settings for the device packed into an integer to avoid passing a lot of parameters...
std::int8_t mdrval
The data rate value given to the device.
Settings cfg
The current various configuration options.
void resume()
Resumes operation after a call to suspend().
RawSample magn
The values supplied by the device.
unsigned int gyroscope
Flag to use the gyroscope.
Header for Conversarion; includes ConversationVector.hpp and ConversationExternal.hpp.
Selects the +/-16g accelerometer range.
std::int8_t agdrval
The data rate value given to the device.
A QuantityArray for the common usage of a three dimentional coordinate or a triple axis sample...
The configuration requested that neither the accelerometer or magnetometer be used.
Settings cfg
The current various configuration options.
The base type for errors from devices.
const RawSample & rawAccelerometer() const
Returns the accelerometer data as read from the device.
Selects the +/-4g accelerometer range.
GyroRange
The maximum magnitude options for the gyroscope.
The requested maximum magnitude is either unsupported or an invalid value.
float sampleRate() const
Returns the confiured sampling rate.
MagRange
The maximum magnitude options for the magnetometer.
Represents a two-way conversation with a device.
Called high performance in the doc; renamed to avoid buzzwords.
The various settings for the device packed into an integer to avoid passing a lot of parameters...
void start()
Tells the device to start sampling.