1 /*
2  * Copyright (c) 2020 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef _NATIVE_POSIX_HW_COUNTER_H
8 #define _NATIVE_POSIX_HW_COUNTER_H
9 
10 #include <stdint.h>
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 void hw_counter_init(void);
17 void hw_counter_triggered(void);
18 
19 void hw_counter_set_period(uint64_t period);
20 void hw_counter_set_target(uint64_t counter_target);
21 void hw_counter_start(void);
22 void hw_counter_stop(void);
23 uint64_t hw_counter_get_value(void);
24 
25 #ifdef __cplusplus
26 }
27 #endif
28 
29 #endif /* _NATIVE_POSIX_HW_COUNTER_H */
30