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
13extern "C" {
14#endif
15
29
40
41#ifdef __cplusplus
42}
43#endif
44
45#endif /* ZEPHYR_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