zephyr/samples
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
..
application_development boards: samples: remove CONFIG_BUILD_NO_GAP_FILL=y and similar 2024-12-02 11:14:09 +01:00
arch doc: samples: Adopt code-sample-category across tree 2024-09-23 12:00:00 +02:00
basic samples: pwm: Add overlay for nucleo_l4r5zi board 2024-12-17 09:48:40 +01:00
bluetooth Bluetooth: Mesh: use secure storage in ble mesh 2025-01-14 13:23:47 +01:00
boards Bluetooth: Mesh: use secure storage in ble mesh 2025-01-14 13:23:47 +01:00
cpp doc: samples: Adopt code-sample-category across tree 2024-09-23 12:00:00 +02:00
drivers samples: drivers: counter: add nRF54L09 config 2025-01-15 11:52:03 +01:00
fuel_gauge doc: samples: Adopt code-sample-category across tree 2024-09-23 12:00:00 +02:00
hello_world samples: hello_world: remove redundant title 2024-09-26 17:40:42 -04:00
kernel samples, tests: remove usage of space-separated lists 2024-12-04 14:14:53 -05:00
modules samples: Add mctp host and client samples 2025-01-14 22:55:41 +01:00
net samples: net: echo_server: Disable vt100 commands in websocket console 2025-01-13 20:23:07 +01:00
philosophers samples: doc: convert philosophers sample to code-sample directive 2024-09-23 12:00:00 +02:00
posix samples, tests: remove usage of space-separated lists 2024-12-04 14:14:53 -05:00
psa samples|tests: secure-storage: allow all test rng sources 2024-12-19 17:53:37 +01:00
sensor drivers: sensor: Add sensor clock API support 2025-01-15 19:03:13 +01:00
shields samples/shields: x-nucleo-iks4a1: Add lis2dux12 accel and temp test 2024-12-27 19:34:46 +01:00
subsys samples: esp32c3: Add USB variant 2025-01-10 18:57:07 +01:00
synchronization samples/synchronization: fix thread b pinning 2024-07-30 18:30:30 +01:00
sysbuild samples, tests: remove usage of space-separated lists 2024-12-04 14:14:53 -05:00
tfm_integration tests: add integration_platforms and misc optimizations 2024-11-26 00:12:07 +01:00
userspace samples: userspace: shared_mem: remove mimxrt700_evk cm33 cores 2025-01-14 17:56:53 +01:00
index.rst doc: samples: Adopt code-sample-category across tree 2024-09-23 12:00:00 +02:00
sample_definition_and_criteria.rst doc: overhaul sample criteria and expectations 2024-09-12 10:03:30 +02:00