text
stringlengths
9
39.2M
dir
stringlengths
25
226
lang
stringclasses
163 values
created_date
timestamp[s]
updated_date
timestamp[s]
repo_name
stringclasses
751 values
repo_full_name
stringclasses
752 values
star
int64
1.01k
183k
len_tokens
int64
1
18.5M
```c /* * */ #include <stdlib.h> #include <string.h> #include <zephyr/drivers/sensor.h> #include <zephyr/kernel.h> #include "sensor_shell.h" /* Create a single common config for streaming */ static struct sensor_stream_trigger iodev_sensor_shell_trigger; static struct sensor_read_config iodev_sensor_shell_stream_...
/content/code_sandbox/drivers/sensor/sensor_shell_stream.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,080
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_SENSOR_SHELL_H #define ZEPHYR_DRIVERS_SENSOR_SENSOR_SHELL_H #include <zephyr/device.h> #include <zephyr/drivers/sensor.h> #include <zephyr/rtio/rtio.h> #include <zephyr/shell/shell.h> struct sensor_shell_processing_context { const struct device *dev; const str...
/content/code_sandbox/drivers/sensor/sensor_shell.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
158
```c /* * */ #include <zephyr/init.h> #include <zephyr/drivers/sensor.h> static int sensor_decoders_init(void) { STRUCT_SECTION_FOREACH(sensor_decoder_api, api) { k_object_access_all_grant(api); } return 0; } SYS_INIT(sensor_decoders_init, POST_KERNEL, 99); ```
/content/code_sandbox/drivers/sensor/sensor_decoders_init.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
71
```c /* * */ #include <zephyr/drivers/sensor.h> #include <zephyr/internal/syscall_handler.h> static inline int z_vrfy_sensor_attr_set(const struct device *dev, enum sensor_channel chan, enum sensor_attribute attr, const struct sensor_value *val) { K_OOPS(K_SYSCALL_DRIVER_SENSOR(dev, attr_set)); ...
/content/code_sandbox/drivers/sensor/sensor_handlers.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
697
```unknown # Common Kconfig template for all sensors choice "$(module)_TRIGGER_MODE" prompt "Trigger mode" help Specify the type of triggering to be used by the sensor module. config $(module)_TRIGGER_NONE bool "No trigger" config $(module)_TRIGGER_GLOBAL_THREAD bool "Use global thread" depends on GPIO sele...
/content/code_sandbox/drivers/sensor/Kconfig.trigger_template
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
225
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_MC3419_H_ #define ZEPHYR_DRIVERS_SENSOR_MC3419_H_ #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/i2c.h> #include <zephyr/drivers/sensor.h> #include <zephyr/kernel.h> #include <zephyr/sys/util.h> /* Registers */ #define MC3419_REG_INT_CTRL 0x06 #defin...
/content/code_sandbox/drivers/sensor/mc3419/mc3419.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
795
```unknown # Sensor configuration options menuconfig SENSOR bool "Sensor drivers" help Include sensor drivers in system config if SENSOR module = SENSOR module-str = sensor source "subsys/logging/Kconfig.template.log_config" config SENSOR_INIT_PRIORITY int "Sensor init priority" default 90 help Sensor i...
/content/code_sandbox/drivers/sensor/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,250
```unknown # menuconfig MC3419 bool "MC3419 acclerometer driver" default y depends on DT_HAS_MEMSIC_MC3419_ENABLED select I2C if $(dt_compat_on_bus,$(DT_COMPAT_MEMSIC_MC3419),i2c) help Enable driver for MC3419 acclerometer. if MC3419 config MC3419_TRIGGER bool "Trigger mode" if MC3419_TRIGGER config MC3419...
/content/code_sandbox/drivers/sensor/mc3419/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
280
```c /* * */ #include "mc3419.h" #include <zephyr/logging/log.h> LOG_MODULE_DECLARE(MC3419, CONFIG_SENSOR_LOG_LEVEL); static void mc3419_gpio_callback(const struct device *dev, struct gpio_callback *cb, uint32_t pin_mask) { struct mc3419_driver_data *data = CONTAINER_OF(cb, struct mc3419_driver_d...
/content/code_sandbox/drivers/sensor/mc3419/mc3419_trigger.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,328
```unknown # zephyr-keep-sorted-start source "drivers/sensor/espressif/esp32_temp/Kconfig" source "drivers/sensor/espressif/pcnt_esp32/Kconfig" # zephyr-keep-sorted-stop ```
/content/code_sandbox/drivers/sensor/espressif/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
54
```unknown config ESP32_TEMP bool "ESP32 Temperature Sensor" default y depends on DT_HAS_ESPRESSIF_ESP32_TEMP_ENABLED depends on !SOC_SERIES_ESP32 help Enable driver for temperature sensor on certain ESP targets. ```
/content/code_sandbox/drivers/sensor/espressif/esp32_temp/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
55
```c /* * */ #define DT_DRV_COMPAT memsic_mc3419 #include <zephyr/init.h> #include <zephyr/drivers/sensor.h> #include <zephyr/sys/byteorder.h> #include <zephyr/kernel.h> #include <zephyr/logging/log.h> #include "mc3419.h" LOG_MODULE_REGISTER(MC3419, CONFIG_SENSOR_LOG_LEVEL); static const uint16_t mc3419_accel_sen...
/content/code_sandbox/drivers/sensor/mc3419/mc3419.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,300
```c /* * */ #define DT_DRV_COMPAT espressif_esp32_temp #include <driver/temp_sensor.h> #include <zephyr/kernel.h> #include <zephyr/device.h> #include <zephyr/devicetree.h> #include <zephyr/drivers/sensor.h> #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(esp32_temp, CONFIG_SENSOR_LOG_LEVEL); #if CONFIG_SOC_...
/content/code_sandbox/drivers/sensor/espressif/esp32_temp/esp32_temp.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
660
```unknown # ESP32 Pulse Counter configuration config PCNT_ESP32 bool "ESP32 Pulse Counter driver" default y depends on DT_HAS_ESPRESSIF_ESP32_PCNT_ENABLED help This option enables the PCNT driver for ESP32 family of processors. config PCNT_ESP32_TRIGGER bool "Trigger support" depends on PCNT_ESP32 defa...
/content/code_sandbox/drivers/sensor/espressif/pcnt_esp32/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
96
```c /* * */ #define DT_DRV_COMPAT ene_kb1200_tach #include <zephyr/drivers/pinctrl.h> #include <zephyr/drivers/sensor.h> #include <reg/tacho.h> /* Device config */ struct tach_kb1200_config { /* tachometer controller base address */ struct tacho_regs *tacho; /* number of pulses (holes) per round of tachometer'...
/content/code_sandbox/drivers/sensor/ene_tach_kb1200/tach_ene_kb1200.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,097
```unknown # KB1200 tachometer sensor configuration options config TACH_ENE_KB1200 bool "ENE KB1200 tachometer sensor" default y depends on DT_HAS_ENE_KB1200_TACH_ENABLED select PINCTRL help Enable tachometer sensor for ENE KB1200. ```
/content/code_sandbox/drivers/sensor/ene_tach_kb1200/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
70
```c /* * */ #define DT_DRV_COMPAT espressif_esp32_pcnt /* Include esp-idf headers first to avoid redefining BIT() macro */ #include <hal/pcnt_hal.h> #include <hal/pcnt_ll.h> #include <hal/pcnt_types.h> #include <soc.h> #include <errno.h> #include <string.h> #include <zephyr/drivers/sensor.h> #include <zephyr/kern...
/content/code_sandbox/drivers/sensor/espressif/pcnt_esp32/pcnt_esp32.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,675
```unknown # FCX-MLDx5 O2 sensor configuration options 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. ```
/content/code_sandbox/drivers/sensor/fcx_mldx5/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
87
```unknown # zephyr-keep-sorted-start source "drivers/sensor/ti/bq274xx/Kconfig" source "drivers/sensor/ti/fdc2x1x/Kconfig" source "drivers/sensor/ti/ina219/Kconfig" source "drivers/sensor/ti/ina226/Kconfig" source "drivers/sensor/ti/ina23x/Kconfig" source "drivers/sensor/ti/ina3221/Kconfig" source "drivers/sensor/ti/...
/content/code_sandbox/drivers/sensor/ti/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
251
```c /* * * * Datasheet: * path_to_url * */ #define DT_DRV_COMPAT ap_fcx_mldx5 #include <ctype.h> #include <zephyr/kernel.h> #include <zephyr/device.h> #include <zephyr/drivers/sensor.h> #include <zephyr/drivers/sensor/fcx_mldx5.h> #include <zephyr/drivers/uart.h> #include <zephyr/logging/log.h> #include <zephyr...
/content/code_sandbox/drivers/sensor/fcx_mldx5/fcx_mldx5.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
4,457
```unknown # LM95234 temperature sensor config config LM95234 bool "LM95234 Temperature Sensor" default y depends on DT_HAS_NATIONAL_LM95234_ENABLED select I2C help Enable the driver for the LM95234 Quad Remote Diode and Local Temperature Sensor with SMBus Interface. ```
/content/code_sandbox/drivers/sensor/ti/lm95234/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
69
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_TMAG5170_TMAG5170_H_ #define ZEPHYR_DRIVERS_SENSOR_TMAG5170_TMAG5170_H_ #include <zephyr/device.h> #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/spi.h> #include <zephyr/sys/util.h> struct tmag5170_dev_config { struct spi_dt_spec bus; uint8_t magnet...
/content/code_sandbox/drivers/sensor/ti/tmag5170/tmag5170.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
388
```c /* * */ #define DT_DRV_COMPAT national_lm95234 #include <zephyr/device.h> #include <zephyr/devicetree.h> #include <zephyr/drivers/i2c.h> #include <zephyr/drivers/sensor.h> #include <zephyr/drivers/sensor/lm95234.h> #include <zephyr/pm/device.h> #include <zephyr/pm/device_runtime.h> #include <zephyr/logging/log...
/content/code_sandbox/drivers/sensor/ti/lm95234/lm95234.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,862
```c /* * */ #define DT_DRV_COMPAT ti_tmag5170 #include <zephyr/kernel.h> #include <zephyr/drivers/sensor.h> #include <zephyr/drivers/gpio.h> #include <zephyr/pm/device.h> #include <zephyr/logging/log.h> #include "tmag5170.h" LOG_MODULE_DECLARE(TMAG5170, CONFIG_SENSOR_LOG_LEVEL); static void tmag5170_handle_inte...
/content/code_sandbox/drivers/sensor/ti/tmag5170/tmag5170_trigger.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
925
```unknown # Texas Instruments TMAG5170 high-precision, linear 3D Hall-effect sensor with SPI bus interface menuconfig TMAG5170 bool "TMAG5170 SPI Hall-effect sensor driver" default y depends on DT_HAS_TI_TMAG5170_ENABLED select SPI help Enable driver for TMAG5170 Hall-effect sensor driver if TMAG5170 choic...
/content/code_sandbox/drivers/sensor/ti/tmag5170/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
366
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_TMP007_TMP007_H_ #define ZEPHYR_DRIVERS_SENSOR_TMP007_TMP007_H_ #include <zephyr/device.h> #include <zephyr/drivers/i2c.h> #include <zephyr/drivers/gpio.h> #include <zephyr/sys/util.h> #define TMP007_REG_CONFIG 0x02 #define TMP007_ALERT_EN_BIT BIT(8) #define ...
/content/code_sandbox/drivers/sensor/ti/tmp007/tmp007.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
574
```c /* * */ #define DT_DRV_COMPAT ti_tmp007 #include <zephyr/device.h> #include <zephyr/drivers/gpio.h> #include <zephyr/sys/util.h> #include <zephyr/kernel.h> #include <zephyr/drivers/sensor.h> #include "tmp007.h" extern struct tmp007_data tmp007_driver; #include <zephyr/logging/log.h> LOG_MODULE_DECLARE(TMP00...
/content/code_sandbox/drivers/sensor/ti/tmp007/tmp007_trigger.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,284
```c /* * */ #define DT_DRV_COMPAT ti_tmp007 #include <zephyr/device.h> #include <zephyr/drivers/i2c.h> #include <zephyr/drivers/gpio.h> #include <zephyr/sys/byteorder.h> #include <zephyr/sys/util.h> #include <zephyr/kernel.h> #include <zephyr/drivers/sensor.h> #include <zephyr/sys/__assert.h> #include <zephyr/logg...
/content/code_sandbox/drivers/sensor/ti/tmp007/tmp007.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
984
```unknown # TMP007 infrared thermopile sensor configuration options menuconfig TMP007 bool "TMP007 Infrared Thermopile Sensor" default y depends on DT_HAS_TI_TMP007_ENABLED select I2C help Enable driver for TMP007 infrared thermopile sensors. if TMP007 choice prompt "Trigger mode" default TMP007_TRIGGER_...
/content/code_sandbox/drivers/sensor/ti/tmp007/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
248
```unknown # INA226 Bidirectional Current/Power Monitor config INA226 bool "INA226 Current/Power Monitor" default y depends on DT_HAS_TI_INA226_ENABLED select I2C help Enable driver for INA226 Bidirectional Current/Power Monitor. config INA226_VSHUNT bool "INA226 VShunt Measurement Enable" depends on DT_HA...
/content/code_sandbox/drivers/sensor/ti/ina226/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
183
```c /* * */ #define DT_DRV_COMPAT ti_tmag5170 #include <zephyr/drivers/sensor.h> #include <zephyr/logging/log.h> #include <zephyr/kernel.h> #include <zephyr/devicetree.h> #include <zephyr/pm/device.h> #include <zephyr/sys/byteorder.h> #include <zephyr/sys/__assert.h> #if defined(CONFIG_TMAG5170_CRC) #include <zep...
/content/code_sandbox/drivers/sensor/ti/tmag5170/tmag5170.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
5,469
```c /* * */ #define DT_DRV_COMPAT ti_tmp114 #include <zephyr/device.h> #include <zephyr/drivers/i2c.h> #include <zephyr/drivers/sensor.h> #include <zephyr/sys/byteorder.h> #include <zephyr/sys/__assert.h> #include <zephyr/logging/log.h> #include <zephyr/kernel.h> LOG_MODULE_REGISTER(TMP114, CONFIG_SENSOR_LOG_LEVE...
/content/code_sandbox/drivers/sensor/ti/tmp114/tmp114.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,577
```unknown # TMP114 temperature sensor configuration options config TMP114 bool "TMP114 Temperature Sensor" default y depends on DT_HAS_TI_TMP114_ENABLED select I2C help Enable driver for TMP114 temperature sensors. ```
/content/code_sandbox/drivers/sensor/ti/tmp114/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
49
```c /* * */ /* TODO: Add functionality for Trigger. */ #define DT_DRV_COMPAT ti_ina226 #include <zephyr/logging/log.h> #include <zephyr/drivers/sensor.h> #include <zephyr/dt-bindings/sensor/ina226.h> #include <zephyr/sys/byteorder.h> #include <zephyr/sys/util_macro.h> #include <stdint.h> #include <zephyr/device....
/content/code_sandbox/drivers/sensor/ti/ina226/ina226.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,564
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_FDC2X1X_FDC2X1X_H_ #define ZEPHYR_DRIVERS_SENSOR_FDC2X1X_FDC2X1X_H_ #include <zephyr/drivers/sensor.h> #include <zephyr/drivers/i2c.h> #include <zephyr/drivers/gpio.h> #define PI (3.14159265) /* * FDC2X1X registers definition */ #define FDC2X1X_D...
/content/code_sandbox/drivers/sensor/ti/fdc2x1x/fdc2x1x.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,160
```c /* * */ #define DT_DRV_COMPAT ti_fdc2x1x #include <zephyr/device.h> #include <zephyr/drivers/gpio.h> #include <zephyr/sys/util.h> #include <zephyr/kernel.h> #include <zephyr/drivers/sensor.h> #include "fdc2x1x.h" #include <stdio.h> #include <zephyr/logging/log.h> LOG_MODULE_DECLARE(FDC2X1X, CONFIG_SENSOR_LOG...
/content/code_sandbox/drivers/sensor/ti/fdc2x1x/fdc2x1x_trigger.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,261
```unknown # FDC2X1X Capacitance-to-Digital Converter configuration options menuconfig FDC2X1X bool "FDC2X1X Capacitance-to-Digital Converter" default y depends on DT_HAS_TI_FDC2X1X_ENABLED depends on FULL_LIBC_SUPPORTED || EXTERNAL_LIBC select I2C help Enable driver for FDC2X1X Capacitance-to-Digital Conver...
/content/code_sandbox/drivers/sensor/ti/fdc2x1x/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
352
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_TMP116_TMP116_H_ #define ZEPHYR_DRIVERS_SENSOR_TMP116_TMP116_H_ #define TMP116_REG_TEMP 0x0 #define TMP116_REG_CFGR 0x1 #define TMP116_REG_HIGH_LIM 0x2 #define TMP116_REG_LOW_LIM 0x3 #define TMP116_REG_EEPROM_UL 0x4 #define TMP116_REG_EEPROM1 0x5 #define TM...
/content/code_sandbox/drivers/sensor/ti/tmp116/tmp116.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
378
```c /* * */ #define DT_DRV_COMPAT ti_tmp116 #include <zephyr/device.h> #include <zephyr/drivers/i2c.h> #include <zephyr/drivers/sensor.h> #include <zephyr/drivers/sensor/tmp116.h> #include <zephyr/sys/util.h> #include <zephyr/sys/byteorder.h> #include <zephyr/sys/__assert.h> #include <zephyr/logging/log.h> #includ...
/content/code_sandbox/drivers/sensor/ti/tmp116/tmp116.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,343
```unknown # TMP116 temperature sensor configuration options config TMP116 bool "TMP116 and TMP117 Temperature Sensors" default y depends on DT_HAS_TI_TMP116_ENABLED select I2C help Enable driver for TMP116 and TMP117 temperature sensors. ```
/content/code_sandbox/drivers/sensor/ti/tmp116/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
55
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_INA219_INA219_H_ #define ZEPHYR_DRIVERS_SENSOR_INA219_INA219_H_ /* Device register addresses */ #define INA219_REG_CONF 0x00 #define INA219_REG_V_SHUNT 0x01 #define INA219_REG_V_BUS 0x02 #define INA219_REG_POWER 0x03 #define INA219_REG_CURRENT 0x04 #define INA21...
/content/code_sandbox/drivers/sensor/ti/ina219/ina219.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
665
```c /* fdc2x1x.c - Driver for the Texas Instruments FDC2X1X */ /* * */ #define DT_DRV_COMPAT ti_fdc2x1x #include <zephyr/device.h> #include <zephyr/pm/device.h> #include <zephyr/sys/util.h> #include <zephyr/logging/log.h> #include <math.h> #include "fdc2x1x.h" #include <zephyr/drivers/sensor/fdc2x1x.h> LOG_MODU...
/content/code_sandbox/drivers/sensor/ti/fdc2x1x/fdc2x1x.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
8,365
```unknown # INA219 Bidirectional Current/Power Monitor config INA219 bool "INA219 Current/Power Monitor" default y depends on DT_HAS_TI_INA219_ENABLED select I2C help Enable driver for INA219 Bidirectional Current/Power Monitor. ```
/content/code_sandbox/drivers/sensor/ti/ina219/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
58
```c /* * */ #define DT_DRV_COMPAT ti_ina219 #include <zephyr/device.h> #include <zephyr/drivers/i2c.h> #include <zephyr/kernel.h> #include <zephyr/drivers/sensor.h> #include <zephyr/logging/log.h> #include <zephyr/pm/device.h> #include <zephyr/sys/byteorder.h> #include "ina219.h" LOG_MODULE_REGISTER(INA219, CONF...
/content/code_sandbox/drivers/sensor/ti/ina219/ina219.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,053
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_TMP112_TMP112_H_ #define ZEPHYR_DRIVERS_SENSOR_TMP112_TMP112_H_ #include <zephyr/device.h> #include <zephyr/sys/util.h> #define TMP112_REG_TEMPERATURE 0x00 #define TMP112_DATA_INVALID_BIT (BIT(1) | BIT(2)) #define TMP112_DATA_EXTENDED ...
/content/code_sandbox/drivers/sensor/ti/tmp112/tmp112.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
363
```unknown # TMP112 temperature sensor configuration options config TMP112 bool "TMP112 Temperature Sensor" default y depends on DT_HAS_TI_TMP112_ENABLED select I2C help Enable the driver for Texas Instruments TMP112 High-Accuracy Digital Temperature Sensors. The TMP102 is compatible with the TMP112 bu...
/content/code_sandbox/drivers/sensor/ti/tmp112/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
192
```c /* * */ #define DT_DRV_COMPAT ti_tmp112 #include <zephyr/device.h> #include <zephyr/drivers/i2c.h> #include <zephyr/sys/byteorder.h> #include <zephyr/sys/util.h> #include <zephyr/kernel.h> #include <zephyr/drivers/sensor.h> #include <zephyr/sys/__assert.h> #include <zephyr/logging/log.h> #include "tmp112.h" L...
/content/code_sandbox/drivers/sensor/ti/tmp112/tmp112.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,455
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_INA23X_INA237_H_ #define ZEPHYR_DRIVERS_SENSOR_INA23X_INA237_H_ #include "ina23x_trigger.h" #include <stdint.h> #include <zephyr/device.h> #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/i2c.h> #include <zephyr/drivers/sensor.h> #define INA237_REG_CO...
/content/code_sandbox/drivers/sensor/ti/ina23x/ina237.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
448
```c /* * */ #include "ina230.h" #include <zephyr/drivers/sensor.h> #include <zephyr/drivers/gpio.h> #include <zephyr/logging/log.h> LOG_MODULE_DECLARE(INA230, CONFIG_SENSOR_LOG_LEVEL); static void ina230_gpio_callback(const struct device *port, struct gpio_callback *cb, uint32_t pin) { struct ina230_data *...
/content/code_sandbox/drivers/sensor/ti/ina23x/ina230_trigger.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
444
```c /* * */ #include "ina23x_trigger.h" #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(INA23X_TRIGGER, CONFIG_SENSOR_LOG_LEVEL); static void ina23x_gpio_callback(const struct device *port, struct gpio_callback *cb, uint32_t pin) { ARG_UNUSED(pin); struct ina23x_trigger *trigg = CONTAINER_OF(cb, stru...
/content/code_sandbox/drivers/sensor/ti/ina23x/ina23x_trigger.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
281
```c /* * */ #define DT_DRV_COMPAT ti_ina230 #include "ina230.h" #include "ina23x_common.h" #include <zephyr/logging/log.h> #include <zephyr/drivers/sensor.h> LOG_MODULE_REGISTER(INA230, CONFIG_SENSOR_LOG_LEVEL); /** @brief Calibration scaling value (value scaled by 100000) */ #define INA230_CAL_SCALING 512ULL ...
/content/code_sandbox/drivers/sensor/ti/ina23x/ina230.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,110
```c /* * */ #include "ina23x_common.h" #include <zephyr/sys/byteorder.h> int ina23x_reg_read_24(const struct i2c_dt_spec *bus, uint8_t reg, uint32_t *val) { uint8_t data[3]; int ret; ret = i2c_burst_read_dt(bus, reg, data, sizeof(data)); if (ret < 0) { return ret; } *val = sys_get_be24(data); return r...
/content/code_sandbox/drivers/sensor/ti/ina23x/ina23x_common.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
269
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_INA23X_TRIGGER_H_ #define ZEPHYR_DRIVERS_SENSOR_INA23X_TRIGGER_H_ #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/sensor.h> #include <zephyr/kernel.h> struct ina23x_trigger { struct gpio_callback gpio_cb; struct k_work conversion_work; sensor_trigge...
/content/code_sandbox/drivers/sensor/ti/ina23x/ina23x_trigger.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
143
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_INA23X_INA230_H_ #define ZEPHYR_DRIVERS_SENSOR_INA23X_INA230_H_ #ifdef CONFIG_INA230_TRIGGER #include <stdbool.h> #endif #include <stdint.h> #include <zephyr/device.h> #ifdef CONFIG_INA230_TRIGGER #include <zephyr/drivers/gpio.h> #endif #include <zephyr/drivers/...
/content/code_sandbox/drivers/sensor/ti/ina23x/ina230.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
422
```unknown # config INA23X bool "INA23X Current and Power Monitor" default y depends on DT_HAS_TI_INA230_ENABLED || DT_HAS_TI_INA237_ENABLED select I2C help Enable driver for INA23X Current and Power Monitor. if INA23X config INA230 bool "INA230" default y depends on DT_HAS_TI_INA230_ENABLED help Enab...
/content/code_sandbox/drivers/sensor/ti/ina23x/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
299
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_INA23X_COMMON_H_ #define ZEPHYR_DRIVERS_SENSOR_INA23X_COMMON_H_ #include <stdint.h> #include <zephyr/drivers/i2c.h> #include <zephyr/sys/util_macro.h> /** * @brief Macro used to check if the current's LSB is 1mA */ #define INA23X_CURRENT_LSB_1MA 1 in...
/content/code_sandbox/drivers/sensor/ti/ina23x/ina23x_common.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
196
```c /* * */ #define DT_DRV_COMPAT ti_ina237 #include "ina237.h" #include "ina23x_common.h" #include <zephyr/logging/log.h> #include <zephyr/drivers/sensor.h> #include <zephyr/dt-bindings/sensor/ina237.h> #include <zephyr/sys/byteorder.h> LOG_MODULE_REGISTER(INA237, CONFIG_SENSOR_LOG_LEVEL); /** @brief Calibrati...
/content/code_sandbox/drivers/sensor/ti/ina23x/ina237.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,390
```c /* * */ #define DT_DRV_COMPAT ti_opt3001 #include <zephyr/device.h> #include <zephyr/drivers/i2c.h> #include <zephyr/drivers/sensor.h> #include <zephyr/logging/log.h> #include <zephyr/sys/__assert.h> #include "opt3001.h" LOG_MODULE_REGISTER(opt3001, CONFIG_SENSOR_LOG_LEVEL); static int opt3001_reg_read(cons...
/content/code_sandbox/drivers/sensor/ti/opt3001/opt3001.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,208
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_OPT3001_H_ #define ZEPHYR_DRIVERS_SENSOR_OPT3001_H_ #include <zephyr/sys/util.h> #include <zephyr/drivers/i2c.h> #define OPT3001_REG_RESULT 0x00 #define OPT3001_REG_CONFIG 0x01 #define OPT3001_REG_MANUFACTURER_ID 0x7E #define OPT3001_REG_DEVICE_ID 0x7F #define ...
/content/code_sandbox/drivers/sensor/ti/opt3001/opt3001.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
230
```unknown # OPT3001 light sensor configuration options config OPT3001 bool "OPT3001 Light Sensor" default y depends on DT_HAS_TI_OPT3001_ENABLED select I2C help Enable driver for OPT3001 light sensors. ```
/content/code_sandbox/drivers/sensor/ti/opt3001/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
54
```c /* * */ #define DT_DRV_COMPAT ti_bq274xx #include <zephyr/drivers/sensor.h> #include <zephyr/drivers/gpio.h> #include <zephyr/logging/log.h> #ifdef CONFIG_BQ274XX_PM #include <zephyr/pm/device.h> #endif #include "bq274xx.h" LOG_MODULE_DECLARE(bq274xx, CONFIG_SENSOR_LOG_LEVEL); static void bq274xx_handle_in...
/content/code_sandbox/drivers/sensor/ti/bq274xx/bq274xx_trigger.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,104
```unknown # menuconfig BQ274XX bool "BQ274xx Fuel Gauge" default y depends on DT_HAS_TI_BQ274XX_ENABLED select I2C help Enable I2C-based driver for BQ274xx Fuel Gauge. if BQ274XX config BQ274XX_PM bool "BQ274XX Power Management" depends on PM_DEVICE default y help This option enables the device power...
/content/code_sandbox/drivers/sensor/ti/bq274xx/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
338
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_BATTERY_BQ274XX_H_ #define ZEPHYR_DRIVERS_SENSOR_BATTERY_BQ274XX_H_ #include <zephyr/drivers/i2c.h> #include <zephyr/drivers/gpio.h> #include <zephyr/dt-bindings/sensor/bq274xx.h> /*** General Constant ***/ #define BQ274XX_UNSEAL_KEY_A 0x8000 /* Unseal code one ...
/content/code_sandbox/drivers/sensor/ti/bq274xx/bq274xx.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,465
```c /* * * * Relevant documents: * - BQ27441 * Datasheet: path_to_url * Technical reference manual: path_to_url * - BQ27421 * Datasheet: path_to_url * Technical reference manual: path_to_url * - BQ27427 * Datasheet: path_to_url * Technical reference manual: path_to_url */ #define DT_DRV_COMPA...
/content/code_sandbox/drivers/sensor/ti/bq274xx/bq274xx.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
6,612
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_TMAG5273_H_ #define ZEPHYR_DRIVERS_SENSOR_TMAG5273_H_ #include <zephyr/sys/util.h> /* --- Register definitions --- */ #define TMAG5273_REG_DEVICE_CONFIG_1 0x00 #define TMAG5273_REG_DEVICE_CONFIG_2 0x01 #define TMAG5273_REG_SENSOR_CONFIG_1 0x02 #define TMAG527...
/content/code_sandbox/drivers/sensor/ti/tmag5273/tmag5273.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,867
```unknown # TMAG5273 Low-Power Linear 3D Hall-Effect Sensor configuration options config TMAG5273 bool "TMAG5273/TMAG3001 3D Hall-Effect Sensor" default y depends on DT_HAS_TI_TMAG5273_ENABLED select I2C select GPIO imply CRC help Enable driver for TMAG5273 and TMAG3001 I2C-based 3d Hall-Effect sensor. ``...
/content/code_sandbox/drivers/sensor/ti/tmag5273/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
99
```c /* * */ #define DT_DRV_COMPAT ti_tmp108 #include <zephyr/device.h> #include <zephyr/drivers/i2c.h> #include <zephyr/drivers/sensor.h> #include <zephyr/sys/util.h> #include <zephyr/sys/byteorder.h> #include <zephyr/logging/log.h> #include <zephyr/kernel.h> #include "tmp108.h" LOG_MODULE_REGISTER(TMP108, CONFI...
/content/code_sandbox/drivers/sensor/ti/tmp108/tmp108.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,672
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_TMP108_TMP108_H_ #define ZEPHYR_DRIVERS_SENSOR_TMP108_TMP108_H_ #include <stdint.h> #include <zephyr/drivers/i2c.h> #include <zephyr/drivers/sensor.h> #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/sensor/tmp108.h> #define TI_TMP108_REG_TEMP 0x00 ...
/content/code_sandbox/drivers/sensor/ti/tmp108/tmp108.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,536
```c /* * */ #include <zephyr/drivers/sensor.h> #include <zephyr/logging/log.h> #include <zephyr/kernel.h> #include "tmp108.h" #define TMP108_ONE_SHOT_RETRY_TIME_IN_MS 10 LOG_MODULE_DECLARE(TMP108, CONFIG_SENSOR_LOG_LEVEL); void tmp108_trigger_handle_one_shot(struct k_work *work) { struct k_work_delayable *dela...
/content/code_sandbox/drivers/sensor/ti/tmp108/tmp108_trigger.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
612
```unknown # TMP108 temperature sensor configuration options menuconfig TMP108 bool "TMP108 Temperature Sensor" default y depends on DT_HAS_TI_TMP108_ENABLED || DT_HAS_AMS_AS6212_ENABLED select I2C help Enable driver for the TMP108 temperature sensor and/or it's variant the AMS AS621. if TMP108 config T...
/content/code_sandbox/drivers/sensor/ti/tmp108/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
129
```c /* * */ #define DT_DRV_COMPAT ti_ina3221 #include <zephyr/device.h> #include <zephyr/drivers/i2c.h> #include <zephyr/kernel.h> #include <zephyr/drivers/sensor.h> #include <zephyr/logging/log.h> #include <zephyr/pm/device.h> #include <zephyr/sys/byteorder.h> #include "ina3221.h" LOG_MODULE_REGISTER(INA3221, C...
/content/code_sandbox/drivers/sensor/ti/ina3221/ina3221.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,186
```objective-c /* * */ #include <zephyr/types.h> #include <zephyr/drivers/gpio.h> #define INA3221_CONFIG 0x00 #define INA3221_SHUNT_V1 0x01 #define INA3221_BUS_V1 0x02 #define INA3221_SHUNT_V2 0x03 #define INA3221_BUS_V2 0x04 #define INA3221_SHUNT_V3 0x05 #define INA3221_BUS_V3 0x06 #define INA3221_MASK_ENABLE...
/content/code_sandbox/drivers/sensor/ti/ina3221/ina3221.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
749
```unknown # INA3221 Bidirectional Current/Power Monitor config INA3221 bool "INA3221 Triple-Channel Current/Power Monitor" default y depends on DT_HAS_TI_INA3221_ENABLED select I2C help Enable driver for INA3221 Triple-Channel Current/Power Monitor. ```
/content/code_sandbox/drivers/sensor/ti/ina3221/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
67
```c /* * */ #define DT_DRV_COMPAT ti_tmag5273 #include "tmag5273.h" #include <stdint.h> #include <stdlib.h> #include <zephyr/drivers/sensor/tmag5273.h> #include <zephyr/dt-bindings/sensor/tmag5273.h> #include <zephyr/device.h> #include <zephyr/kernel.h> #include <zephyr/drivers/gpio.h> #include <zephyr/drivers...
/content/code_sandbox/drivers/sensor/ti/tmag5273/tmag5273.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
10,315
```c /* * */ #define DT_DRV_COMPAT ti_hdc #include <zephyr/device.h> #include <zephyr/drivers/i2c.h> #include <zephyr/drivers/gpio.h> #include <zephyr/kernel.h> #include <zephyr/drivers/sensor.h> #include <zephyr/sys/util.h> #include <zephyr/sys/__assert.h> #include <zephyr/logging/log.h> #include "ti_hdc.h" LOG_...
/content/code_sandbox/drivers/sensor/ti/ti_hdc/ti_hdc.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,463
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_TI_HDC_TI_HDC_H_ #define ZEPHYR_DRIVERS_SENSOR_TI_HDC_TI_HDC_H_ #include <zephyr/kernel.h> #define TI_HDC_REG_TEMP 0x0 #define TI_HDC_REG_HUMIDITY 0x1 #define TI_HDC_REG_MANUFID 0xFE #define TI_HDC_REG_DEVICEID 0xFF #define TI_HDC_MANUFID 0x5449 #define TI_HDC1...
/content/code_sandbox/drivers/sensor/ti/ti_hdc/ti_hdc.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
226
```unknown # TI_HDC temperature and humidity sensor configuration options config TI_HDC bool "Texas Instruments Temperature and Humidity Sensor (e.g. HDC1008)" default y depends on DT_HAS_TI_HDC_ENABLED select I2C help Enable driver for TI temperature and humidity sensors. ```
/content/code_sandbox/drivers/sensor/ti/ti_hdc/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
64
```unknown # TI_HDC20XX temperature and humidity sensor configuration options config TI_HDC20XX bool "Texas Instruments HDC20XX Temperature and Humidity Sensor" default y depends on DT_HAS_TI_HDC2010_ENABLED || DT_HAS_TI_HDC2021_ENABLED || \ DT_HAS_TI_HDC2022_ENABLED || DT_HAS_TI_HDC2080_ENABLED select I2C ...
/content/code_sandbox/drivers/sensor/ti/ti_hdc20xx/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
119
```c /* * * * Datasheet: * path_to_url * */ #define DT_DRV_COMPAT festo_veaa_x_3 #include <stdio.h> #include <zephyr/device.h> #include <zephyr/drivers/adc.h> #include <zephyr/drivers/dac.h> #include <zephyr/drivers/sensor.h> #include <zephyr/drivers/sensor/veaa_x_3.h> #include <zephyr/logging/log.h> #include ...
/content/code_sandbox/drivers/sensor/veaa_x_3/veaa_x_3.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,764
```unknown # VEAA-X-3 configuration options config VEAA_X_3 bool "VEAA-X-3 pressure driver" default y depends on DT_HAS_FESTO_VEAA_X_3_ENABLED depends on ADC depends on DAC help Enable driver for Festo VEAA-X-3. The driver assumes that the maximum ADC value matches the maximum output from the device, ...
/content/code_sandbox/drivers/sensor/veaa_x_3/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
121
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/i2c.h> #include <zephyr/drivers/sensor.h> #include <zephyr/sys/byteorder.h> #include <zephyr/sys/__assert.h> #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(TI_HDC20XX, CONFIG_SENSOR_LOG_LEVEL); /* Register addres...
/content/code_sandbox/drivers/sensor/ti/ti_hdc20xx/ti_hdc20xx.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,538
```unknown # zephyr-keep-sorted-start source "drivers/sensor/wsen/wsen_hids/Kconfig" source "drivers/sensor/wsen/wsen_itds/Kconfig" source "drivers/sensor/wsen/wsen_pads/Kconfig" source "drivers/sensor/wsen/wsen_pdus/Kconfig" source "drivers/sensor/wsen/wsen_tids/Kconfig" # zephyr-keep-sorted-stop ```
/content/code_sandbox/drivers/sensor/wsen/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
92
```c /* * */ #define DT_DRV_COMPAT we_wsen_hids #include <zephyr/logging/log.h> #include "wsen_hids.h" LOG_MODULE_DECLARE(WSEN_HIDS, CONFIG_SENSOR_LOG_LEVEL); static inline void hids_setup_drdy_interrupt(const struct device *dev, bool enable) { const struct hids_config *cfg = dev->config; unsigned int flags = ...
/content/code_sandbox/drivers/sensor/wsen/wsen_hids/wsen_hids_trigger.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,139
```unknown menuconfig WSEN_HIDS bool "WSEN-HIDS humidity and temperature sensor" default y depends on DT_HAS_WE_WSEN_HIDS_ENABLED select I2C if $(dt_compat_on_bus,$(DT_COMPAT_WE_WSEN_HIDS),i2c) select SPI if $(dt_compat_on_bus,$(DT_COMPAT_WE_WSEN_HIDS),spi) select HAS_WESENSORS help Enable driver for the WSE...
/content/code_sandbox/drivers/sensor/wsen/wsen_hids/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
338
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_WSEN_HIDS_WSEN_HIDS_H_ #define ZEPHYR_DRIVERS_SENSOR_WSEN_HIDS_WSEN_HIDS_H_ #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/sensor.h> #include <weplatform.h> #include "WSEN_HIDS_2523020210001.h" #if DT_ANY_INST_ON_BUS_STATUS_OKAY(spi) #include <zephy...
/content/code_sandbox/drivers/sensor/wsen/wsen_hids/wsen_hids.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
512
```c /* * */ #define DT_DRV_COMPAT we_wsen_hids #include <string.h> #include <zephyr/sys/__assert.h> #include <zephyr/sys/byteorder.h> #include <zephyr/logging/log.h> #include "wsen_hids.h" LOG_MODULE_REGISTER(WSEN_HIDS, CONFIG_SENSOR_LOG_LEVEL); /* * List of supported output data rates (sensor_value struct, i...
/content/code_sandbox/drivers/sensor/wsen/wsen_hids/wsen_hids.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,129
```c /* * */ #define DT_DRV_COMPAT we_wsen_tids #include <stdlib.h> #include <zephyr/sys/__assert.h> #include <zephyr/sys/byteorder.h> #include <zephyr/logging/log.h> #include "wsen_tids.h" LOG_MODULE_REGISTER(WSEN_TIDS, CONFIG_SENSOR_LOG_LEVEL); /* * List of supported output data rates. Index into this list i...
/content/code_sandbox/drivers/sensor/wsen/wsen_tids/wsen_tids.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,608
```unknown menuconfig WSEN_TIDS bool "WSEN-TIDS temperature sensor" default y depends on DT_HAS_WE_WSEN_TIDS_ENABLED select I2C if $(dt_compat_on_bus,$(DT_COMPAT_WE_WSEN_TIDS),i2c) select HAS_WESENSORS help Enable driver for the WSEN-TIDS I2C-based temperature sensor. if WSEN_TIDS choice WSEN_TIDS_TRIGGER_M...
/content/code_sandbox/drivers/sensor/wsen/wsen_tids/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
308
```c /* * */ #define DT_DRV_COMPAT we_wsen_tids #include <stdlib.h> #include <zephyr/logging/log.h> #include "wsen_tids.h" LOG_MODULE_DECLARE(WSEN_TIDS, CONFIG_SENSOR_LOG_LEVEL); #define THRESHOLD_TEMPERATURE2REGISTER_OFFSET (double)63. #define THRESHOLD_TEMPERATURE2REGISTER_STEP (double)0.64 /* Enable/disab...
/content/code_sandbox/drivers/sensor/wsen/wsen_tids/wsen_tids_trigger.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,678
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_WSEN_TIDS_WSEN_TIDS_H_ #define ZEPHYR_DRIVERS_SENSOR_WSEN_TIDS_WSEN_TIDS_H_ #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/sensor.h> #include <weplatform.h> #include "WSEN_TIDS_2521020222501.h" #include <zephyr/drivers/i2c.h> struct tids_data { /*...
/content/code_sandbox/drivers/sensor/wsen/wsen_tids/wsen_tids.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
433
```c /* * */ #define DT_DRV_COMPAT we_wsen_pads #include <zephyr/logging/log.h> #include "wsen_pads.h" LOG_MODULE_DECLARE(WSEN_PADS, CONFIG_SENSOR_LOG_LEVEL); /* Enable/disable data-ready interrupt handling */ static inline int pads_setup_drdy_interrupt(const struct device *dev, bool enable) { const struct pads...
/content/code_sandbox/drivers/sensor/wsen/wsen_pads/wsen_pads_trigger.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,271
```c /* * */ #define DT_DRV_COMPAT we_wsen_pads #include <string.h> #include <zephyr/sys/__assert.h> #include <zephyr/sys/byteorder.h> #include <zephyr/logging/log.h> #include "wsen_pads.h" LOG_MODULE_REGISTER(WSEN_PADS, CONFIG_SENSOR_LOG_LEVEL); /* * List of supported output data rates. Index into this list i...
/content/code_sandbox/drivers/sensor/wsen/wsen_pads/wsen_pads.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,994
```unknown menuconfig WSEN_PADS bool "WSEN-PADS absolute pressure and temperature sensor" default y depends on DT_HAS_WE_WSEN_PADS_ENABLED select I2C if $(dt_compat_on_bus,$(DT_COMPAT_WE_WSEN_PADS),i2c) select SPI if $(dt_compat_on_bus,$(DT_COMPAT_WE_WSEN_PADS),spi) select HAS_WESENSORS help Enable driver fo...
/content/code_sandbox/drivers/sensor/wsen/wsen_pads/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
340
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_WSEN_PADS_WSEN_PADS_H_ #define ZEPHYR_DRIVERS_SENSOR_WSEN_PADS_WSEN_PADS_H_ #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/sensor.h> #include <weplatform.h> #include "WSEN_PADS_2511020213301.h" #if DT_ANY_INST_ON_BUS_STATUS_OKAY(spi) #include <zephy...
/content/code_sandbox/drivers/sensor/wsen/wsen_pads/wsen_pads.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
509
```objective-c /* Wrth Elektronic WSEN-ITDS 3-axis Accel sensor driver * * */ #ifndef ZEPHYR_DRIVERS_SENSOR_ITDS_H_ #define ZEPHYR_DRIVERS_SENSOR_ITDS_H_ #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/i2c.h> #include <zephyr/sys/util.h> /* registers */ #define ITDS_REG_TEMP_L 0x0d #define ITDS_REG_DE...
/content/code_sandbox/drivers/sensor/wsen/wsen_itds/itds.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
969
```c /* * * Wrth Elektronic WSEN-ITDS 3-axis accel sensor driver * * Author: Saravanan Sekar <saravanan@linumiz.com> */ #include <zephyr/kernel.h> #include <zephyr/drivers/sensor.h> #include <zephyr/drivers/gpio.h> #include <zephyr/logging/log.h> #include "itds.h" LOG_MODULE_DECLARE(ITDS, CONFIG_SENSOR_LOG_LEVEL...
/content/code_sandbox/drivers/sensor/wsen/wsen_itds/itds_trigger.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
878
```unknown # config ITDS bool "WSEN-ITDS 3-axis accel sensor" default y depends on DT_HAS_WE_WSEN_ITDS_ENABLED select I2C help Enable Wurth Elektronik WSEN-ITDS 3-axis acceleration sensor provides acceleration and die temperature measurement. if ITDS config ITDS_TRIGGER bool "Trigger mode" help Set t...
/content/code_sandbox/drivers/sensor/wsen/wsen_itds/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
110
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_WSEN_PDUS_WSEN_PDUS_H_ #define ZEPHYR_DRIVERS_SENSOR_WSEN_PDUS_WSEN_PDUS_H_ #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/sensor.h> #include <weplatform.h> #include "WSEN_PDUS_25131308XXX01.h" #if DT_ANY_INST_ON_BUS_STATUS_OKAY(i2c) #include <zephy...
/content/code_sandbox/drivers/sensor/wsen/wsen_pdus/wsen_pdus.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
244
```c /* * * Wrth Elektronic WSEN-ITDS 3-axis accel sensor driver * * Author: Saravanan Sekar <saravanan@linumiz.com> */ #include <zephyr/init.h> #include <zephyr/drivers/sensor.h> #include <zephyr/sys/byteorder.h> #include <zephyr/kernel.h> #include <zephyr/sys/__assert.h> #include <zephyr/logging/log.h> #include...
/content/code_sandbox/drivers/sensor/wsen/wsen_itds/itds.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,968
```unknown config WSEN_PDUS bool "WSEN-PDUS differential pressure sensor" default y depends on DT_HAS_WE_WSEN_PDUS_ENABLED select I2C if $(dt_compat_on_bus,$(DT_COMPAT_WE_WSEN_PDUS),i2c) select HAS_WESENSORS help Enable driver for the WSEN-PDUS I2C-based differential pressure sensor. ```
/content/code_sandbox/drivers/sensor/wsen/wsen_pdus/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
84