zephyr/drivers/sensor/tdk
Mark Chen f4da9b9705 drivers: sensor: Add sensor clock API support
This commit introduces a new Sensor Clock API, enabling the retrieval
of cycle counts and conversion to nanoseconds based on the system or
external clock. The API includes:

- `sensor_clock_get_cycles()` to get the current cycle count from the
  sensor clock.
- `sensor_clock_cycles_to_ns()` to convert cycles to nanoseconds using
  the clock's frequency.

The implementation supports both system clocks and external clocks
defined in the device tree, making the sensor clock integration more
flexible for various sensor use cases.

Signed-off-by: Mark Chen <mark.chen@cienet.com>
2025-01-15 19:03:13 +01:00
..
icm42605 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
icm42670 drivers: sensor: icm42670: supports icm42670-P/-S 2024-12-18 03:04:31 +01:00
icm42688 drivers: sensor: Add sensor clock API support 2025-01-15 19:03:13 +01:00
icp10125 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
mpu6050 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
mpu9250 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
CMakeLists.txt drivers: sensor: tdk: Refactor cmake and kconfig to vendor subdirectory 2024-09-16 10:06:03 +02:00
Kconfig drivers: sensor: tdk: Refactor cmake and kconfig to vendor subdirectory 2024-09-16 10:06:03 +02:00