libuav original
Dependents: UAVCAN UAVCAN_Subscriber
uavcan_lpc11c24::clock Namespace Reference
Internal for the driver. More...
Namespaces | |
namespace | anonymous_namespace{clock.cpp} |
Functions | |
void | init () |
Starts the clock. | |
uavcan::MonotonicTime | getMonotonic () |
Returns current monotonic time passed since the moment when clock::init() was called. | |
uavcan::UtcTime | getUtc () |
Returns UTC time if it has been set, otherwise returns zero time. | |
void | adjustUtc (uavcan::UtcDuration adjustment) |
Performs UTC time adjustment. | |
uavcan::UtcDuration | getPrevUtcAdjustment () |
Returns clock error sampled at previous UTC adjustment. |
Detailed Description
Internal for the driver.
Function Documentation
void adjustUtc | ( | uavcan::UtcDuration | adjustment ) |
uavcan::MonotonicTime getMonotonic | ( | ) |
Returns current monotonic time passed since the moment when clock::init() was called.
Returns current monotonic time since the moment when clock::init() was called.
Note that both monotonic and UTC clocks are implemented using SysTick timer.
uavcan::UtcDuration getPrevUtcAdjustment | ( | ) |
uavcan::UtcTime getUtc | ( | ) |
Generated on Tue Jul 12 2022 17:17:38 by 1.7.2