implemented precision timestamps in report messages
This commit is contained in:
+8
-21
@@ -9,6 +9,7 @@
|
||||
|
||||
#include "platform.h"
|
||||
#include <TinyFrame.h>
|
||||
#include "framework/unit.h"
|
||||
|
||||
/**
|
||||
* Queued job typedef
|
||||
@@ -26,27 +27,13 @@ typedef void (*ScheduledJobCb) (Job *job);
|
||||
struct sched_que_item {
|
||||
/** The callback */
|
||||
ScheduledJobCb cb;
|
||||
/** Data word 1 */
|
||||
union {
|
||||
TF_ID frame_id; // typically used to pass frame id to the callback
|
||||
void *data1; // arbitrary pointer or int
|
||||
uint32_t d32_1; // passing a number
|
||||
};
|
||||
/** Data word 2 */
|
||||
union {
|
||||
uint32_t d32; // passing a number
|
||||
uint32_t d32_2; // passing a number
|
||||
uint8_t *buf; // uchar buffer
|
||||
const uint8_t *cbuf; // const uchar buffer
|
||||
const char *str; // string
|
||||
void *data2; // arbitrary pointer
|
||||
};
|
||||
/** Data word 3 */
|
||||
union {
|
||||
uint32_t len; // typically length of the buffer
|
||||
void *data3; // arbitrary pointer
|
||||
uint32_t d32_3; // passing a number
|
||||
};
|
||||
|
||||
// Fields for data
|
||||
Unit *unit;
|
||||
uint64_t timestamp;
|
||||
uint32_t data1;
|
||||
uint32_t data2;
|
||||
uint32_t data3;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user