Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
nrf_rtc_timer.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2016-2020 Nordic Semiconductor ASA
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef ZEPHYR_INCLUDE_DRIVERS_TIMER_NRF_RTC_TIMER_H
8
#define ZEPHYR_INCLUDE_DRIVERS_TIMER_NRF_RTC_TIMER_H
9
10
#ifdef __cplusplus
11
extern
"C"
{
12
#endif
13
14
typedef
void
(*z_nrf_rtc_timer_compare_handler_t)(
int32_t
id,
15
uint32_t
cc_value,
16
void
*
user_data
);
17
25
int32_t
z_nrf_rtc_timer_chan_alloc(
void
);
26
31
void
z_nrf_rtc_timer_chan_free(
int32_t
chan);
32
37
uint32_t
z_nrf_rtc_timer_read(
void
);
38
47
uint32_t
z_nrf_rtc_timer_compare_evt_address_get(
int32_t
chan);
48
57
bool
z_nrf_rtc_timer_compare_int_lock(
int32_t
chan);
58
67
void
z_nrf_rtc_timer_compare_int_unlock(
int32_t
chan,
bool
key
);
68
75
uint32_t
z_nrf_rtc_timer_compare_read(
int32_t
chan);
76
98
void
z_nrf_rtc_timer_compare_set(
int32_t
chan,
uint32_t
cc_value,
99
z_nrf_rtc_timer_compare_handler_t
handler
,
100
void
*
user_data
);
101
110
int
z_nrf_rtc_timer_get_ticks(
k_timeout_t
t
);
111
112
#ifdef __cplusplus
113
}
114
#endif
115
116
#endif
/* ZEPHYR_INCLUDE_DRIVERS_TIMER_NRF_RTC_TIMER_H */
void
void
Definition:
eswifi_shell.c:15
t
struct k_thread t
Definition:
kobject.c:1316
key
static k_spinlock_key_t key
Definition:
spinlock_error_case.c:14
uint32_t
__UINT32_TYPE__ uint32_t
Definition:
stdint.h:60
int32_t
__INT32_TYPE__ int32_t
Definition:
stdint.h:44
k_timeout_t
Kernel timeout type.
Definition:
sys_clock.h:65
handler
static void handler(struct k_timer *timer)
Definition:
main.c:19
user_data
static const intptr_t user_data[5]
Definition:
main.c:590
include
drivers
timer
nrf_rtc_timer.h
Generated on Sun Oct 9 2022 09:21:56 for Zephyr API Documentation by
1.9.4