Crate cu29_clock

Crate cu29_clock 

Source

Structs§

CuDuration
For Robot times, the underlying type is a u64 representing nanoseconds. It is always positive to simplify the reasoning on the user side.
CuInstant
High-precision instant in time, represented as nanoseconds since an arbitrary epoch
CuTimeRange
Represents a time range.
OptionCuTime
Homebrewed Option<CuDuration> to avoid using 128bits just to represent an Option.
PartialCuTimeRange
Represents a time range with possible undefined start or end or both.
RobotClock
A running Robot clock. The clock is a monotonic clock that starts at an arbitrary reference time. It is clone resilient, ie a clone will be the same clock, even when mocked.
RobotClockMock
A mock clock that can be controlled by the user.

Enums§

Tov
The time of validity of a message can be more than one time but can be a time range of Tovs. For example a sub scan for a lidar, a set of images etc… can have a range of validity.

Traits§

ClockProvider
A trait to provide a clock to the runtime.

Functions§

busy_wait_for
A busy looping function based on this clock for a duration. Mainly useful for embedded to spinlocking.
busy_wait_until
A busy looping function based on this until a specific time. Mainly useful for embedded to spinlocking.
initialize
read_raw_counter

Type Aliases§

CuTime
A robot time is just a duration from a fixed point in time.
Instant