Loading...
Searching...
No Matches

uwb-core DPL (Decawave Porting Layer) time abstraction More...

Detailed Description

uwb-core DPL (Decawave Porting Layer) time abstraction

Author
Francisco Molina franc.nosp@m.ois-.nosp@m.xavie.nosp@m.r.mo.nosp@m.lina@.nosp@m.inri.nosp@m.a.fr

Definition in file dpl_time.h.

#include "os/os_time.h"
+ Include dependency graph for dpl_time.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static dpl_time_t dpl_time_get (void)
 Returns the low 32 bits of cputime.
 
static dpl_error_t dpl_time_ms_to_ticks (uint32_t ms, dpl_time_t *out_ticks)
 Converts the given number of milliseconds into cputime ticks.
 
static dpl_error_t dpl_time_ticks_to_ms (dpl_time_t ticks, uint32_t *out_ms)
 Convert the given number of ticks into milliseconds.
 
static dpl_time_t dpl_time_ms_to_ticks32 (uint32_t ms)
 Converts the given number of milliseconds into cputime ticks.
 
static dpl_time_t dpl_time_ticks_to_ms32 (dpl_time_t ticks)
 Convert the given number of ticks into milliseconds.
 
static void dpl_time_delay (dpl_time_t ticks)
 Wait until the number of ticks has elapsed, BLOICKING.
 

Function Documentation

◆ dpl_time_delay()

static void dpl_time_delay ( dpl_time_t  ticks)
inlinestatic

Wait until the number of ticks has elapsed, BLOICKING.

Parameters
[in]ticksThe number of ticks to wait.

Definition at line 94 of file dpl_time.h.

◆ dpl_time_get()

static dpl_time_t dpl_time_get ( void  )
inlinestatic

Returns the low 32 bits of cputime.

Returns
uint32_t The lower 32 bits of cputime

Definition at line 34 of file dpl_time.h.

◆ dpl_time_ms_to_ticks()

static dpl_error_t dpl_time_ms_to_ticks ( uint32_t  ms,
dpl_time_t out_ticks 
)
inlinestatic

Converts the given number of milliseconds into cputime ticks.

Parameters
[in]msThe number of milliseconds to convert to ticks
[out]out_ticksThe number of ticks corresponding to 'ms'
Returns
dpl_error_t DPL_OK - no error

Definition at line 47 of file dpl_time.h.

◆ dpl_time_ms_to_ticks32()

static dpl_time_t dpl_time_ms_to_ticks32 ( uint32_t  ms)
inlinestatic

Converts the given number of milliseconds into cputime ticks.

Parameters
[in]msThe number of milliseconds to convert to ticks
Returns
uint32_t The number of ticks corresponding to 'ms'

Definition at line 72 of file dpl_time.h.

◆ dpl_time_ticks_to_ms()

static dpl_error_t dpl_time_ticks_to_ms ( dpl_time_t  ticks,
uint32_t *  out_ms 
)
inlinestatic

Convert the given number of ticks into milliseconds.

Parameters
[in]ticksThe number of ticks to convert to milliseconds.
[out]out_msThe converted milliseconds from 'ticks'
Returns
dpl_error_t DPL_OK - no error

Definition at line 60 of file dpl_time.h.

◆ dpl_time_ticks_to_ms32()

static dpl_time_t dpl_time_ticks_to_ms32 ( dpl_time_t  ticks)
inlinestatic

Convert the given number of ticks into milliseconds.

Parameters
[in]ticksThe number of ticks to convert to milliseconds.
Returns
uint32_t The number of milliseconds corresponding to 'ticks'

Definition at line 84 of file dpl_time.h.