This is the vcdMaker demo project. See http://vcdmaker.org for details. vcdMaker is supposed to help engineers to debug their applications and systems. It transforms text log files into the VCD format which can be easily displayed as a waveform.

Dependencies:   mbed vcdLogger vcdSignal

Signals/accelerometer.hpp

Committer:
ketjow
Date:
2016-12-07
Revision:
3:6d5e16097db0
Parent:
2:a13cde5c679c

File content as of revision 3:6d5e16097db0:

/*!
  @file accelerometer.hpp

  The header of the accelerometer signal class.

  @par Full Description
  The header of the accelerometer signal class.

  @if REVISION_HISTORY_INCLUDED
  @par Edit History
  @li [0]    wojciech.rynczuk@wp.pl    20-JAN-2015    Initial file revision.
  @endif

  @ingroup Signal

  The MIT License (MIT)
  Copyright (c) 2016 Wojciech Rynczuk

*/

#include "mbed.h"
#include "signal.hpp"
#include "MMA8451Q.h"

class Accelerometer : public Signal
{
  public:
  Accelerometer(const string& name, Logger& logger);
  ~Accelerometer();
  
  void PrintState();
  
  private:
  MMA8451Q* m_Accelerometer;
  float     m_AccXPrev;
  float     m_AccYPrev;
  float     m_AccZPrev;
  float     m_AccXCurr;
  float     m_AccYCurr;
  float     m_AccZCurr;
};