Classes | |
struct | UtcSyncParams |
Functions | |
void | adjustUtc (uavcan::UtcDuration adjustment) |
uavcan::MonotonicTime | getMonotonic () |
uavcan::UtcTime | getUtc () |
uavcan::uint32_t | getUtcJumpCount () |
float | getUtcRateCorrectionPPM () |
UtcSyncParams | getUtcSyncParams () |
uavcan::uint64_t | getUtcUSecFromCanInterrupt () |
void | init () |
bool | isUtcLocked () |
void | setUtc (uavcan::UtcTime time) |
void | setUtcSyncParams (const UtcSyncParams ¶ms) |
void uavcan_kinetis::clock::adjustUtc | ( | uavcan::UtcDuration | adjustment | ) |
uavcan::MonotonicTime uavcan_kinetis::clock::getMonotonic | ( | ) |
Returns current monotonic time since the moment when clock::init() was called. This function is thread safe.
Returns current monotonic time passed since the moment when clock::init() was called. Note that both monotonic and UTC clocks are implemented using SysTick timer.
uavcan::UtcTime uavcan_kinetis::clock::getUtc | ( | ) |
uavcan::uint32_t uavcan_kinetis::clock::getUtcJumpCount | ( | ) |
Number of non-gradual adjustments performed so far. Ideally should be zero. This function is thread safe.
float uavcan_kinetis::clock::getUtcRateCorrectionPPM | ( | ) |
Clock rate error. Positive if the hardware timer is slower than reference time. This function is thread safe.
UtcSyncParams uavcan_kinetis::clock::getUtcSyncParams | ( | ) |
UTC sync params get/set. Both functions are thread safe.
uavcan::uint64_t uavcan_kinetis::clock::getUtcUSecFromCanInterrupt | ( | ) |
void uavcan_kinetis::clock::init | ( | ) |
bool uavcan_kinetis::clock::isUtcLocked | ( | ) |
Whether UTC is synchronized and locked. This function is thread safe.
void uavcan_kinetis::clock::setUtc | ( | uavcan::UtcTime | time | ) |
Sets the driver's notion of the system UTC. It should be called at startup and any time the system clock is updated from an external source that is not the UAVCAN Timesync master. This function is thread safe.
void uavcan_kinetis::clock::setUtcSyncParams | ( | const UtcSyncParams & | params | ) |