Wirepas SDK
timing.h
Go to the documentation of this file.
1/* Copyright 2018 Wirepas Ltd. All Rights Reserved.
2 *
3 * See file LICENSE.txt for full license details.
4 *
5 */
6
7#ifndef _TIMING_H_
8#define _TIMING_H_
9
10#include "stdint.h"
11
13typedef struct
14{
15 uint32_t min;
16 uint32_t max;
17 uint32_t avg;
18 uint32_t cnt;
19 uint32_t start;
20 uint32_t stop;
21 uint32_t sum;
23
27void Timing_init(void);
28
35
42
49
50#endif //_TIMING_H_
void Timing_start(timing_handle_t *h)
Starts a timing measurement for the specified handle.
uint32_t min
Definition timing.h:15
void Timing_stop(timing_handle_t *h)
Stopts a timing measurement for the specified handle.
uint32_t max
Definition timing.h:16
uint32_t sum
Definition timing.h:21
uint32_t start
Definition timing.h:19
void Timing_init(void)
Initialize the timing module.
uint32_t cnt
Definition timing.h:18
void Timing_reset(timing_handle_t *h)
Resets measurements of the handle.
uint32_t stop
Definition timing.h:20
uint32_t avg
Definition timing.h:17
Handle containing timing informations.
Definition timing.h:14