VitroIO SDK
Software development kit for Vitro Shard.
Loading...
Searching...
No Matches
timestamp.h
Go to the documentation of this file.
1#ifndef VITROIO_SDK_TIMESTAMP
2#define VITROIO_SDK_TIMESTAMP
3
4#include <mbed.h>
7
8namespace vitroio {
9namespace sdk {
10namespace impl{
26 public:
33 static void start(Transport_layer* comm, EnvironmentInterface* env_if);
34
42 static void start(uint32_t sync_time, Transport_layer* comm, EnvironmentInterface *env_if);
43
49 static uint32_t get_timestamp();
50
51 static void updater_runner();
52 typedef struct {
53 uint32_t sync_interval;
55 Timer ticker;
58 static Thread updater;
61 private:
62 static void set_timestamp(uint32_t timestamp);
63};
67}
68}
69}
70
71#endif
Virtual class providing interface for communication interfaces.
Definition: transport_layer.h:29
Class is wrapper for FlashInterface. It allows to read/write environment variables stored in flash me...
Definition: environment_interface.h:33
Class for maintaining timestamp tracking.
Definition: timestamp.h:25
static CurrentTime_t current_time
Definition: timestamp.h:57
static void start(Transport_layer *comm, EnvironmentInterface *env_if)
Initializes timestamp counting.
static void start(uint32_t sync_time, Transport_layer *comm, EnvironmentInterface *env_if)
Initializes timestamp counting.
static uint32_t get_timestamp()
Get the timestamp object.
static Transport_layer * comm_port
Definition: timestamp.h:59
static EnvironmentInterface * env
Definition: timestamp.h:60
static Thread updater
Definition: timestamp.h:58
The namespace contains all of components of vitro-shard-sdk and components based on the sdk....
Definition: can_layer.h:9
Timer ticker
Definition: timestamp.h:55
uint32_t sync_interval
Definition: timestamp.h:53
uint32_t last_timestamp
Definition: timestamp.h:54