Skip to content

Commit

Permalink
drivers: sensors: add fcx-mldx5 o2 sensor
Browse files Browse the repository at this point in the history
Add driver for Angst+Pfister O2 sensors FCX-MLD25 & FCX-MLD95 and maybe
more. Tested with FCX-MLD25.

Supports get O2 value, get status, and power management.

Note that in suspended power mode heating output is at 20 %, thus
probably not suited for a battery powered device.

Signed-off-by: Jeppe Odgaard <[email protected]>
  • Loading branch information
Jeppe Odgaard committed Feb 15, 2024
1 parent 34cbfdb commit a935fcd
Show file tree
Hide file tree
Showing 6 changed files with 549 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/sensor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ add_subdirectory_ifdef(CONFIG_ENS210 ens210)
add_subdirectory_ifdef(CONFIG_ESP32_TEMP esp32_temp)
add_subdirectory_ifdef(CONFIG_EXPLORIR_M explorir_m)
add_subdirectory_ifdef(CONFIG_F75303 f75303)
add_subdirectory_ifdef(CONFIG_FCX_MLDX5 fcx_mldx5)
add_subdirectory_ifdef(CONFIG_FDC2X1X fdc2x1x)
add_subdirectory_ifdef(CONFIG_FXAS21002 fxas21002)
add_subdirectory_ifdef(CONFIG_FXOS8700 fxos8700)
Expand Down
1 change: 1 addition & 0 deletions drivers/sensor/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ source "drivers/sensor/ens210/Kconfig"
source "drivers/sensor/esp32_temp/Kconfig"
source "drivers/sensor/explorir_m/Kconfig"
source "drivers/sensor/f75303/Kconfig"
source "drivers/sensor/fcx_mldx5/Kconfig"
source "drivers/sensor/fdc2x1x/Kconfig"
source "drivers/sensor/fxas21002/Kconfig"
source "drivers/sensor/fxos8700/Kconfig"
Expand Down
5 changes: 5 additions & 0 deletions drivers/sensor/fcx_mldx5/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_library()

zephyr_library_sources(fcx_mldx5.c)
13 changes: 13 additions & 0 deletions drivers/sensor/fcx_mldx5/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# FCX-MLDx5 O2 sensor configuration options

# Copyright (c) 2024, Vitrolife A/S
# SPDX-License-Identifier: Apache-2.0

config FCX_MLDX5
bool "FCX-MLDx5 O2 Sensor"
default y
depends on DT_HAS_AP_FCX_MLDX5_ENABLED
depends on UART_INTERRUPT_DRIVEN
select UART
help
Enable driver for FCX-MLD25 or FCX-MLD95 O2 Sensor.
Loading

0 comments on commit a935fcd

Please sign in to comment.