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 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   The MIT License (MIT)
00017   Copyright (c) 2016 Wojciech Rynczuk
00018 
00019 */
00020 
00021 #ifndef _SERIALLOGGER_HPP_
00022 #define _SERIALLOGGER_HPP_
00023 
00024 #include "mbed.h"
00025 #include "logger.hpp"
00026 
00027 class SerialLogger : public Logger {
00028     
00029     public:
00030     SerialLogger(uint32_t n_Lines, uint32_t n_Characters);
00031     ~SerialLogger();
00032     
00033     virtual void Printf(const char* line);
00034     virtual void AlarmFull();
00035     virtual uint32_t StartAction();
00036     virtual uint32_t StopAction();
00037     
00038     private:
00039     DigitalOut* alarm;
00040     DigitalOut* rec_indicator;
00041     Serial*     serialOut;
00042 };
00043 #endif