Firmware SDK
twr_tick

Timestamp functions. More...

Macros

#define TWR_TICK_INFINITY   UINT64_C(0xffffffffffffffff)
 Maximum timestamp value.
 

Typedefs

typedef uint64_t twr_tick_t
 Timestamp data type.
 

Functions

twr_tick_t twr_tick_get (void)
 Get absolute timestamp since start of program. More...
 
void twr_tick_wait (twr_tick_t delay)
 Delay execution for specified amount of ticks. More...
 
void twr_tick_increment_irq (twr_tick_t delta)
 

Detailed Description

Timestamp functions.

Function Documentation

◆ twr_tick_get()

twr_tick_t twr_tick_get ( void  )

Get absolute timestamp since start of program.

Returns
Timestamp in milliseconds

Definition at line 7 of file twr_tick.c.

Referenced by twr_aes_key_derivation(), twr_cy8cmbr3102_set_scan_interval(), twr_i2c_init(), twr_lp8_init(), twr_module_lcd_draw_image(), twr_mpl3115a2_init(), twr_ramp_get(), twr_ramp_start(), twr_sc16is740_read(), twr_scheduler_plan_current_from_now(), twr_scheduler_plan_from_now(), twr_scheduler_run(), twr_spirit1_set_rx_timeout(), twr_sps30_measure(), twr_tick_wait(), and twr_uart_read().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ twr_tick_wait()

void twr_tick_wait ( twr_tick_t  delay)

Delay execution for specified amount of ticks.

Parameters
[in]delayNumber of ticks to wait

Definition at line 23 of file twr_tick.c.

Here is the call graph for this function: