10 namespace Treehopper {
namespace Libraries {
namespace Sensors {
namespace Inertial {
96 class TempOutRegister :
public Register 102 long getValue() {
return ((value & 0xFFF) << 0); }
103 void setValue(
long val)
105 value = (int)(((val >> 0) & 0xFFF) << (32 - 12)) >> (32 - 12);
109 class StatusRegister :
public Register 116 int zyxDataAvailable;
122 long getValue() {
return ((xDataAvailable & 0x1) << 0) | ((yDataAvailable & 0x1) << 1) | ((zDataAvailable & 0x1) << 2) | ((zyxDataAvailable & 0x1) << 3) | ((xDataOverrun & 0x1) << 4) | ((yDataOverrun & 0x1) << 5) | ((zDataOverrun & 0x1) << 6) | ((zyxDataOverrun & 0x1) << 7); }
123 void setValue(
long val)
125 xDataAvailable = (int)((val >> 0) & 0x1);
126 yDataAvailable = (int)((val >> 1) & 0x1);
127 zDataAvailable = (int)((val >> 2) & 0x1);
128 zyxDataAvailable = (int)((val >> 3) & 0x1);
129 xDataOverrun = (int)((val >> 4) & 0x1);
130 yDataOverrun = (int)((val >> 5) & 0x1);
131 zDataOverrun = (int)((val >> 6) & 0x1);
132 zyxDataOverrun = (int)((val >> 7) & 0x1);
136 class OutXRegister :
public Register 142 long getValue() {
return ((value & 0xFFFF) << 0); }
143 void setValue(
long val)
145 value = (int)((val >> 0) & 0xFFFF);
149 class OutYRegister :
public Register 155 long getValue() {
return ((value & 0xFFFF) << 0); }
156 void setValue(
long val)
158 value = (int)((val >> 0) & 0xFFFF);
162 class OutZRegister :
public Register 168 long getValue() {
return ((value & 0xFFFF) << 0); }
169 void setValue(
long val)
171 value = (int)((val >> 0) & 0xFFFF);
175 class WhoAmIRegister :
public Register 181 long getValue() {
return ((value & 0xFF) << 0); }
182 void setValue(
long val)
184 value = (int)((val >> 0) & 0xFF);
188 class IntCtrlRegister :
public Register 192 int magInterruptEnable;
194 int latchInterruptRequest;
195 int interruptPolarity;
196 int interruptPinPushPull;
197 int zInterruptEnable;
198 int yInterruptEnable;
199 int xInterruptEnable;
201 long getValue() {
return ((magInterruptEnable & 0x1) << 0) | ((enable4D & 0x1) << 1) | ((latchInterruptRequest & 0x1) << 2) | ((interruptPolarity & 0x1) << 3) | ((interruptPinPushPull & 0x1) << 4) | ((zInterruptEnable & 0x1) << 5) | ((yInterruptEnable & 0x1) << 6) | ((xInterruptEnable & 0x1) << 7); }
202 void setValue(
long val)
204 magInterruptEnable = (int)((val >> 0) & 0x1);
205 enable4D = (int)((val >> 1) & 0x1);
206 latchInterruptRequest = (int)((val >> 2) & 0x1);
207 interruptPolarity = (int)((val >> 3) & 0x1);
208 interruptPinPushPull = (int)((val >> 4) & 0x1);
209 zInterruptEnable = (int)((val >> 5) & 0x1);
210 yInterruptEnable = (int)((val >> 6) & 0x1);
211 xInterruptEnable = (int)((val >> 7) & 0x1);
215 class IntSourceRegister :
public Register 220 int measurementRangeOverflow;
221 int negativeThresholdZ;
222 int negativeThresholdY;
223 int negativeThresholdX;
224 int positiveThresholdZ;
225 int positiveThresholdY;
226 int positiveThresholdX;
228 long getValue() {
return ((mint & 0x1) << 0) | ((measurementRangeOverflow & 0x1) << 1) | ((negativeThresholdZ & 0x1) << 2) | ((negativeThresholdY & 0x1) << 3) | ((negativeThresholdX & 0x1) << 4) | ((positiveThresholdZ & 0x1) << 5) | ((positiveThresholdY & 0x1) << 6) | ((positiveThresholdX & 0x1) << 7); }
229 void setValue(
long val)
231 mint = (int)((val >> 0) & 0x1);
232 measurementRangeOverflow = (int)((val >> 1) & 0x1);
233 negativeThresholdZ = (int)((val >> 2) & 0x1);
234 negativeThresholdY = (int)((val >> 3) & 0x1);
235 negativeThresholdX = (int)((val >> 4) & 0x1);
236 positiveThresholdZ = (int)((val >> 5) & 0x1);
237 positiveThresholdY = (int)((val >> 6) & 0x1);
238 positiveThresholdX = (int)((val >> 7) & 0x1);
242 class IntThresholdRegister :
public Register 248 long getValue() {
return ((value & 0xFFFF) << 0); }
249 void setValue(
long val)
251 value = (int)(((val >> 0) & 0xFFFF) << (32 - 16)) >> (32 - 16);
255 class OffsetXRegister :
public Register 261 long getValue() {
return ((value & 0xFFFF) << 0); }
262 void setValue(
long val)
264 value = (int)(((val >> 0) & 0xFFFF) << (32 - 16)) >> (32 - 16);
268 class OffsetYRegister :
public Register 274 long getValue() {
return ((value & 0xFFFF) << 0); }
275 void setValue(
long val)
277 value = (int)(((val >> 0) & 0xFFFF) << (32 - 16)) >> (32 - 16);
281 class OffsetZRegister :
public Register 287 long getValue() {
return ((value & 0xFFFF) << 0); }
288 void setValue(
long val)
290 value = (int)(((val >> 0) & 0xFFFF) << (32 - 16)) >> (32 - 16);
294 class ReferenceXRegister :
public Register 300 long getValue() {
return ((value & 0xFF) << 0); }
301 void setValue(
long val)
303 value = (int)((val >> 0) & 0xFF);
307 class ReferenceYRegister :
public Register 313 long getValue() {
return ((value & 0xFF) << 0); }
314 void setValue(
long val)
316 value = (int)((val >> 0) & 0xFF);
320 class ReferenceZRegister :
public Register 326 long getValue() {
return ((value & 0xFF) << 0); }
327 void setValue(
long val)
329 value = (int)((val >> 0) & 0xFF);
333 class Ctrl0Register :
public Register 340 int fifoThresholdEnable;
344 long getValue() {
return ((hpis2 & 0x1) << 0) | ((hpis1 & 0x1) << 1) | ((hpClick & 0x1) << 2) | ((fifoThresholdEnable & 0x1) << 5) | ((fifoEnable & 0x1) << 6) | ((boot & 0x1) << 7); }
345 void setValue(
long val)
347 hpis2 = (int)((val >> 0) & 0x1);
348 hpis1 = (int)((val >> 1) & 0x1);
349 hpClick = (int)((val >> 2) & 0x1);
350 fifoThresholdEnable = (int)((val >> 5) & 0x1);
351 fifoEnable = (int)((val >> 6) & 0x1);
352 boot = (int)((val >> 7) & 0x1);
356 class Ctrl1Register :
public Register 366 void setOutputDataRate(
OutputDataRates enumVal) { outputDataRate = (int)enumVal; }
368 long getValue() {
return ((xEnable & 0x1) << 0) | ((yEnable & 0x1) << 1) | ((zEnable & 0x1) << 2) | ((blockDataUpdate & 0x1) << 3) | ((outputDataRate & 0xF) << 4); }
369 void setValue(
long val)
371 xEnable = (int)((val >> 0) & 0x1);
372 yEnable = (int)((val >> 1) & 0x1);
373 zEnable = (int)((val >> 2) & 0x1);
374 blockDataUpdate = (int)((val >> 3) & 0x1);
375 outputDataRate = (int)((val >> 4) & 0xF);
379 class Ctrl2Register :
public Register 383 int spiModeSelection;
384 int accelerationSelfTest;
385 int fullScaleSelection;
386 int antiAliasFilterBandwidth;
388 void setFullScaleSelection(
FullScaleSelections enumVal) { fullScaleSelection = (int)enumVal; }
392 long getValue() {
return ((spiModeSelection & 0x1) << 0) | ((accelerationSelfTest & 0x1) << 1) | ((fullScaleSelection & 0x7) << 3) | ((antiAliasFilterBandwidth & 0x3) << 6); }
393 void setValue(
long val)
395 spiModeSelection = (int)((val >> 0) & 0x1);
396 accelerationSelfTest = (int)((val >> 1) & 0x1);
397 fullScaleSelection = (int)((val >> 3) & 0x7);
398 antiAliasFilterBandwidth = (int)((val >> 6) & 0x3);
402 class Ctrl3Register :
public Register 408 int accelReadyOnInt1;
410 int inertialGen2OnInt1;
411 int inertialGen1OnInt1;
415 long getValue() {
return ((fifoEmptyOnInt1 & 0x1) << 0) | ((magReadyOnInt1 & 0x1) << 1) | ((accelReadyOnInt1 & 0x1) << 2) | ((magGenOnInt1 & 0x1) << 3) | ((inertialGen2OnInt1 & 0x1) << 4) | ((inertialGen1OnInt1 & 0x1) << 5) | ((clickGenOnInt1 & 0x1) << 6) | ((bootOnInt1 & 0x1) << 7); }
416 void setValue(
long val)
418 fifoEmptyOnInt1 = (int)((val >> 0) & 0x1);
419 magReadyOnInt1 = (int)((val >> 1) & 0x1);
420 accelReadyOnInt1 = (int)((val >> 2) & 0x1);
421 magGenOnInt1 = (int)((val >> 3) & 0x1);
422 inertialGen2OnInt1 = (int)((val >> 4) & 0x1);
423 inertialGen1OnInt1 = (int)((val >> 5) & 0x1);
424 clickGenOnInt1 = (int)((val >> 6) & 0x1);
425 bootOnInt1 = (int)((val >> 7) & 0x1);
429 class Ctrl4Register :
public Register 433 int fifoThresholdOnInt2;
434 int fifoOverrunOnInt2;
435 int magDataReadyOnInt2;
436 int accelDataReadyOnInt2;
438 int inertialGen2OnInt2;
439 int inertialGen1OnInt2;
442 long getValue() {
return ((fifoThresholdOnInt2 & 0x1) << 0) | ((fifoOverrunOnInt2 & 0x1) << 1) | ((magDataReadyOnInt2 & 0x1) << 2) | ((accelDataReadyOnInt2 & 0x1) << 3) | ((magIntOnInt2 & 0x1) << 4) | ((inertialGen2OnInt2 & 0x1) << 5) | ((inertialGen1OnInt2 & 0x1) << 6) | ((clickGenOnInt2 & 0x1) << 7); }
443 void setValue(
long val)
445 fifoThresholdOnInt2 = (int)((val >> 0) & 0x1);
446 fifoOverrunOnInt2 = (int)((val >> 1) & 0x1);
447 magDataReadyOnInt2 = (int)((val >> 2) & 0x1);
448 accelDataReadyOnInt2 = (int)((val >> 3) & 0x1);
449 magIntOnInt2 = (int)((val >> 4) & 0x1);
450 inertialGen2OnInt2 = (int)((val >> 5) & 0x1);
451 inertialGen1OnInt2 = (int)((val >> 6) & 0x1);
452 clickGenOnInt2 = (int)((val >> 7) & 0x1);
456 class Ctrl5Register :
public Register 466 void setMagDataRate(
MagDataRates enumVal) { magDataRate = (int)enumVal; }
468 void setMagResolution(
MagResolutions enumVal) { magResolution = (int)enumVal; }
470 long getValue() {
return ((latchIntOnInt1 & 0x1) << 0) | ((latchIntOnInt2 & 0x1) << 1) | ((magDataRate & 0x7) << 2) | ((magResolution & 0x3) << 5) | ((tempEnable & 0x1) << 7); }
471 void setValue(
long val)
473 latchIntOnInt1 = (int)((val >> 0) & 0x1);
474 latchIntOnInt2 = (int)((val >> 1) & 0x1);
475 magDataRate = (int)((val >> 2) & 0x7);
476 magResolution = (int)((val >> 5) & 0x3);
477 tempEnable = (int)((val >> 7) & 0x1);
481 class Ctrl6Register :
public Register 485 int magFullScaleSelection;
489 long getValue() {
return ((magFullScaleSelection & 0x3) << 5); }
490 void setValue(
long val)
492 magFullScaleSelection = (int)((val >> 5) & 0x3);
496 class Ctrl7Register :
public Register 503 int filteredAccelData;
504 int accelhighPassMode;
506 void setMagSensorMode(
MagSensorModes enumVal) { magSensorMode = (int)enumVal; }
508 void setAccelhighPassMode(
AccelhighPassModes enumVal) { accelhighPassMode = (int)enumVal; }
510 long getValue() {
return ((magSensorMode & 0x3) << 0) | ((magLowPowerMode & 0x1) << 2) | ((tempOnly & 0x1) << 4) | ((filteredAccelData & 0x1) << 5) | ((accelhighPassMode & 0x3) << 6); }
511 void setValue(
long val)
513 magSensorMode = (int)((val >> 0) & 0x3);
514 magLowPowerMode = (int)((val >> 2) & 0x1);
515 tempOnly = (int)((val >> 4) & 0x1);
516 filteredAccelData = (int)((val >> 5) & 0x1);
517 accelhighPassMode = (int)((val >> 6) & 0x3);
521 class StatusARegister :
public Register 528 int accelXYZAvailable;
534 long getValue() {
return ((accelXAvailable & 0x1) << 0) | ((accelYAvailable & 0x1) << 1) | ((accelZAvailable & 0x1) << 2) | ((accelXYZAvailable & 0x1) << 3) | ((accelXOverrun & 0x1) << 4) | ((accelYOverrun & 0x1) << 5) | ((accelZOverrun & 0x1) << 6) | ((accelXYZOverrun & 0x1) << 7); }
535 void setValue(
long val)
537 accelXAvailable = (int)((val >> 0) & 0x1);
538 accelYAvailable = (int)((val >> 1) & 0x1);
539 accelZAvailable = (int)((val >> 2) & 0x1);
540 accelXYZAvailable = (int)((val >> 3) & 0x1);
541 accelXOverrun = (int)((val >> 4) & 0x1);
542 accelYOverrun = (int)((val >> 5) & 0x1);
543 accelZOverrun = (int)((val >> 6) & 0x1);
544 accelXYZOverrun = (int)((val >> 7) & 0x1);
548 class OutAccelXRegister :
public Register 554 long getValue() {
return ((value & 0xFFFF) << 0); }
555 void setValue(
long val)
557 value = (int)(((val >> 0) & 0xFFFF) << (32 - 16)) >> (32 - 16);
561 class OutAccelYRegister :
public Register 567 long getValue() {
return ((value & 0xFFFF) << 0); }
568 void setValue(
long val)
570 value = (int)(((val >> 0) & 0xFFFF) << (32 - 16)) >> (32 - 16);
574 class OutAccelZRegister :
public Register 580 long getValue() {
return ((value & 0xFFFF) << 0); }
581 void setValue(
long val)
583 value = (int)(((val >> 0) & 0xFFFF) << (32 - 16)) >> (32 - 16);
587 class FifoControlRegister :
public Register 594 void setFifoMode(
FifoModes enumVal) { fifoMode = (int)enumVal; }
596 long getValue() {
return ((fifoThreshold & 0x1F) << 0) | ((fifoMode & 0x7) << 5); }
597 void setValue(
long val)
599 fifoThreshold = (int)((val >> 0) & 0x1F);
600 fifoMode = (int)((val >> 5) & 0x7);
604 class FifoSourceRegister :
public Register 613 long getValue() {
return ((fifoStoredLevel & 0x1F) << 0) | ((empty & 0x1) << 5) | ((overrun & 0x1) << 6) | ((fifoThreshold & 0x1) << 7); }
614 void setValue(
long val)
616 fifoStoredLevel = (int)((val >> 0) & 0x1F);
617 empty = (int)((val >> 5) & 0x1);
618 overrun = (int)((val >> 6) & 0x1);
619 fifoThreshold = (int)((val >> 7) & 0x1);
623 class InertialIntGen1ConfigRegister :
public Register 627 int xLowInterruptEnable;
628 int xHighInterruptEnable;
629 int yLowInterruptEnable;
630 int yHighInterruptEnable;
631 int zLowInterruptEvent;
632 int zHighInterruptEnable;
634 int andOrInterruptEvents;
636 long getValue() {
return ((xLowInterruptEnable & 0x1) << 0) | ((xHighInterruptEnable & 0x1) << 1) | ((yLowInterruptEnable & 0x1) << 2) | ((yHighInterruptEnable & 0x1) << 3) | ((zLowInterruptEvent & 0x1) << 4) | ((zHighInterruptEnable & 0x1) << 5) | ((detect6D & 0x1) << 6) | ((andOrInterruptEvents & 0x1) << 7); }
637 void setValue(
long val)
639 xLowInterruptEnable = (int)((val >> 0) & 0x1);
640 xHighInterruptEnable = (int)((val >> 1) & 0x1);
641 yLowInterruptEnable = (int)((val >> 2) & 0x1);
642 yHighInterruptEnable = (int)((val >> 3) & 0x1);
643 zLowInterruptEvent = (int)((val >> 4) & 0x1);
644 zHighInterruptEnable = (int)((val >> 5) & 0x1);
645 detect6D = (int)((val >> 6) & 0x1);
646 andOrInterruptEvents = (int)((val >> 7) & 0x1);
650 class InertialIntGen1StatusRegister :
public Register 662 long getValue() {
return ((xLow & 0x1) << 0) | ((xHigh & 0x1) << 1) | ((yLow & 0x1) << 2) | ((yHigh & 0x1) << 3) | ((zLow & 0x1) << 4) | ((zHigh & 0x1) << 5) | ((intStatus & 0x1) << 6); }
663 void setValue(
long val)
665 xLow = (int)((val >> 0) & 0x1);
666 xHigh = (int)((val >> 1) & 0x1);
667 yLow = (int)((val >> 2) & 0x1);
668 yHigh = (int)((val >> 3) & 0x1);
669 zLow = (int)((val >> 4) & 0x1);
670 zHigh = (int)((val >> 5) & 0x1);
671 intStatus = (int)((val >> 6) & 0x1);
675 class InertialIntGen1ThresholdRegister :
public Register 681 long getValue() {
return ((value & 0x7F) << 0); }
682 void setValue(
long val)
684 value = (int)((val >> 0) & 0x7F);
688 class InertialIntGen1DurationRegister :
public Register 694 long getValue() {
return ((value & 0x7F) << 0); }
695 void setValue(
long val)
697 value = (int)((val >> 0) & 0x7F);
701 class InertialIntGen2ConfigRegister :
public Register 705 int xLowInterruptEnable;
706 int xHighInterruptEnable;
707 int yLowInterruptEnable;
708 int yHighInterruptEnable;
709 int zLowInterruptEvent;
710 int zHighInterruptEnable;
712 int andOrInterruptEvents;
714 long getValue() {
return ((xLowInterruptEnable & 0x1) << 0) | ((xHighInterruptEnable & 0x1) << 1) | ((yLowInterruptEnable & 0x1) << 2) | ((yHighInterruptEnable & 0x1) << 3) | ((zLowInterruptEvent & 0x1) << 4) | ((zHighInterruptEnable & 0x1) << 5) | ((detect6D & 0x1) << 6) | ((andOrInterruptEvents & 0x1) << 7); }
715 void setValue(
long val)
717 xLowInterruptEnable = (int)((val >> 0) & 0x1);
718 xHighInterruptEnable = (int)((val >> 1) & 0x1);
719 yLowInterruptEnable = (int)((val >> 2) & 0x1);
720 yHighInterruptEnable = (int)((val >> 3) & 0x1);
721 zLowInterruptEvent = (int)((val >> 4) & 0x1);
722 zHighInterruptEnable = (int)((val >> 5) & 0x1);
723 detect6D = (int)((val >> 6) & 0x1);
724 andOrInterruptEvents = (int)((val >> 7) & 0x1);
728 class InertialIntGen2StatusRegister :
public Register 740 long getValue() {
return ((xLow & 0x1) << 0) | ((xHigh & 0x1) << 1) | ((yLow & 0x1) << 2) | ((yHigh & 0x1) << 3) | ((zLow & 0x1) << 4) | ((zHigh & 0x1) << 5) | ((intStatus & 0x1) << 6); }
741 void setValue(
long val)
743 xLow = (int)((val >> 0) & 0x1);
744 xHigh = (int)((val >> 1) & 0x1);
745 yLow = (int)((val >> 2) & 0x1);
746 yHigh = (int)((val >> 3) & 0x1);
747 zLow = (int)((val >> 4) & 0x1);
748 zHigh = (int)((val >> 5) & 0x1);
749 intStatus = (int)((val >> 6) & 0x1);
753 class InertialIntGen2ThresholdRegister :
public Register 759 long getValue() {
return ((value & 0x7F) << 0); }
760 void setValue(
long val)
762 value = (int)((val >> 0) & 0x7F);
766 class InertialIntGen2DurationRegister :
public Register 772 long getValue() {
return ((value & 0x7F) << 0); }
773 void setValue(
long val)
775 value = (int)((val >> 0) & 0x7F);
779 class ClickConfigRegister :
public Register 790 long getValue() {
return ((xSingleClick & 0x1) << 0) | ((xDoubleClick & 0x1) << 1) | ((ySingleClick & 0x1) << 2) | ((yDoubleClick & 0x1) << 3) | ((zSingleClick & 0x1) << 4) | ((zDoubleClick & 0x1) << 5); }
791 void setValue(
long val)
793 xSingleClick = (int)((val >> 0) & 0x1);
794 xDoubleClick = (int)((val >> 1) & 0x1);
795 ySingleClick = (int)((val >> 2) & 0x1);
796 yDoubleClick = (int)((val >> 3) & 0x1);
797 zSingleClick = (int)((val >> 4) & 0x1);
798 zDoubleClick = (int)((val >> 5) & 0x1);
802 class ClickSourceRegister :
public Register 814 long getValue() {
return ((x & 0x1) << 0) | ((y & 0x1) << 1) | ((z & 0x1) << 2) | ((sign & 0x1) << 3) | ((singleClickEn & 0x1) << 4) | ((doubleClickEn & 0x1) << 5) | ((interruptActive & 0x1) << 6); }
815 void setValue(
long val)
817 x = (int)((val >> 0) & 0x1);
818 y = (int)((val >> 1) & 0x1);
819 z = (int)((val >> 2) & 0x1);
820 sign = (int)((val >> 3) & 0x1);
821 singleClickEn = (int)((val >> 4) & 0x1);
822 doubleClickEn = (int)((val >> 5) & 0x1);
823 interruptActive = (int)((val >> 6) & 0x1);
827 class ClickThresholdRegister :
public Register 833 long getValue() {
return ((value & 0x7F) << 0); }
834 void setValue(
long val)
836 value = (int)((val >> 0) & 0x7F);
840 class TimeLimitRegister :
public Register 846 long getValue() {
return ((value & 0x7F) << 0); }
847 void setValue(
long val)
849 value = (int)((val >> 0) & 0x7F);
853 class TimeLatencyRegister :
public Register 859 long getValue() {
return ((value & 0xFF) << 0); }
860 void setValue(
long val)
862 value = (int)((val >> 0) & 0xFF);
866 class TimeWindowRegister :
public Register 872 long getValue() {
return ((value & 0xFF) << 0); }
873 void setValue(
long val)
875 value = (int)((val >> 0) & 0xFF);
879 class ActivationThresholdRegister :
public Register 885 long getValue() {
return ((value & 0xFF) << 0); }
886 void setValue(
long val)
888 value = (int)((val >> 0) & 0xFF);
892 class ActivationDurationRegister :
public Register 898 long getValue() {
return ((value & 0xFF) << 0); }
899 void setValue(
long val)
901 value = (int)((val >> 0) & 0xFF);
905 TempOutRegister tempOut;
906 StatusRegister status;
910 WhoAmIRegister whoAmI;
911 IntCtrlRegister intCtrl;
912 IntSourceRegister intSource;
913 IntThresholdRegister intThreshold;
914 OffsetXRegister offsetX;
915 OffsetYRegister offsetY;
916 OffsetZRegister offsetZ;
917 ReferenceXRegister referenceX;
918 ReferenceYRegister referenceY;
919 ReferenceZRegister referenceZ;
928 StatusARegister statusA;
929 OutAccelXRegister outAccelX;
930 OutAccelYRegister outAccelY;
931 OutAccelZRegister outAccelZ;
932 FifoControlRegister fifoControl;
933 FifoSourceRegister fifoSource;
934 InertialIntGen1ConfigRegister inertialIntGen1Config;
935 InertialIntGen1StatusRegister inertialIntGen1Status;
936 InertialIntGen1ThresholdRegister inertialIntGen1Threshold;
937 InertialIntGen1DurationRegister inertialIntGen1Duration;
938 InertialIntGen2ConfigRegister inertialIntGen2Config;
939 InertialIntGen2StatusRegister inertialIntGen2Status;
940 InertialIntGen2ThresholdRegister inertialIntGen2Threshold;
941 InertialIntGen2DurationRegister inertialIntGen2Duration;
942 ClickConfigRegister clickConfig;
943 ClickSourceRegister clickSource;
944 ClickThresholdRegister clickThreshold;
945 TimeLimitRegister timeLimit;
946 TimeLatencyRegister timeLatency;
947 TimeWindowRegister timeWindow;
948 ActivationThresholdRegister activationThreshold;
949 ActivationDurationRegister activationDuration;
951 Lsm303dRegisters(SMBusDevice& device) :
RegisterManager(device, true), tempOut(*this), status(*this), outX(*this), outY(*this), outZ(*this), whoAmI(*this), intCtrl(*this), intSource(*this), intThreshold(*this), offsetX(*this), offsetY(*this), offsetZ(*this), referenceX(*this), referenceY(*this), referenceZ(*this), ctrl0(*this), ctrl1(*this), ctrl2(*this), ctrl3(*this), ctrl4(*this), ctrl5(*this), ctrl6(*this), ctrl7(*this), statusA(*this), outAccelX(*this), outAccelY(*this), outAccelZ(*this), fifoControl(*this), fifoSource(*this), inertialIntGen1Config(*this), inertialIntGen1Status(*this), inertialIntGen1Threshold(*this), inertialIntGen1Duration(*this), inertialIntGen2Config(*this), inertialIntGen2Status(*this), inertialIntGen2Threshold(*this), inertialIntGen2Duration(*this), clickConfig(*this), clickSource(*this), clickThreshold(*this), timeLimit(*this), timeLatency(*this), timeWindow(*this), activationThreshold(*this), activationDuration(*this)
953 registers.push_back(&tempOut);
954 registers.push_back(&status);
955 registers.push_back(&outX);
956 registers.push_back(&outY);
957 registers.push_back(&outZ);
958 registers.push_back(&whoAmI);
959 registers.push_back(&intCtrl);
960 registers.push_back(&intSource);
961 registers.push_back(&intThreshold);
962 registers.push_back(&offsetX);
963 registers.push_back(&offsetY);
964 registers.push_back(&offsetZ);
965 registers.push_back(&referenceX);
966 registers.push_back(&referenceY);
967 registers.push_back(&referenceZ);
968 registers.push_back(&ctrl0);
969 registers.push_back(&ctrl1);
970 registers.push_back(&ctrl2);
971 registers.push_back(&ctrl3);
972 registers.push_back(&ctrl4);
973 registers.push_back(&ctrl5);
974 registers.push_back(&ctrl6);
975 registers.push_back(&ctrl7);
976 registers.push_back(&statusA);
977 registers.push_back(&outAccelX);
978 registers.push_back(&outAccelY);
979 registers.push_back(&outAccelZ);
980 registers.push_back(&fifoControl);
981 registers.push_back(&fifoSource);
982 registers.push_back(&inertialIntGen1Config);
983 registers.push_back(&inertialIntGen1Status);
984 registers.push_back(&inertialIntGen1Threshold);
985 registers.push_back(&inertialIntGen1Duration);
986 registers.push_back(&inertialIntGen2Config);
987 registers.push_back(&inertialIntGen2Status);
988 registers.push_back(&inertialIntGen2Threshold);
989 registers.push_back(&inertialIntGen2Duration);
990 registers.push_back(&clickConfig);
991 registers.push_back(&clickSource);
992 registers.push_back(&clickThreshold);
993 registers.push_back(&timeLimit);
994 registers.push_back(&timeLatency);
995 registers.push_back(&timeWindow);
996 registers.push_back(&activationThreshold);
997 registers.push_back(&activationDuration);
MagDataRates
Definition: Lsm303dRegisters.h:44
MagFullScaleSelections
Definition: Lsm303dRegisters.h:60
FullScaleSelections
Definition: Lis3dhRegisters.h:26
AntiAliasFilterBandwidths
Definition: Lsm303dRegisters.h:36
Definition: Register.h:11
AccelhighPassModes
Definition: Lsm303dlhcAccelRegisters.h:26
Definition: RegisterManager.h:10
FifoModes
Definition: L3gd20Registers.h:20
MagSensorModes
Definition: Lsm303dRegisters.h:68
OutputDataRates
Definition: Lis3dhRegisters.h:42
MagResolutions
Definition: Lsm303dRegisters.h:54