Wojciech Rynczuk / Mbed 2 deprecated vcdMaker_Demo_DISCO_L476

Dependencies:   BSP_DISCO_L476VG COMPASS_DISCO_L476VG mbed vcdLogger vcdSignal

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers accelerometer.hpp Source File

accelerometer.hpp

Go to the documentation of this file.
00001 /*!
00002   @file accelerometer.hpp
00003 
00004   The header of the accelerometer signal class.
00005 
00006   @par Full Description
00007   The header of the accelerometer signal class.
00008 
00009   @if REVISION_HISTORY_INCLUDED
00010   @par Edit History
00011   @li [0]    wojciech.rynczuk@wp.pl    04-MAR-2016    Initial file revision.
00012   @endif
00013 
00014   @ingroup Signal
00015 
00016   The MIT License (MIT)
00017   Copyright (c) 2016 Wojciech Rynczuk
00018 
00019 */
00020 
00021 #include "mbed.h"
00022 #include "signal.hpp"
00023 #include "COMPASS_DISCO_L476VG.h"
00024 
00025 class Accelerometer : public Signal
00026 {
00027   public:
00028   Accelerometer(const string& name, COMPASS_DISCO_L476VG& compass, Logger& logger);
00029   ~Accelerometer();
00030   
00031   void PrintState();
00032   
00033   private:
00034   COMPASS_DISCO_L476VG* m_pCompass;
00035   int16_t  m_AccXYZ[3];
00036   int16_t  m_PrevAccXYZ[3];
00037 };