Wirepas SDK
hw_delay.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 /*
8  * \file hw_delay.h
9  * \brief hardware delay module for nrf52
10  */
11 
12 #ifndef HAL_HW_DELAY_H_
13 #define HAL_HW_DELAY_H_
14 
16 typedef enum {
23 
24 
33 typedef uint32_t (* hw_delay_callback_f)(void);
34 
41 
42 
55 hw_delay_res_e hw_delay_trigger_us(hw_delay_callback_f callback, uint32_t time_us);
56 
64 
65 #endif /* HAL_HW_DELAY_H_ */
HW_DELAY_NOT_STARTED
@ HW_DELAY_NOT_STARTED
Definition: hw_delay.h:19
hw_delay_init
hw_delay_res_e hw_delay_init(void)
Initialize Hardware Delay Module.
hw_delay_trigger_us
hw_delay_res_e hw_delay_trigger_us(hw_delay_callback_f callback, uint32_t time_us)
Setup timer trigger.
HW_DELAY_NOT_TRIGGERED
@ HW_DELAY_NOT_TRIGGERED
Definition: hw_delay.h:20
hw_delay_res_e
hw_delay_res_e
Definition: hw_delay.h:16
HW_DELAY_ERR
@ HW_DELAY_ERR
Definition: hw_delay.h:21
HW_DELAY_OK
@ HW_DELAY_OK
Definition: hw_delay.h:17
hw_delay_cancel
hw_delay_res_e hw_delay_cancel(void)
Cancel Hardware delay.
hw_delay_callback_f
uint32_t(* hw_delay_callback_f)(void)
Callback to be registered, and called after timer expire.
Definition: hw_delay.h:33
HW_DELAY_PARAM_ERR
@ HW_DELAY_PARAM_ERR
Definition: hw_delay.h:18