![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
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
Logger/serialLogger.hpp@2:fcfb6ced9c00, 2016-12-07 (annotated)
- Committer:
- ketjow
- Date:
- Wed Dec 07 09:14:34 2016 +0000
- Revision:
- 2:fcfb6ced9c00
- Parent:
- 0:936379a8793e
Sync signal added
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ketjow | 0:936379a8793e | 1 | /*! |
ketjow | 0:936379a8793e | 2 | @file serialLogger.hpp |
ketjow | 0:936379a8793e | 3 | |
ketjow | 0:936379a8793e | 4 | The header of the serial logger class. |
ketjow | 0:936379a8793e | 5 | |
ketjow | 0:936379a8793e | 6 | @par Full Description |
ketjow | 0:936379a8793e | 7 | The header of the serial logger class. |
ketjow | 0:936379a8793e | 8 | |
ketjow | 0:936379a8793e | 9 | @if REVISION_HISTORY_INCLUDED |
ketjow | 0:936379a8793e | 10 | @par Edit History |
ketjow | 0:936379a8793e | 11 | @li [0] wojciech.rynczuk@wp.pl 20-JAN-2015 Initial file revision. |
ketjow | 0:936379a8793e | 12 | @endif |
ketjow | 0:936379a8793e | 13 | |
ketjow | 0:936379a8793e | 14 | @ingroup Logger |
ketjow | 0:936379a8793e | 15 | |
ketjow | 0:936379a8793e | 16 | The MIT License (MIT) |
ketjow | 0:936379a8793e | 17 | Copyright (c) 2016 Wojciech Rynczuk |
ketjow | 0:936379a8793e | 18 | |
ketjow | 0:936379a8793e | 19 | */ |
ketjow | 0:936379a8793e | 20 | |
ketjow | 0:936379a8793e | 21 | #ifndef _SERIALLOGGER_HPP_ |
ketjow | 0:936379a8793e | 22 | #define _SERIALLOGGER_HPP_ |
ketjow | 0:936379a8793e | 23 | |
ketjow | 0:936379a8793e | 24 | #include "mbed.h" |
ketjow | 0:936379a8793e | 25 | #include "logger.hpp" |
ketjow | 0:936379a8793e | 26 | |
ketjow | 0:936379a8793e | 27 | class SerialLogger : public Logger { |
ketjow | 0:936379a8793e | 28 | |
ketjow | 0:936379a8793e | 29 | public: |
ketjow | 0:936379a8793e | 30 | SerialLogger(uint32_t n_Lines, uint32_t n_Characters); |
ketjow | 0:936379a8793e | 31 | ~SerialLogger(); |
ketjow | 0:936379a8793e | 32 | |
ketjow | 0:936379a8793e | 33 | virtual void Printf(const char* line); |
ketjow | 0:936379a8793e | 34 | virtual void AlarmFull(); |
ketjow | 0:936379a8793e | 35 | virtual uint32_t StartAction(); |
ketjow | 0:936379a8793e | 36 | virtual uint32_t StopAction(); |
ketjow | 0:936379a8793e | 37 | |
ketjow | 0:936379a8793e | 38 | private: |
ketjow | 0:936379a8793e | 39 | DigitalOut* alarm; |
ketjow | 0:936379a8793e | 40 | DigitalOut* rec_indicator; |
ketjow | 0:936379a8793e | 41 | Serial* serialOut; |
ketjow | 0:936379a8793e | 42 | }; |
ketjow | 0:936379a8793e | 43 | #endif |