Loading...
Searching...
No Matches

API for accurate timestamps, sleeping, and time based callbacks. More...

Modules

 timestamp
 Timestamp functions relating to points in time (including the current time).
 
 sleep
 Sleep functions for delaying execution in a lower power state.
 
 alarm
 Alarm functions for scheduling future execution.
 
 repeating_timer
 Repeating Timer functions for simple scheduling of repeated execution.
 

Data Structures

struct  timeout_state
 State used to track a timeout condition. More...
 

Typedefs

typedef struct timeout_state timeout_state_t
 State used to track a timeout condition.
 

Detailed Description

API for accurate timestamps, sleeping, and time based callbacks.

Note
The functions defined here provide a much more powerful and user friendly wrapping around the low level hardware timer functionality. For these functions (and any other SDK functionality e.g. timeouts, that relies on them) to work correctly, the hardware timer should not be modified. i.e. it is expected to be monotonically increasing once per microsecond. Fortunately there is no need to modify the hardware timer as any functionality you can think of that isn't already covered here can easily be modelled by adding or subtracting a constant value from the unmodified hardware timer.
See also
hardware_timer

Typedef Documentation

◆ timeout_state_t

State used to track a timeout condition.

Holds the deadline and an optional per-iteration parameter used by the check_timeout_fn callbacks returned by the init functions.