-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
driver: sensor: adds basic support for analog devices ltc2990
This commit adds Kconfig variables to configure ADLTC2990. This commit adds basic driver code for analog devices ltc2990 sensor. Signed-off-by: Jilay Pandya <jilay.pandya@zeiss.com>
- Loading branch information
1 parent
66f5ed1
commit 0c8db7b
Showing
4 changed files
with
586 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#SPDX - FileCopyrightText : Copyright(c) 2023 Carl Zeiss Meditec AG | ||
#SPDX - License - Identifier : Apache - 2.0 | ||
|
||
zephyr_library() | ||
|
||
zephyr_library_sources_ifdef(CONFIG_ADLTC2990 adltc2990.c) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#ADLTC2990 Quad I2C Voltage, Current and Temperature sensor configuration options | ||
|
||
#SPDX - FileCopyrightText : Copyright(c) 2023 Carl Zeiss Meditec AG | ||
#SPDX - License - Identifier : Apache - 2.0 | ||
|
||
menuconfig ADLTC2990 | ||
bool "ADLTC2990 Quad I2C Voltage, Current and Temperature Monitor" | ||
default n | ||
depends on DT_HAS_ADI_ADLTC2990_ENABLED | ||
select I2C | ||
help | ||
Enable the driver for Analog Devices LTC2990 | ||
Quad I2C Voltage, Current and Temperature Monitor. | ||
|
||
if ADLTC2990 | ||
|
||
choice | ||
prompt "Temperature Format" | ||
|
||
config ADLTC2990_TEMPERATURE_IN_KELVIN | ||
bool "Kelvin" | ||
|
||
config ADLTC2990_TEMPERATURE_IN_CELCIUS | ||
bool "Celcius" | ||
|
||
endchoice | ||
|
||
config ADLTC2990_TEMPERATURE_FORMAT_VALUE | ||
int | ||
default 0 if ADLTC2990_TEMPERATURE_IN_CELCIUS | ||
default 1 if ADLTC2990_TEMPERATURE_IN_KELVIN | ||
|
||
choice | ||
prompt "Acquisition Type" | ||
|
||
config ADLTC2990_ACQUISITION_SINGLE | ||
bool "Single" | ||
|
||
config ADLTC2990_ACQUISITION_REPEATED | ||
bool "Repeated" | ||
|
||
endchoice | ||
|
||
config ADLTC2990_ACQUISITION_TYPE_VALUE | ||
int | ||
default 0 if ADLTC2990_ACQUISITION_REPEATED | ||
default 1 if ADLTC2990_ACQUISITION_SINGLE | ||
|
||
endif #ADLTC2990 |
Oops, something went wrong.