zephyr/drivers/sensor
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
..
a01nyub drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
adi drivers: sensor: Add sensor clock API support 2025-01-15 19:03:13 +01:00
amd_sb_tsi drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
amg88xx drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
ams drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
aosong drivers: sensor: dht: Fix sensor read issue on esp32_devkitc_wrover 2024-12-23 09:16:06 +01:00
apds9253 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
apds9306 drivers: sensor: apds9306 fix unchecked return value coverity issue 2024-12-12 11:05:49 +01:00
apds9960 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
asahi_kasei drivers: sensor: Add sensor clock API support 2025-01-15 19:03:13 +01:00
bosch drivers: sensor: Add sensor clock API support 2025-01-15 19:03:13 +01:00
current_amp drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
ene_tach_kb1200 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
ens160 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
espressif drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
explorir_m drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
f75303 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
fcx_mldx5 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
grow_r502a drivers: led: Place API into iterable section 2024-12-02 22:07:36 +00:00
hc_sr04 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
honeywell drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
hp206c drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
infineon drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
ist8310 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
ite drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
jedec drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
lm35 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
lm75 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
lm77 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
ltrf216a drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
maxim drivers: rtc: maxim,ds3231: RTC driver 2025-01-07 23:00:05 +01:00
meas drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
memsic drivers: sensor: Add sensor clock API support 2025-01-15 19:03:13 +01:00
mhz19b drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
microchip drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
nct75 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
nordic drivers: sensor: npm1300_charger: Updating of discharge current limit 2024-12-05 15:18:23 +01:00
ntc_thermistor drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
nuvoton drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
nxp drivers: sensor: nxp: add code judge whether read back correctly 2024-12-18 01:01:37 +01:00
pms7003 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
qdec_sam drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
renesas drivers: sensor: Add HS400x driver 2024-12-20 03:18:19 +01:00
rohm drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
rpi_pico_temp drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
s11059 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
sbs_gauge drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
seeed drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
sensirion drivers: sensor: scd4x: Fix to allow the use of multiple models 2024-12-11 21:33:14 +01:00
silabs drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
st drivers: sensor: Add sensor clock API support 2025-01-15 19:03:13 +01:00
sx9500 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
tdk drivers: sensor: Add sensor clock API support 2025-01-15 19:03:13 +01:00
th02 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
ti drivers: sensor: Fix TMAG5273/TMAG3001 by adding a TMAG3001 compatible 2025-01-08 09:33:02 +01:00
tsic_xx6 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
veaa_x_3 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
vishay Sensor: VCNL4040: Update to lux/step constants 2025-01-09 08:20:22 +01:00
voltage_divider sensors: reconfig adc for channel 2025-01-14 22:55:07 +01:00
wsen drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
CMakeLists.txt drivers: sensor: Add sensor clock API support 2025-01-15 19:03:13 +01:00
default_rtio_sensor.c drivers: sensor: Add sensor clock API support 2025-01-15 19:03:13 +01:00
Kconfig drivers: sensor: Add sensor clock API support 2025-01-15 19:03:13 +01:00
Kconfig.sensor_clock drivers: sensor: Add sensor clock API support 2025-01-15 19:03:13 +01:00
Kconfig.trigger_template
sensor_clock_external.c drivers: sensor: Add sensor clock API support 2025-01-15 19:03:13 +01:00
sensor_clock_sys.c drivers: sensor: Add sensor clock API support 2025-01-15 19:03:13 +01:00
sensor_decoders_init.c
sensor_handlers.c
sensor_shell_stream.c
sensor_shell.c drivers: sensors: Add SENSOR_CHAN_FREQUENCY channel 2025-01-14 17:58:41 +01:00
sensor_shell.h
shell_battery.c