Wirepas SDK
timing.h File Reference

Go to the source code of this file.

Functions

void Timing_init (void)
 Initialize the timing module.
 
void Timing_reset (timing_handle_t *h)
 Resets measurements of the handle.
 
void Timing_start (timing_handle_t *h)
 Starts a timing measurement for the specified handle.
 
void Timing_stop (timing_handle_t *h)
 Stopts a timing measurement for the specified handle.
 

Data Structures

struct  timing_handle_t
 Handle containing timing informations. More...
 

Function Documentation

◆ Timing_init()

void Timing_init ( void  )

Initialize the timing module.

◆ Timing_reset()

void Timing_reset ( timing_handle_t h)

Resets measurements of the handle.

Parameters
hpointer to the timing handle

◆ Timing_start()

void Timing_start ( timing_handle_t h)

Starts a timing measurement for the specified handle.

Parameters
hpointer to the timing handle

◆ Timing_stop()

void Timing_stop ( timing_handle_t h)

Stopts a timing measurement for the specified handle.

Parameters
hpointer to the timing handle

Data Structure Documentation

◆ timing_handle_t

struct timing_handle_t

Handle containing timing informations.

Definition at line 13 of file timing.h.

Data Fields
uint32_t avg

Maximum time measured since reset (in CPU ticks)

uint32_t cnt

Average time measured since reset (in CPU ticks)

uint32_t max

Minimum time measured since reset (in CPU ticks)

uint32_t min
uint32_t start

Number of measurement done since reset (in CPU ticks)

uint32_t stop

Internal use

uint32_t sum

Internal use