Dinesh Kumar K
6a746dc012
drivers: sensor: grow_r502a: add RX packet validation
...
Add RX packet validator where header, address, pid
and checksum bytes are verified and validated on
every functions.
Signed-off-by: Dinesh Kumar K <dinesh@linumiz.com>
2024-05-09 12:41:59 -04:00
Dinesh Kumar K
e08ce0ed71
drivers: sensor: grow_r502a: add upload and download template
...
1. Add functionality for upload and download fingerprint
template data of the R502A fingerprint sensor device.
2. change data type for data_len parameter of
transceive_packet function to uint16_t as it may hold
value 256 for dowload template data to sensor.
Signed-off-by: Dinesh Kumar K <dinesh@linumiz.com>
2024-05-09 12:41:59 -04:00
Dinesh Kumar K
7ae0158e35
drivers: sensor: grow_r502a: add set/read system parameter
...
Add functionality for read and set system
parameter of sensor device.
Signed-off-by: Dinesh Kumar K <dinesh@linumiz.com>
2024-05-09 12:41:59 -04:00
Dinesh Kumar K
b63fe1c368
drivers: sensor: grow_r502a: modified Tx and Rx data handling
...
improvised uart tx and rx handler functions to handle
large chunk of fingerprint data from/to the sensor.
Signed-off-by: Dinesh Kumar K <dinesh@linumiz.com>
2024-05-09 12:41:59 -04:00
Dinesh Kumar K
3c8bd0bc2b
drivers: sensor: grow_r502a: add built-in LED control
...
Add LED control attribute for sensor device's
built-in LED using zephyr's led driver APIs.
Signed-off-by: Dinesh Kumar K <dinesh@linumiz.com>
2024-05-09 12:41:59 -04:00
Dinesh Kumar K
e57c6f9d2b
drivers: sensor: grow_r502a: move enroll, search, delete to application
...
Removed fps_enroll, fps_search and fps_delete from
driver code, since they did application usage inside
driver. add the following attributes to achieve the
above functionality from application.
1. SENSOR_ATTR_R502A_CAPTURE
2. SENSOR_ATTR_R502A_TEMPLATE_CREATE
3. SENSOR_ATTR_R502A_RECORD_ADD
4. SENSOR_ATTR_R502A_RECORD_LOAD
5. SENSOR_ATTR_R502A_COMPARE
Signed-off-by: Dinesh Kumar K <dinesh@linumiz.com>
2024-05-09 12:41:59 -04:00
Dinesh Kumar K
378034c66a
drivers: sensor: grow_r502a: fix in fps_read_template_table
...
consuming sensor_value struct instead of local device
driver variable.
Signed-off-by: Dinesh Kumar K <dinesh@linumiz.com>
2024-05-09 12:41:59 -04:00
Dinesh Kumar K
63c48bba91
drivers: sensor: grow_r502a: fix in checksum calculation
...
change checksum calculation to consider 2 bytes in pkg_len.
Signed-off-by: Dinesh Kumar K <dinesh@linumiz.com>
2024-05-09 12:41:59 -04:00
Dinesh Kumar K
476a3982af
drivers: sensor: grow_r502a: fix in fps_empty_db
...
return ret; on goto unlock in fps_empty_db function.
Signed-off-by: Dinesh Kumar K <dinesh@linumiz.com>
2024-05-09 12:41:59 -04:00
Dinesh Kumar K
d33bf33b66
drivers: sensor: grow_r502a: fix in fps_search
...
return -ENOENT; when no record found on getting
attribute SENSOR_ATTR_R502A_FIND and fix array indexing
for tx data in fps_search.
Signed-off-by: Dinesh Kumar K <dinesh@linumiz.com>
2024-05-09 12:41:59 -04:00
Aurelien Jarno
7a2a4ff6ec
drivers: sensor: tmp112: only show options when device enabled
...
Only show the tmp112 runtime options when the tmp112 driver is enabled,
otherwise the option is confusing and does not appear hierarchically in
menuconfig.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2024-05-09 12:40:54 -04:00
Mayank Mahajan
d1687a557c
ADD: Driver for Sensor INA226
...
INA226 - Bidirectional Current and Power Monitor w/ I2C
Boards Tested: mr_canhubk3
Signed-off-by: Mayank Mahajan <mayankmahajan.x@nxp.com>
2024-05-09 15:46:31 +02:00
Nick Ward
3718b515bd
drivers: sensor: adxl362: fix temperature conversion
...
It was missing the test condition for the temperature sensor.
Signed-off-by: Nick Ward <nix.ward@gmail.com>
2024-05-08 09:24:42 -04:00
Armando Visconti
dd42501a60
drivers/sensor: lsm6dsl: use sensor APIs to convert to units
...
Make use of sensor_ug_to_ms2() and sensor_10udegrees_to_rad() APIs
to convert from raw values into proper units (i.e. m/s^2 for accel
and rad/s for gyro). It also improves measurement precision.
Fixes #63980
Signed-off-by: Armando Visconti <armando.visconti@st.com>
2024-05-08 09:23:50 -04:00
Juliane Schulze
26a8a20542
drivers: tmag5273 add missing ifdef around CRC support
...
Fixes an error causing build issues if CRC support is not set to active.
Signed-off-by: Juliane Schulze <juliane.schulze@deveritec.com>
2024-05-06 17:31:57 +01:00
Juliane Schulze
de0dfc3145
drivers: allow lis2dh anymotion triggers if no anymotion latching is active
...
Since the interrupt state of the IA bit (interrupt source register) is
checked, it needs to be read out everytime, not only on latching.
Fixes #71245
Signed-off-by: Juliane Schulze <juliane.schulze@deveritec.com>
2024-05-06 14:54:46 +01:00
Pieter De Gendt
8a2bece9af
drivers: sensor: Rename emul_sensor_backend_api to emul_sensor_driver_api
...
Structs with a __subsystem tag are required to have a _driver_api suffix.
Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2024-05-03 14:44:41 +01:00
Luis Ubieda
971491b5a4
sensor: decoder: Use helper API to compute header size
...
To be consistent with the computed offset on sensor_submit_fallback()
implementation. This prevents falling in misalignment issues when the
number of sensor channels changes.
Signed-off-by: Luis Ubieda <luisf@croxel.com>
2024-04-30 19:28:02 -05:00
Luis Ubieda
45ae829791
sensor: rtio_default: Remove log when device does not contain channel
...
Since this loops over all listed sensor channels, this makes more
difficult catching other debug log messages that might be of interest
(e.g: Decoding results).
Signed-off-by: Luis Ubieda <luisf@croxel.com>
2024-04-30 19:27:15 -05:00
Luis Ubieda
fcb5d768a2
sensor: rtio_default: Add shift to sensor_submit_fallback DBG printout
...
To facilitate calculation verification between Q-number and value
obtained through fetch/get APIs.
Signed-off-by: Luis Ubieda <luisf@croxel.com>
2024-04-30 19:27:15 -05:00
Fredrik Gihl
be25e34a7c
drivers: sensor: Add TI TMP114 temperature sensors
...
Add device driver for TI TMP114 I2C temperature sensor.
The driver only support basic functionality, i.e. fetch temperature
using default values.
Datasheet:
https://www.ti.com/lit/ds/symlink/tmp114.pdf
Signed-off-by: Fredrik Gihl <fgihl@hotmail.com>
2024-04-30 14:31:07 -04:00
Benedikt Schmidt
10bbf7cd57
drivers: sensor: add driver for temperature sensor NCT75
...
Add a driver for the ON Semiconductor temperature sensor NCT75.
Signed-off-by: Benedikt Schmidt <benediktibk@gmail.com>
2024-04-26 19:22:09 -04:00
Yong Cong Sin
0291c551a2
drivers: use DT_INST_NODE_HAS_COMPAT
...
Replace occurances of:
DT_NODE_HAS_COMPAT\(DT_DRV_INST\((.*)\), (.*)\)
With:
DT_INST_NODE_HAS_COMPAT($1, $2)
Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2024-04-26 20:04:38 +01:00
Jeff Daly
7e0a334060
drivers: sensor: ntc_thermistor: Add Murata NCP15XH103
...
Murata NCP15XH103 compensation table added.
Signed-off-by: Jeff Daly <jeffd@silicom-usa.com>
2024-04-24 15:56:23 -04:00
Juliane Schulze
ca92f96f41
drivers: lis2dh: read reference register prior to wakeup
...
Fixes #71371
Signed-off-by: Juliane Schulze <juliane.schulze@deveritec.com>
2024-04-15 12:52:39 +02:00
Jilay Pandya
eaa2c60220
refactor: adjust spacing by clang formatting
...
This commit clang-formats the file after the new additions
Signed-off-by: Jilay Pandya <jilay.pandya@zeiss.com>
2024-04-11 20:09:59 +02:00
Jilay Pandya
895e889b38
fix: sensor: veml7700
...
This commit introduces checks in order to sanitize input data
Signed-off-by: Jilay Pandya <jilay.pandya@zeiss.com>
2024-04-11 20:09:59 +02:00
Armando Visconti
38738265b9
drivers/sensor: use sensor APIs to convert to units
...
Make use of sensor_ug_to_ms2() and sensor_10udegrees_to_rad() APIs
to convert from raw values into proper units (i.e. m/s^2 for accel
and rad/s for gyro).
Signed-off-by: Armando Visconti <armando.visconti@st.com>
2024-04-10 15:55:32 +02:00
Benedikt Schmidt
888d071fe7
drivers: sensor: implement output diagnostics sensor for TLE9104
...
Implement a sensor for the output diagnostics of the power train
switch TLE9104.
Signed-off-by: Benedikt Schmidt <benedikt.schmidt@embedded-solutions.at>
2024-04-09 11:07:27 +02:00
Jamie McCrae
2ae1a978ae
drivers: sensor: ite_cvmp_it8xxx2: Move init priority into if check
...
Moves a Kconfig that appears everywhere in the wrong place so that
it is enclosed if if statment check, so it only shows for device
that have the driver enabled
Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-04-08 18:17:52 -05:00
Maureen Helm
d2dfb8e8d7
drivers: sensor: meas: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
b6fd6eafa1
drivers: sensor: asahi_kasei: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
3127ffb441
drivers: sensor: espressif: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
1b1954649b
drivers: sensor: infineon: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
5d79eced22
drivers: sensor: honeywell: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
eedccf7e96
drivers: sensor: aosong: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
8e46dc01ba
drivers: sensor: vishay: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
77a53a21b1
drivers: sensor: seeed: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
b52d5e20a1
drivers: sensor: rohm: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
addfa22b08
drivers: sensor: nuvoton: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
51e6cbddba
drivers: sensor: nordic: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
ec105cbf67
drivers: sensor: ite: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
2fc36432e6
drivers: sensor: wsen: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
fab99bd641
drivers: sensor: sensirion: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
5df44e43d6
drivers: sensor: ams: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
b2b2d704f4
drivers: sensor: ti: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
a2ef60e9bc
drivers: sensor: silabs: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
1cfa6d918a
drivers: sensor: nxp: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
e09398d5e0
drivers: sensor: microchip: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00
Maureen Helm
c02e3aa47a
drivers: sensor: maxim: Move to vendor subdirectory
...
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-04-08 09:14:06 -04:00