DUDS
Distributed Update of Data from Something
duds::hardware::devices::instruments::FXOS8700CQ_internal Namespace Reference

Prevent Doxygen from mixing this up with other source-file specific items from other files. More...

Enumerations

enum  Regs {
  RegStatus, RegSamples, RegFifoConfig = 9, RegFifoTrigger,
  RegSystemMode, RegIntFlags, RegDeviceId, RegAccelConfig,
  RegFilterConfig, RegConfig1 = 0x2A, RegConfig2, RegConfig3,
  RegConfig4, RegConfig5, RegAccelOffsetX, RegAccelOffsetY,
  RegAccelOffsetZ, RegMagStatus, RegMagSample, RegMagOffsetX = 0x3F,
  RegMagOffsetY = 0x41, RegMagOffsetZ = 0x43, RegMagConfig1 = 0x5B, RegMagConfig2,
  RegMagConfig3
}
 The registers. More...
 

Detailed Description

Prevent Doxygen from mixing this up with other source-file specific items from other files.

Enumeration Type Documentation

◆ Regs

The registers.

They have been renamed to be more readable, understandable, and consistent. The names in the documentation have the odd property of explicitly stating when something is for the magnetometer, but not always doing the same for the accelerometer.

Enumerator
RegStatus 

STATUS.

Holds either accelerometer data status, or FIFO status.

RegSamples 

OUT_X_MSB.

This is the start of the latest accelerometer sample when the FIFO is not used, and the start of the oldest samples when the FIFO is used. When both the accelerometer and magnetometer are in use, samples from both are read starting from here. The documentation states in a terse summary text that the FIFO buffer is for accelerometer data only, but the in-depth documentation on reading from the FIFO seems to imply that the magnetometer data is also buffered mostly because it doesn't restate that the FIFO isn't used for the magnetometer, and overlooks this detail in its otherwise detailed description of address increments. The only way the documentation is correct is if reading from the FIFO is followed by reading the latest magnetometer sample, in which case the two samples may not have been taken consecutively.

RegFifoConfig 
RegFifoTrigger 
RegSystemMode 

SYSMOD, the system operating mode and FIFO error status.

RegIntFlags 
RegDeviceId 
RegAccelConfig 

XYZ_DATA_CFG.

RegFilterConfig 

HP_FILTER_CUTOFF.

RegConfig1 
RegConfig2 
RegConfig3 
RegConfig4 
RegConfig5 
RegAccelOffsetX 

OFF_X.

RegAccelOffsetY 
RegAccelOffsetZ 
RegMagStatus 
RegMagSample 

M_OUT_X_MSB.

This is the start of the latest magnetometer sample. It is followed by the accelerometer sample that the documentation describes as "time aligned", which I suppose means they were taken consecutively. This may make the accelerometer sample older than the one at RegSamples, but by no more than one sample period.

RegMagOffsetX 
RegMagOffsetY 
RegMagOffsetZ 
RegMagConfig1 
RegMagConfig2 
RegMagConfig3 

Definition at line 30 of file FXOS8700CQ.cpp.