Zephyr API Documentation
4.0.99
A Scalable Open Source RTOS
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 Sat Jan 18 2025 18:02:30 for Zephyr API Documentation by
1.12.0