Data collection core that utilises the nine ring buffer. Intended as the base of other data collection projects
ninelocks_logger_core/ninelocks_logger_core.h
- Committer:
- jont
- Date:
- 2015-07-10
- Revision:
- 1:d22102484ea1
- Parent:
- 0:79615902fcb0
- Child:
- 2:8587554a1f52
File content as of revision 1:d22102484ea1:
#ifndef NL_LOGGER_CORE #define NL_LOGGER_CORE #include "mbed.h" #include "record_ring.h" #define nl_name_length 100 class NineLoggerCore { public: NineLoggerCore(); NineLoggerCore(Serial * pc); void do_journal(long seconds, char entryType); bool flush_buffered_journal_events(); void setfilename(char* filename); int get_overrun_count(); // void flash(int n); char journallog_filename[nl_name_length]; private: // DigitalOut _pin; protected: Serial * _pc; JRecordRing log_buffer; //where the timed logs get sent to int overrun_count; }; #endif