Wojciech Rynczuk / Mbed 2 deprecated vcdMaker_Demo

Dependencies:   mbed vcdLogger vcdSignal

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers serialLogger.hpp Source File

serialLogger.hpp

Go to the documentation of this file.
00001 /*!
00002   @file serialLogger.hpp
00003 
00004   The header of the serial logger class.
00005 
00006   @par Full Description
00007   The header of the serial logger class.
00008 
00009   @if REVISION_HISTORY_INCLUDED
00010   @par Edit History
00011   @li [0]    wojciech.rynczuk@wp.pl    20-JAN-2015    Initial file revision.
00012   @endif
00013 
00014   @ingroup Logger
00015 
00016   @par Copyright (c) MMXV Wojciech Rynczuk
00017 
00018   Distributed under MIT License
00019 
00020 */
00021 
00022 #ifndef _SERIALLOGGER_HPP_
00023 #define _SERIALLOGGER_HPP_
00024 
00025 #include "mbed.h"
00026 #include "logger.hpp"
00027 
00028 class SerialLogger : public Logger {
00029     
00030     public:
00031     SerialLogger(uint32_t n_Lines, uint32_t n_Characters);
00032     ~SerialLogger();
00033     
00034     virtual void Printf(const char* line);
00035     virtual void AlarmFull();
00036     virtual uint32_t StartAction();
00037     virtual uint32_t StopAction();
00038     
00039     private:
00040     DigitalOut* alarm;
00041     DigitalOut* rec_indicator;
00042     Serial*     serialOut;
00043 };
00044 #endif