15 namespace duds {
namespace hardware {
namespace devices {
namespace instruments {
159 std::unique_ptr<duds::hardware::interface::I2c>
com;
197 FXOS8700CQ(std::unique_ptr<duds::hardware::interface::I2c> &i2ccom);
216 void configure(
float freq,
Settings settings);
The various settings for the device packed into an integer to avoid passing a lot of parameters...
void resume()
Resumes operation after a call to suspend().
unsigned int accelLowNoise
Use the low-noise mode of the accelerometer.
unsigned int highPassLowCutoff
Adjusts the cut-off frequency of the high-pass filter to be lower.
unsigned int accelerometer
Flag to use the accelerometer.
Magnitude maxMagnitude
The maximum magnetude for the accelerometer.
boost::error_info< struct Info_UpdateRate, float > RequestedUpdateRate
duds::hardware::interface::Conversation initialize
The conversation used to initialize the device.
OversampleMode oversampleSleepMode
The oversample mode to use when in the sleep state.
unsigned int threadedSample
Uses a thread to periodically read samples from the device.
duds::data::QuantityXyz ConvertedSample
The sample data converted to known units.
Base class for all FXOS8700CQ specific errors.
std::int8_t drval
The data rate value given to the device.
duds::hardware::interface::Conversation input
The conversation used to read in samples from the device.
const RawSample & rawMagnetometer() const
Returns the magnetometer data as read from the device.
unsigned int magnetometer
Flag to use the magnetometer.
Initial support of the FXOS8700CQ; a combined triple axis accelerometer and magnetometer.
Settings cfg
The current various configuration options.
Selects the +/-2g accelerometer range.
unsigned int oversampleRatio
Affects how many samples are taken by the magnetometer to produce a single output sample...
Selects the +/-4g accelerometer range.
The requested maximum magnitude is either unsupported or an invalid value.
const RawSample & rawAccelerometer() const
Returns the accelerometer data as read from the device.
std::unique_ptr< duds::hardware::interface::I2c > com
The I2C communication interface.
Header for Conversarion; includes ConversationVector.hpp and ConversationExternal.hpp.
A QuantityArray for the common usage of a three dimentional coordinate or a triple axis sample...
The base type for errors from devices.
float datarate
The currently configured sample rate.
Magnitude
The magnitude options for the accelerometer.
The configuration requested that neither the accelerometer or magnetometer be used.
unsigned int highPassFilter
Enables the high-pass filter.
The requested data rate is unsupported.
OversampleMode oversampleMode
The oversample mode to use when in the active non-sleep state.
float sampleRate() const
Returns the confiured sampling rate.
Stores the sample data as reported by the device.
Represents a two-way conversation with a device.