Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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