system_clock.hpp
Go to the documentation of this file.
1 /*
2  * System clock driver interface.
3  * Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com>
4  */
5 
6 #ifndef UAVCAN_DRIVER_SYSTEM_CLOCK_HPP_INCLUDED
7 #define UAVCAN_DRIVER_SYSTEM_CLOCK_HPP_INCLUDED
8 
9 #include <uavcan/std.hpp>
10 #include <uavcan/build_config.hpp>
11 #include <uavcan/time.hpp>
12 
13 namespace uavcan
14 {
15 
20 {
21 public:
22  virtual ~ISystemClock() { }
23 
32  virtual MonotonicTime getMonotonic() const = 0;
33 
45  virtual UtcTime getUtc() const = 0;
46 
55  virtual void adjustUtc(UtcDuration adjustment) = 0;
56 };
57 
58 }
59 
60 #endif // UAVCAN_DRIVER_SYSTEM_CLOCK_HPP_INCLUDED
uavcan::UtcTime getUtc()
Definition: clock.cpp:97
uavcan::MonotonicTime getMonotonic()
Definition: clock.cpp:83
Implicitly convertible to/from uavcan.Timestamp.
Definition: time.hpp:191
void adjustUtc(uavcan::UtcDuration adjustment)
Definition: clock.cpp:117


uavcan_communicator
Author(s):
autogenerated on Wed Jan 11 2023 03:59:39