Functions
uavcan_lpc11c24::clock Namespace Reference

Functions

void adjustUtc (uavcan::UtcDuration adjustment)
 
static void fail ()
 
uavcan::MonotonicTime getMonotonic ()
 
uavcan::UtcDuration getPrevUtcAdjustment ()
 
uavcan::UtcTime getUtc ()
 
std::uint64_t getUtcUSecFromCanInterrupt ()
 
void init ()
 
static std::uint64_t sampleFromCriticalSection (const volatile std::uint64_t *const value)
 

Detailed Description

Internal for the driver

Function Documentation

◆ adjustUtc()

void uavcan_lpc11c24::clock::adjustUtc ( uavcan::UtcDuration  adjustment)

Performs UTC time adjustment. The UTC time will be zero until first adjustment has been performed.

Definition at line 117 of file clock.cpp.

◆ fail()

static void uavcan_lpc11c24::clock::fail ( )
static

Definition at line 38 of file clock.cpp.

◆ getMonotonic()

uavcan::MonotonicTime uavcan_lpc11c24::clock::getMonotonic ( )

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.

Definition at line 83 of file clock.cpp.

◆ getPrevUtcAdjustment()

uavcan::UtcDuration uavcan_lpc11c24::clock::getPrevUtcAdjustment ( )

Returns clock error sampled at previous UTC adjustment. Positive if the hardware timer is slower than reference time.

Definition at line 112 of file clock.cpp.

◆ getUtc()

uavcan::UtcTime uavcan_lpc11c24::clock::getUtc ( )

Returns UTC time if it has been set, otherwise returns zero time. Note that both monotonic and UTC clocks are implemented using SysTick timer.

Definition at line 97 of file clock.cpp.

◆ getUtcUSecFromCanInterrupt()

std::uint64_t uavcan_lpc11c24::clock::getUtcUSecFromCanInterrupt ( )

Definition at line 78 of file clock.cpp.

◆ init()

void uavcan_lpc11c24::clock::init ( )

Starts the clock. Can be called multiple times, only the first call will be effective.

Definition at line 43 of file clock.cpp.

◆ sampleFromCriticalSection()

static std::uint64_t uavcan_lpc11c24::clock::sampleFromCriticalSection ( const volatile std::uint64_t *const  value)
static

Definition at line 62 of file clock.cpp.



uavcan_communicator
Author(s):
autogenerated on Fri Dec 13 2024 03:10:05