Zephyr API Documentation 4.5.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
12
13#ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_CLOCK_H_
14#define ZEPHYR_INCLUDE_DRIVERS_SENSOR_CLOCK_H_
15
16#include <stdint.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
26
40
51
53
54#ifdef __cplusplus
55}
56#endif
57
58#endif /* ZEPHYR_INCLUDE_DRIVERS_SENSOR_CLOCK_H_ */
int sensor_clock_get_cycles(uint64_t *cycles)
Retrieve the current sensor clock cycles.
uint64_t sensor_clock_cycles_to_ns(uint64_t cycles)
Convert clock cycles to nanoseconds.
__UINT64_TYPE__ uint64_t
Definition stdint.h:91