Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed vcdLogger vcdSignal
serialLogger.hpp
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
Generated on Tue Jul 12 2022 21:39:12 by
1.7.2