Zephyr API Documentation
4.1.99
A Scalable Open Source RTOS
4.1.99
Toggle main menu visibility
Main Page
Related Pages
Topics
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Enumerator
Files
File List
Globals
All
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
f
g
h
i
k
l
m
n
o
p
r
s
t
u
x
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
sensor_clock.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2024 Cienet
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef ZEPHYR_DRIVERS_SENSOR_CLOCK_H_
8
#define ZEPHYR_DRIVERS_SENSOR_CLOCK_H_
9
10
#include <
stdint.h
>
11
12
#ifdef __cplusplus
13
extern
"C"
{
14
#endif
15
28
int
sensor_clock_get_cycles
(
uint64_t
*cycles);
29
39
uint64_t
sensor_clock_cycles_to_ns
(
uint64_t
cycles);
40
41
#ifdef __cplusplus
42
}
43
#endif
44
45
#endif
/* ZEPHYR_DRIVERS_SENSOR_CLOCK_H_ */
sensor_clock_get_cycles
int sensor_clock_get_cycles(uint64_t *cycles)
Retrieve the current sensor clock cycles.
sensor_clock_cycles_to_ns
uint64_t sensor_clock_cycles_to_ns(uint64_t cycles)
Convert clock cycles to nanoseconds.
stdint.h
uint64_t
__UINT64_TYPE__ uint64_t
Definition
stdint.h:91
zephyr
drivers
sensor_clock.h
Generated on Tue Apr 29 2025 06:06:33 for Zephyr API Documentation by
1.12.0