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. Use the mbed serial logger at 115200 baud rate.

Dependencies:   BSP_DISCO_L476VG COMPASS_DISCO_L476VG mbed vcdLogger vcdSignal

Signals/accelerometer.hpp

Committer:
ketjow
Date:
2016-12-07
Revision:
2:fcfb6ced9c00
Parent:
0:936379a8793e

File content as of revision 2:fcfb6ced9c00:

/*!
  @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    04-MAR-2016    Initial file revision.
  @endif

  @ingroup Signal

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

*/

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

class Accelerometer : public Signal
{
  public:
  Accelerometer(const string& name, COMPASS_DISCO_L476VG& compass, Logger& logger);
  ~Accelerometer();
  
  void PrintState();
  
  private:
  COMPASS_DISCO_L476VG* m_pCompass;
  int16_t  m_AccXYZ[3];
  int16_t  m_PrevAccXYZ[3];
};