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

Logger/serialLogger.hpp

Committer:
ketjow
Date:
2016-12-07
Revision:
3:6d5e16097db0
Parent:
1:446154224f92

File content as of revision 3:6d5e16097db0:

/*!
  @file serialLogger.hpp

  The header of the serial logger class.

  @par Full Description
  The header of the serial logger class.

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

  @ingroup Logger

  @par Copyright (c) MMXV Wojciech Rynczuk

  Distributed under MIT License

*/

#ifndef _SERIALLOGGER_HPP_
#define _SERIALLOGGER_HPP_

#include "mbed.h"
#include "logger.hpp"

class SerialLogger : public Logger {
    
    public:
    SerialLogger(uint32_t n_Lines, uint32_t n_Characters);
    ~SerialLogger();
    
    virtual void Printf(const char* line);
    virtual void AlarmFull();
    virtual uint32_t StartAction();
    virtual uint32_t StopAction();
    
    private:
    DigitalOut* alarm;
    DigitalOut* rec_indicator;
    Serial*     serialOut;
};
#endif