Push packet timestamping earlier in packet handling.

Ideally, it'd get pushed back into baseband, and baseband would correct for the length of the packet (based on preamble/access code match timestamp minus preamble/access code duration) to give the exact time the packet started.
This commit is contained in:
Jared Boone 2015-12-03 14:04:20 -08:00
parent 0909cdb31e
commit bb3cb6f080
6 changed files with 35 additions and 8 deletions

View file

@ -26,6 +26,9 @@
#include "ff.h"
#include "lpc43xx_cpp.hpp"
using namespace lpc43xx;
class LogFile {
public:
~LogFile();
@ -34,7 +37,7 @@ public:
bool close();
bool is_ready();
bool write_entry(const std::string entry);
bool write_entry(const rtc::RTC& datetime, const std::string entry);
private:
FIL f;