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 |
|---|---|---|---|---|---|---|---|---|
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_ICM42670_H_
#define ZEPHYR_DRIVERS_SENSOR_ICM42670_H_
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/kernel.h>
#define ICM42670_BUS_SPI DT_HAS_COMPAT_ON_BUS_STA... | /content/code_sandbox/drivers/sensor/tdk/icm42670/icm42670.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 657 |
```c
/*
*
*/
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/sys/util.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include "amg88xx.h"
extern struct amg88xx_data amg88xx_driver;
#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(AMG8... | /content/code_sandbox/drivers/sensor/amg88xx/amg88xx_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,514 |
```c
/*
*
*/
#define DT_DRV_COMPAT invensense_icp10125
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/byteorder.h>
#ifdef CONFIG_ICP10125_CHECK_CRC
#include <zephyr/sys/crc.h>
#endif /* CONFIG_ICP10125_CHECK_CRC */
LOG_MODULE_REGISTER(ICP101... | /content/code_sandbox/drivers/sensor/tdk/icp10125/icp10125.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,938 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_AMG88XX_AMG88XX_H_
#define ZEPHYR_DRIVERS_SENSOR_AMG88XX_AMG88XX_H_
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/sys/util.h>
#define AMG88XX_PCLT 0x00 /* Setting Power control register */
#define AMG88XX_RST 0x01 /* Reset regist... | /content/code_sandbox/drivers/sensor/amg88xx/amg88xx.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,152 |
```unknown
# AMG88XX infrared thermopile sensor configuration options
menuconfig AMG88XX
bool "AMG88XX Infrared Thermopile Sensor"
default y
depends on DT_HAS_PANASONIC_AMG88XX_ENABLED
select I2C
help
Enable driver for AMG88XX infrared thermopile sensor.
if AMG88XX
choice
prompt "Trigger mode"
default AMG... | /content/code_sandbox/drivers/sensor/amg88xx/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 285 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_SB_TSI_SB_TSI_H_
#define ZEPHYR_DRIVERS_SENSOR_SB_TSI_SB_TSI_H_
#define SB_TSI_TEMP_INT 0x01
#define SB_TSI_TEMP_DEC 0x10
#define SB_TSI_TEMP_DEC_SHIFT 5
#define SB_TSI_TEMP_DEC_SCALE 8
#endif
``` | /content/code_sandbox/drivers/sensor/amd_sb_tsi/sb_tsi.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 80 |
```c
/*
*
*/
#define DT_DRV_COMPAT panasonic_amg88xx
#include <string.h>
#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/__ass... | /content/code_sandbox/drivers/sensor/amg88xx/amg88xx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,138 |
```unknown
# SB-TSI configuration options
config AMD_SB_TSI
bool "AMD SB Temperature Sensor Interface"
default y
depends on DT_HAS_AMD_SB_TSI_ENABLED
select I2C
help
Enable the driver for SB Temperature Sensor Interface. This
is an I2C temperature sensor on AMD SoCs.
config EMUL_AMD_SB_TSI
bool "Emulator... | /content/code_sandbox/drivers/sensor/amd_sb_tsi/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 117 |
```c
/*
*
*/
#define DT_DRV_COMPAT amd_sb_tsi
#include <zephyr/device.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/pm/device.h>
#include <zephyr/pm/device_runtime.h>
#include <zephyr/logging/log.h>
#include "sb_tsi.h"
LOG_MODULE_REGISTER(AMD_SB_TSI, CONFIG_SENSOR_LOG_LEVEL... | /content/code_sandbox/drivers/sensor/amd_sb_tsi/sb_tsi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 842 |
```unknown
# zephyr-keep-sorted-start
source "drivers/sensor/nxp/fxas21002/Kconfig"
source "drivers/sensor/nxp/fxls8974/Kconfig"
source "drivers/sensor/nxp/fxos8700/Kconfig"
source "drivers/sensor/nxp/mcux_acmp/Kconfig"
source "drivers/sensor/nxp/mcux_lpcmp/Kconfig"
source "drivers/sensor/nxp/nxp_kinetis_temp/Kconfig"... | /content/code_sandbox/drivers/sensor/nxp/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 157 |
```c
/*
*/
#define DT_DRV_COMPAT amd_sb_tsi
#include <zephyr/device.h>
#include <zephyr/drivers/emul.h>
#include <zephyr/drivers/emul_sensor.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/i2c_emul.h>
#include <zephyr/logging/log.h>
#include "sb_tsi.h"
LOG_MODULE_DECLARE(AMD_SB_TSI, CONFIG_SENSOR_LOG_LE... | /content/code_sandbox/drivers/sensor/amd_sb_tsi/sb_tsi_emul.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,204 |
```objective-c
/*
*
*/
#include <zephyr/drivers/sensor.h>
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(spi)
#include <zephyr/drivers/spi.h>
#endif
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(i2c)
#include <zephyr/drivers/i2c.h>
#endif
#include <zephyr/drivers/gpio.h>
#include <zephyr/kernel.h>
#define FXOS8700_BUS_I2C (1<<0)
#defi... | /content/code_sandbox/drivers/sensor/nxp/fxos8700/fxos8700.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,484 |
```unknown
# FXOS8700 6-axis accelerometer/magnetometer
menuconfig FXOS8700
bool "FXOS8700 accelerometer/magnetometer driver"
default y
depends on DT_HAS_NXP_FXOS8700_ENABLED
select I2C if $(dt_compat_on_bus,$(DT_COMPAT_NXP_FXOS8700),i2c)
select SPI if $(dt_compat_on_bus,$(DT_COMPAT_NXP_FXOS8700),spi)
help
E... | /content/code_sandbox/drivers/sensor/nxp/fxos8700/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 797 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_fxos8700
#include "fxos8700.h"
#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(FXOS8700, CONFIG_SENSOR_LOG_LEVEL);
static void fxos8700_gpio_callback(const struct device *dev,
struct gpio_callback *cb,
uint32_t pin_mask)
{
struct fxos8700_data *data =
CON... | /content/code_sandbox/drivers/sensor/nxp/fxos8700/fxos8700_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,279 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_kinetis_acmp
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/sensor/mcux_acmp.h>
#include <zephyr/logging/log.h>
#include <zephyr/kernel.h>
#include <fsl_acmp.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/irq.h>
LOG_MODULE_REGI... | /content/code_sandbox/drivers/sensor/nxp/mcux_acmp/mcux_acmp.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,641 |
```unknown
# NXP MCUX analog comparator (ACMP) configuration options
config MCUX_ACMP
bool "NXP MCUX Analog Comparator (ACMP)"
default y
depends on DT_HAS_NXP_KINETIS_ACMP_ENABLED
select PINCTRL
help
Enable driver for the NXP MCUX Analog Comparator (ACMP).
config MCUX_ACMP_TRIGGER
bool "Trigger support"
de... | /content/code_sandbox/drivers/sensor/nxp/mcux_acmp/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 111 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_fxos8700
#include "fxos8700.h"
#include <zephyr/sys/util.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/logging/log.h>
#include <stdlib.h>
LOG_MODULE_REGISTER(FXOS8700, CONFIG_SENSOR_LOG_LEVEL);
/* Convert the range (8g, 4g, 2g) to the encoded FS register field value *... | /content/code_sandbox/drivers/sensor/nxp/fxos8700/fxos8700.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6,797 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_fxas21002
#include "fxas21002.h"
#include <zephyr/sys/util.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(FXAS21002, CONFIG_SENSOR_LOG_LEVEL);
/* Sample period in microseconds, indexed by output data rate encoding (DR) */
static const... | /content/code_sandbox/drivers/sensor/nxp/fxas21002/fxas21002.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,819 |
```unknown
# FXAS21002 3-axis gyroscope
menuconfig FXAS21002
bool "FXAS21002 gyroscope driver"
default y
depends on DT_HAS_NXP_FXAS21002_ENABLED
select I2C if $(dt_compat_on_bus,$(DT_COMPAT_NXP_FXAS21002),i2c)
select SPI if $(dt_compat_on_bus,$(DT_COMPAT_NXP_FXAS21002),spi)
help
Enable driver for the FXAS210... | /content/code_sandbox/drivers/sensor/nxp/fxas21002/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 612 |
```objective-c
/*
*
*/
#include <zephyr/drivers/sensor.h>
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(i2c)
#include <zephyr/drivers/i2c.h>
#endif
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(spi)
#include <zephyr/drivers/spi.h>
#endif
#include <zephyr/drivers/gpio.h>
#include <zephyr/kernel.h>
#define FXAS21002_BUS_I2C (1<<0)
#defin... | /content/code_sandbox/drivers/sensor/nxp/fxas21002/fxas21002.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,345 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_tempmon
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/sensor.h>
/* OTP Controller Analog Register 1 for calibration values */
#define OCOTP_ANA1_ROOM_COUNT_SHIFT 20
#define OCOTP_ANA1_ROOM_COUNT_MASK (BIT_MASK(12) << OCOTP_ANA1_ROOM_COUNT... | /content/code_sandbox/drivers/sensor/nxp/nxp_tempmon/nxp_tempmon.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 950 |
```unknown
# NXP temperature monitor (TEMPMON)
config NXP_TEMPMON
bool "NXP temperature monitor (TEMPMON)"
default y
depends on DT_HAS_NXP_TEMPMON_ENABLED
help
Enable driver for the NXP temperature monitor (TEMPMON).
This is used to retrieve on-die operational temperature.
``` | /content/code_sandbox/drivers/sensor/nxp/nxp_tempmon/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 69 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_fxas21002
#include <zephyr/logging/log.h>
#include "fxas21002.h"
LOG_MODULE_DECLARE(FXAS21002, CONFIG_SENSOR_LOG_LEVEL);
static void fxas21002_gpio_callback(const struct device *dev,
struct gpio_callback *cb,
uint32_t pin_mask)
{
struct fxas21002_data *data... | /content/code_sandbox/drivers/sensor/nxp/fxas21002/fxas21002_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,500 |
```unknown
# NXP Kinetis temperature sensor configuration options
config TEMP_KINETIS
bool "NXP Kinetis Temperature Sensor"
default y
depends on DT_HAS_NXP_KINETIS_TEMPERATURE_ENABLED
depends on SOC_FAMILY_KINETIS
select ADC
help
Enable driver for NXP Kinetis temperature sensor.
if TEMP_KINETIS
config TEMP... | /content/code_sandbox/drivers/sensor/nxp/nxp_kinetis_temp/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 230 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_kinetis_temperature
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/adc.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(temp_kinetis, CONFIG_SENSOR_LOG_LEVEL);
/*
* Driver assumptions:
* - ADC samples are in uint16_t format
* ... | /content/code_sandbox/drivers/sensor/nxp/nxp_kinetis_temp/temp_kinetis.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,809 |
```unknown
# NXP MCUX low power comparator (LPCMP) configuration options
config MCUX_LPCMP
bool "NXP LPCMP driver"
default y
depends on DT_HAS_NXP_LPCMP_ENABLED
select PINCTRL
help
Enable the MCUX LPCMP driver.
config MCUX_LPCMP_TRIGGER
bool "Trigger support"
depends on MCUX_LPCMP
help
Enable trigger s... | /content/code_sandbox/drivers/sensor/nxp/mcux_lpcmp/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 97 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_lpcmp
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/logging/log.h>
#include <zephyr/kernel.h>
#include <fsl_lpcmp.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/irq.h>
#include <zephyr/drivers/sensor/mcux_lpcmp.h>
#include <fsl_lpcmp.h... | /content/code_sandbox/drivers/sensor/nxp/mcux_lpcmp/mcux_lpcmp.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,207 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_fxls8974
#include "fxls8974.h"
#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(FXLS8974, CONFIG_SENSOR_LOG_LEVEL);
static void fxls8974_gpio_callback(const struct device *dev,
struct gpio_callback *cb,
uint32_t pin_mask)
{
struct fxls8974_data *data =
CON... | /content/code_sandbox/drivers/sensor/nxp/fxls8974/fxls8974_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,146 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_fxls8974
#include "fxls8974.h"
#include <zephyr/sys/util.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/logging/log.h>
#include <stdlib.h>
LOG_MODULE_REGISTER(FXLS8974, CONFIG_SENSOR_LOG_LEVEL);
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(spi)
#define DIR_READ(a) ((a) & 0x7f)
... | /content/code_sandbox/drivers/sensor/nxp/fxls8974/fxls8974.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,396 |
```objective-c
/*
*
*/
#include <zephyr/drivers/sensor.h>
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(spi)
#include <zephyr/drivers/spi.h>
#endif
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(i2c)
#include <zephyr/drivers/i2c.h>
#endif
#include <zephyr/drivers/gpio.h>
#include <zephyr/kernel.h>
#define FXLS8974_BUS_I2C (1<<0)
#def... | /content/code_sandbox/drivers/sensor/nxp/fxls8974/fxls8974.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,806 |
```unknown
# FXLS8974 3-axis accelerometer
menuconfig FXLS8974
bool "FXLS8974 accelerometer driver"
default y
depends on DT_HAS_NXP_FXLS8974_ENABLED
select I2C if $(dt_compat_on_bus,$(DT_COMPAT_NXP_FXLS8974),i2c)
select SPI if $(dt_compat_on_bus,$(DT_COMPAT_NXP_FXLS8974),spi)
help
Enable driver for the FXLS8... | /content/code_sandbox/drivers/sensor/nxp/fxls8974/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 337 |
```unknown
config QDEC_NXP_S32
bool "NXP Quad Decoder S32 drivers"
default y
depends on DT_HAS_NXP_QDEC_S32_ENABLED
select NXP_S32_EMIOS
help
Enable drivers for NXP S32 QUADRATURE DECODER
``` | /content/code_sandbox/drivers/sensor/nxp/qdec_nxp_s32/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 62 |
```c
/*
*/
#define DT_DRV_COMPAT nxp_mcux_qdec
#include <errno.h>
#include <stdint.h>
#include <fsl_enc.h>
#include <fsl_xbara.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/sensor/qdec_mcux.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/logging/log.h>
LOG_... | /content/code_sandbox/drivers/sensor/nxp/qdec_mcux/qdec_mcux.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,808 |
```unknown
config QDEC_MCUX
bool "NXP QDEC MCUX driver"
default y
depends on DT_HAS_NXP_MCUX_QDEC_ENABLED
select MCUX_XBARA
select PINCTRL
help
Enable support for NXP MCUX Quadrature Encoder driver.
``` | /content/code_sandbox/drivers/sensor/nxp/qdec_mcux/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 60 |
```c
/*
*
*/
#include <errno.h>
#include <stdint.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/logging/log.h>
#include <zephyr/arch/arch_interface.h>
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
#define EMIOS_CHANNEL_COUNT 2U
#define EMIOS_CW_CH_IDX 0
#d... | /content/code_sandbox/drivers/sensor/nxp/qdec_nxp_s32/qdec_nxp_s32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,768 |
```c
/* sensor_isl29035.c - trigger support for ISL29035 light sensor */
/*
*
*/
#define DT_DRV_COMPAT isil_isl29035
#include <zephyr/drivers/i2c.h>
#include <zephyr/sys/util.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include "isl29035.h"
extern struct isl29035_driver_data isl29035_data;
LOG_... | /content/code_sandbox/drivers/sensor/isl29035/isl29035_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,509 |
```c
/* sensor_isl29035.c - driver for ISL29035 light sensor */
/*
*
*/
#define DT_DRV_COMPAT isil_isl29035
#include <zephyr/kernel.h>
#include <zephyr/init.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/logging/log.h>
#include "isl29035.h"
... | /content/code_sandbox/drivers/sensor/isl29035/isl29035.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,263 |
```unknown
# ISL29035 light sensor configuration options
menuconfig ISL29035
bool "ISL29035 light sensor"
default y
depends on DT_HAS_ISIL_ISL29035_ENABLED
select I2C
help
Enable driver for the ISL29035 light sensor.
if ISL29035
config ISL29035_THREAD_PRIORITY
int "Thread priority"
default 10
help
Pri... | /content/code_sandbox/drivers/sensor/isl29035/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 792 |
```objective-c
/* sensor_isl29035.h - header file for ISL29035 light sensor driver */
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_ISL29035_ISL29035_H_
#define ZEPHYR_DRIVERS_SENSOR_ISL29035_ISL29035_H_
#include <zephyr/device.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/i2c.h... | /content/code_sandbox/drivers/sensor/isl29035/isl29035.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,495 |
```unknown
# Raspberry Pi Pico temperature sensor configuration options
config RPI_PICO_TEMP
bool "Raspberry Pi Pico CPU Temperature Sensor"
default y
depends on DT_HAS_RASPBERRYPI_PICO_TEMP_ENABLED
select ADC
help
Enable driver for Raspberry Pi Pico CPU temperature sensor.
``` | /content/code_sandbox/drivers/sensor/rpi_pico_temp/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 64 |
```unknown
# zephyr-keep-sorted-start
source "drivers/sensor/vishay/vcnl36825t/Kconfig"
source "drivers/sensor/vishay/vcnl4040/Kconfig"
source "drivers/sensor/vishay/veml7700/Kconfig"
# zephyr-keep-sorted-stop
``` | /content/code_sandbox/drivers/sensor/vishay/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 71 |
```c
/*
*
*/
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/adc.h>
#include <zephyr/logging/log.h>
#include <hardware/adc.h>
LOG_MODULE_REGISTER(rpi_pico_temp, CONFIG_SENSOR_LOG_LEVEL);
#define DT_DRV_COMPAT raspberrypi_pico_temp
struct rpi_p... | /content/code_sandbox/drivers/sensor/rpi_pico_temp/rpi_pico_temp.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,033 |
```unknown
# Vishay VEML7700 ambient light sensor driver options.
config VEML7700
bool "Vishay VEML7700 ambient light sensor"
default y
depends on DT_HAS_VISHAY_VEML7700_ENABLED
select I2C
help
Enable Vishay VEML7700 ambient light sensor driver.
``` | /content/code_sandbox/drivers/sensor/vishay/veml7700/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 71 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_VCNL4040_VCNL4040_H_
#define ZEPHYR_DRIVERS_SENSOR_VCNL4040_VCNL4040_H_
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/kernel.h>
/* Registers all 16 bits */
#define VCNL4040_REG_ALS_CONF 0x00... | /content/code_sandbox/drivers/sensor/vishay/vcnl4040/vcnl4040.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,376 |
```c
/*
*
*/
#define DT_DRV_COMPAT vishay_vcnl4040
#include "vcnl4040.h"
#include <zephyr/pm/device.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/util.h>
#include <zephyr/logging/log.h>
#include <stdlib.h>
LOG_MODULE_REGISTER(vcnl4040, CONFIG_SENSOR_LOG_LEVEL);
int vcn... | /content/code_sandbox/drivers/sensor/vishay/vcnl4040/vcnl4040.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,414 |
```unknown
# VCNL4040 Proximity and Ambient Light Sensor configuration options
menuconfig VCNL4040
bool "VCNL4040 Proximity and Ambient Light Sensor"
default y
depends on DT_HAS_VISHAY_VCNL4040_ENABLED
select I2C
help
Enable driver for VCNL4040 sensors.
if VCNL4040
config VCNL4040_ENABLE_ALS
bool "Ambient ... | /content/code_sandbox/drivers/sensor/vishay/vcnl4040/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 333 |
```c
/*
*
*/
#define DT_DRV_COMPAT vishay_veml7700
#include <zephyr/device.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/pm/device.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/drivers/sensor/veml7700.h>
LO... | /content/code_sandbox/drivers/sensor/vishay/veml7700/veml7700.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,110 |
```c
/*
*
*/
#include "vcnl4040.h"
#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(vcnl4040, CONFIG_SENSOR_LOG_LEVEL);
static void vcnl4040_handle_cb(struct vcnl4040_data *data)
{
const struct vcnl4040_config *config = data->dev->config;
gpio_pin_interrupt_configure_dt(&config->int_gpio, GPIO_INT_DISABLE);
... | /content/code_sandbox/drivers/sensor/vishay/vcnl4040/vcnl4040_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,081 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_VCNL36825T_VCNL36825T_H_
#define ZEPHYR_DRIVERS_SENSOR_VCNL36825T_VCNL36825T_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>
#define VCNL36825T_REG_PS_... | /content/code_sandbox/drivers/sensor/vishay/vcnl36825t/vcnl36825t.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,008 |
```unknown
# VCNL36825T Proximity Sensor configuration options
config VCNL36825T
bool "VCNL36825T Proximity Sensor"
default y
depends on DT_HAS_VISHAY_VCNL36825T_ENABLED
select I2C
help
Enable driver for VCNL36825T sensors.
``` | /content/code_sandbox/drivers/sensor/vishay/vcnl36825t/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 71 |
```unknown
# F75303 temperature sensor configuration options
config F75303
bool "F75303 Temperature Sensor"
default y
depends on DT_HAS_FINTEK_F75303_ENABLED
select I2C
help
Enable the driver for Fintek F75303 Temperature Sensor.
This device has three temperature channels - one local (on-chip),
and two ... | /content/code_sandbox/drivers/sensor/f75303/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 126 |
```c
/*
*
*/
#define DT_DRV_COMPAT vishay_vcnl36825t
#include "vcnl36825t.h"
#include <stdlib.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/logging/log.h>
#include <zephyr/pm/device.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/util.h>
LOG_MODULE_REGISTER(VCNL36825T, CONFIG_SENSOR_LOG_LEVEL);
... | /content/code_sandbox/drivers/sensor/vishay/vcnl36825t/vcnl36825t.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,473 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_F75303_F75303_H_
#define ZEPHYR_DRIVERS_SENSOR_F75303_F75303_H_
#include <zephyr/device.h>
#include <zephyr/sys/util.h>
#define F75303_LOCAL_TEMP_H 0x00
#define F75303_REMOTE1_TEMP_H 0x01
#define F75303_REMOTE1_TEMP_L 0x10
#define F75303_REMOTE2_TEMP_H 0x23
#def... | /content/code_sandbox/drivers/sensor/f75303/f75303.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 175 |
```c
/*
*/
#define DT_DRV_COMPAT fintek_f75303
#include <zephyr/device.h>
#include <zephyr/drivers/emul.h>
#include <zephyr/drivers/emul_sensor.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/i2c_emul.h>
#include <zephyr/logging/log.h>
#include <zephyr/drivers/sensor/f75303.h>
#include "f75303.h"
LOG_MO... | /content/code_sandbox/drivers/sensor/f75303/f75303_emul.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,386 |
```unknown
# zephyr-keep-sorted-start
source "drivers/sensor/aosong/ags10/Kconfig"
source "drivers/sensor/aosong/dht/Kconfig"
source "drivers/sensor/aosong/dht20/Kconfig"
# zephyr-keep-sorted-stop
``` | /content/code_sandbox/drivers/sensor/aosong/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 63 |
```c
/*
*
*/
#define DT_DRV_COMPAT fintek_f75303
#include <zephyr/device.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/pm/device.h>
#include <zephyr/pm/device_runtime.h>
#include <zephyr/logging/log.h>
#include <zephyr/drivers/sensor/f75303.h>
#include "f75303.h"
#define F7... | /content/code_sandbox/drivers/sensor/f75303/f75303.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,313 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_DHT_DHT_H_
#define ZEPHYR_DRIVERS_SENSOR_DHT_DHT_H_
#include <zephyr/device.h>
#define DHT_START_SIGNAL_DURATION 18000
#define DHT_SIGNAL_MAX_WAIT_DURATION 100
#define DHT_DATA_BITS_NUM 40
struct dht_data {
uint8_t sample[4];
};
struct dht_config {
struc... | /content/code_sandbox/drivers/sensor/aosong/dht/dht.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 100 |
```unknown
# DHT Temperature and Humidity Sensor configuration options
menuconfig DHT
bool "DHT Temperature and Humidity Sensor"
default y
depends on DT_HAS_AOSONG_DHT_ENABLED
depends on GPIO
help
Enable driver for the DHT temperature and humidity sensor family.
if DHT
config DHT_LOCK_IRQS
bool "Lock IRQs ... | /content/code_sandbox/drivers/sensor/aosong/dht/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 143 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_AGS10_H_
#define ZEPHYR_INCLUDE_DRIVERS_SENSOR_AGS10_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <zephyr/device.h>
#include <zephyr/drivers/i2c.h>
#define AGS10_CMD_DATA_ACQUISITION 0x00
#define AGS10_CMD_ZERO_POINT_CALIBRATION 0x01
#define... | /content/code_sandbox/drivers/sensor/aosong/ags10/ags10.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 328 |
```c
/*
*
*/
#define DT_DRV_COMPAT aosong_dht
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/util.h>
#include <zephyr/drivers/sensor.h>
#include <string.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include "dht.h"
LOG_MODULE_REG... | /content/code_sandbox/drivers/sensor/aosong/dht/dht.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,925 |
```unknown
# AOSONG AGS10 TVOC sensor driver options.
config AGS10
bool "AOSONG AGS10 TVOC sensor"
default y
depends on DT_HAS_AOSONG_AGS10_ENABLED
select I2C
help
Enable AOSONG AGS10 TVOC sensor driver.
``` | /content/code_sandbox/drivers/sensor/aosong/ags10/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 69 |
```c
/*
*
*/
#define DT_DRV_COMPAT aosong_ags10
#include <zephyr/drivers/sensor.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/crc.h>
#include "ags10.h"
LOG_MODULE_REGISTER(AGS10, CONFIG_SENSOR_LOG_LEVEL);
#define AGS10_MAX_PAYLOAD_SIZE 5U /* ... | /content/code_sandbox/drivers/sensor/aosong/ags10/ags10.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,009 |
```unknown
# AOSONG DHT20 temperature and humidity sensor configuration options
# This driver can also be used for AHT20 or AM2301B which seem to be the same sensor
config DHT20
bool "DHT20 / AHT20 / AM2301B Temperature and Humidity Sensor"
default y
depends on DT_HAS_AOSONG_DHT20_ENABLED \
|| DT_HAS_AOSONG_AHT2... | /content/code_sandbox/drivers/sensor/aosong/dht20/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 178 |
```c
/*
*
*/
#include <zephyr/device.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/kernel.h>
#if defined(CONFIG_DHT20_CRC)
#include <zephyr/sys/crc.h>
#endif
#include <zephyr/drivers/sensor.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/byteorder.h>
#define DHT20_STATU... | /content/code_sandbox/drivers/sensor/aosong/dht20/dht20.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,784 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_GROW_R502A_H_
#define ZEPHYR_DRIVERS_SENSOR_GROW_R502A_H_
/*
* @brief confirmation code present in acknowledgment packet
*
*################################################################################
*|Confirmation code | Definition |
*#################... | /content/code_sandbox/drivers/sensor/grow_r502a/grow_r502a.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,142 |
```unknown
# GROW_R502A hzgrow Fingerprint sensor Configuration options
menuconfig GROW_R502A
bool "GROW_R502A Fingerprint Sensor"
default y
depends on DT_HAS_HZGROW_R502A_ENABLED
depends on UART_INTERRUPT_DRIVEN && SERIAL
help
Enable driver for GROW_R502A Fingerprint Sensor.
if GROW_R502A
config R502A_DATA... | /content/code_sandbox/drivers/sensor/grow_r502a/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 408 |
```c
/*
*
*/
#define DT_DRV_COMPAT hzgrow_r502a
#include <zephyr/kernel.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/uart.h>
#include <zephyr/logging/log.h>
#include <zephyr/drivers/sensor/grow_r502a.h>
#include "grow_r502a.h"
LOG_MODULE_DECLARE(GROW_R502A, CONFI... | /content/code_sandbox/drivers/sensor/grow_r502a/grow_r502a_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 937 |
```unknown
# zephyr-keep-sorted-start
source "drivers/sensor/sensirion/sgp40/Kconfig"
source "drivers/sensor/sensirion/sht3xd/Kconfig"
source "drivers/sensor/sensirion/sht4x/Kconfig"
source "drivers/sensor/sensirion/shtcx/Kconfig"
# zephyr-keep-sorted-stop
``` | /content/code_sandbox/drivers/sensor/sensirion/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 85 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_SHTCX_SHTCX_H_
#define ZEPHYR_DRIVERS_SENSOR_SHTCX_SHTCX_H_
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/gpio.h>
/* common cmds */
#define SHTCX_CMD_READ_ID 0xEFC8
... | /content/code_sandbox/drivers/sensor/sensirion/shtcx/shtcx.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 483 |
```c
/*
*
*/
#define DT_DRV_COMPAT sensirion_shtcx
#include <zephyr/device.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/crc.h>
#include <zephyr/logging/log.h>
#include "shtcx.... | /content/code_sandbox/drivers/sensor/sensirion/shtcx/shtcx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,060 |
```unknown
# SHTCX temperature and humidity sensor configuration options
config SHTCX
bool "SHTCX: SHTC1 and SHTC3 Temperature and Humidity Sensor"
default y
depends on DT_HAS_SENSIRION_SHTCX_ENABLED
select I2C
select CRC
help
Enable driver for SHTC1 and SHTC3 temperature and humidity sensors.
``` | /content/code_sandbox/drivers/sensor/sensirion/shtcx/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 82 |
```c
/*
*
*/
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/uart.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/drivers/led.h>
#include <zephyr/sys/util.h>
#include <zephyr/drivers/sensor/grow_r502a.h>
#include ... | /content/code_sandbox/drivers/sensor/grow_r502a/grow_r502a.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9,473 |
```c
/*
*
*/
#define DT_DRV_COMPAT sensirion_sht4x
#include <zephyr/device.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/crc.h>
#include <zephyr... | /content/code_sandbox/drivers/sensor/sensirion/sht4x/sht4x.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,599 |
```unknown
# SHT4x temperature and humidity sensor configuration options
config SHT4X
bool "SHT4x Temperature and Humidity Sensor"
default y
depends on DT_HAS_SENSIRION_SHT4X_ENABLED
select I2C
select CRC
help
Enable driver for SHT4x temperature and humidity sensors.
``` | /content/code_sandbox/drivers/sensor/sensirion/sht4x/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 71 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_SHT4X_SHT4X_H_
#define ZEPHYR_DRIVERS_SENSOR_SHT4X_SHT4X_H_
#include <zephyr/device.h>
#define SHT4X_CMD_READ_SERIAL 0x89
#define SHT4X_CMD_RESET 0x94
#define SHT4X_RESET_WAIT_MS 1
#define SHT4X_HEATER_POWER_IDX_MAX 3
#define SHT4X_HEATER_DURATION_IDX_MAX 2
... | /content/code_sandbox/drivers/sensor/sensirion/sht4x/sht4x.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 470 |
```unknown
# SGP40 multipixel gas sensor configuration options
config SGP40
bool "SGP40 Multipixel Gas Sensor"
default y
depends on DT_HAS_SENSIRION_SGP40_ENABLED
select I2C
select CRC
help
Enable driver for SGP40 Multipixel Gas Sensor.
``` | /content/code_sandbox/drivers/sensor/sensirion/sgp40/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 65 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_SGP40_SGP40_H_
#define ZEPHYR_DRIVERS_SENSOR_SGP40_SGP40_H_
#include <zephyr/device.h>
#define SGP40_CMD_MEASURE_RAW 0x260F
#define SGP40_CMD_MEASURE_TEST 0x280E
#define SGP40_CMD_HEATER_OFF 0x3615
#define SGP40_TEST_OK 0xD400
#define SGP40_TEST_FAIL 0x4B00
... | /content/code_sandbox/drivers/sensor/sensirion/sgp40/sgp40.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 328 |
```c
/*
*
*/
#define DT_DRV_COMPAT sensirion_sgp40
#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 <zephyr/sys/crc.h>
#include <zephyr/dr... | /content/code_sandbox/drivers/sensor/sensirion/sgp40/sgp40.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,838 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_SHT3XD_SHT3XD_H_
#define ZEPHYR_DRIVERS_SENSOR_SHT3XD_SHT3XD_H_
#include <zephyr/device.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#define SHT3XD_CMD_FETCH 0xE000
#define SHT3XD_CMD_ART ... | /content/code_sandbox/drivers/sensor/sensirion/sht3xd/sht3xd.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 740 |
```unknown
# SHT3xD temperature and humidity sensor configuration options
menuconfig SHT3XD
bool "SHT3xD Temperature and Humidity Sensor"
default y
depends on DT_HAS_SENSIRION_SHT3XD_ENABLED
select I2C
select CRC
help
Enable driver for SHT3xD temperature and humidity sensors.
if SHT3XD
choice SHT3XD_TRIGGE... | /content/code_sandbox/drivers/sensor/sensirion/sht3xd/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 561 |
```c
/*
*
*/
#include <zephyr/device.h>
#include <zephyr/sys/util.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include "sht3xd.h"
#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(SHT3XD, CONFIG_SENSOR_LOG_LEVEL);
static uint16_t sht3xd_temp_processed_to_raw(const struct sensor_value *val)
{... | /content/code_sandbox/drivers/sensor/sensirion/sht3xd/sht3xd_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,846 |
```c
/*
*
*/
#define DT_DRV_COMPAT sensirion_sht3xd
#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/__assert.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/crc.h>
#include <zephy... | /content/code_sandbox/drivers/sensor/sensirion/sht3xd/sht3xd.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,831 |
```objective-c
/* HopeRF Electronic HP206C precision barometer and altimeter header
*
*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_HP206C_HP206C_H_
#define ZEPHYR_DRIVERS_SENSOR_HP206C_HP206C_H_
#include <zephyr/sys/util.h>
#define HP206C_I2C_ADDRESS 0x76
/* HP206C configuration registers */
#define HP206C_REG_ALT_O... | /content/code_sandbox/drivers/sensor/hp206c/hp206c.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 771 |
```c
/* HopeRF Electronic HP206C precision barometer and altimeter driver
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT hoperf_hp206c
#include <zephyr/init.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/kernel.h>
#include <z... | /content/code_sandbox/drivers/sensor/hp206c/hp206c.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,309 |
```unknown
# HopeRF Electronic HP206C precision barometer and altimeter configuration
# options
menuconfig HP206C
bool "HopeRF HP206C precision barometer and altimeter sensor"
default y
depends on DT_HAS_HOPERF_HP206C_ENABLED
select I2C
help
Enable HopeRF HP206C barometer and altimeter support.
if HP206C
co... | /content/code_sandbox/drivers/sensor/hp206c/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 260 |
```unknown
# S11059 color sensor
config S11059
bool "S11059 color sensor"
default y
depends on DT_HAS_HAMAMATSU_S11059_ENABLED
select I2C
help
Enable driver for S11059 color sensor
``` | /content/code_sandbox/drivers/sensor/s11059/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 57 |
```unknown
# zephyr-keep-sorted-start
source "drivers/sensor/infineon/dps310/Kconfig"
source "drivers/sensor/infineon/tle9104/Kconfig"
source "drivers/sensor/infineon/xmc4xxx_temp/Kconfig"
# zephyr-keep-sorted-stop
``` | /content/code_sandbox/drivers/sensor/infineon/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 70 |
```c
/*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT hamamatsu_s11059
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/util.h>
LOG_MODULE_... | /content/code_sandbox/drivers/sensor/s11059/s11059.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,402 |
```unknown
# DPS310 temperature and pressure sensor configuration options
menuconfig DPS310
bool "DPS310 sensor"
default y
depends on DT_HAS_INFINEON_DPS310_ENABLED
select I2C
help
Enable driver for DPS310 I2C-based temperature and pressure sensor.
if DPS310
menu "Attributes"
choice
prompt "DPS310 tempera... | /content/code_sandbox/drivers/sensor/infineon/dps310/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 425 |
```c
/*
*
*/
#define DT_DRV_COMPAT infineon_tle9104_diagnostics
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/sensor/tle9104.h>
#include <zephyr/logging/log.h>
#include "tle9104_diagnostics.h"
LOG_MODULE_REGISTER(TLE9104_DIAGNOSTICS, CONFIG_SENSOR_LOG_LEVEL);
static int tle9104_diagnostics_sample_f... | /content/code_sandbox/drivers/sensor/infineon/tle9104/tle9104_diagnostics.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 750 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_INFINEON_TLE9104_TLE9104_DIAGNOSTICS_H_
#define ZEPHYR_DRIVERS_SENSOR_INFINEON_TLE9104_TLE9104_DIAGNOSTICS_H_
#include <stdint.h>
#include <zephyr/device.h>
#include <zephyr/drivers/mfd/tle9104.h>
struct tle9104_diagnostics_data {
struct gpio_tle9104_channel_di... | /content/code_sandbox/drivers/sensor/infineon/tle9104/tle9104_diagnostics.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 156 |
```unknown
config TLE9104_DIAGNOSTICS
bool "Output diagnostics of TLE9104"
default y
depends on DT_HAS_INFINEON_TLE9104_DIAGNOSTICS_ENABLED
help
Enable driver for the output diagnostics of the power train
switch TLE9104.
``` | /content/code_sandbox/drivers/sensor/infineon/tle9104/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 64 |
```c
/*
*
*/
#define DT_DRV_COMPAT infineon_xmc4xxx_temp
#include <xmc_scu.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(xmc4xxx_temp, CONFIG_SENSOR_LOG_LEVEL);
struct xmc4xxx_temp_dat... | /content/code_sandbox/drivers/sensor/infineon/xmc4xxx_temp/xmc4xxx_temp.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 624 |
```unknown
config XMC4XXX_TEMP
bool "XMC4XXX Temperature Sensor"
default y
depends on DT_HAS_INFINEON_XMC4XXX_TEMP_ENABLED
help
Enable driver for temperature sensor on Infineon XMC4XXX targets.
if XMC4XXX_TEMP
config XMC4XXX_TEMP_CALIBRATE_OFFSET
int "Offset adjumstment of the temperature reading"
default 0... | /content/code_sandbox/drivers/sensor/infineon/xmc4xxx_temp/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 182 |
```unknown
# zephyr-keep-sorted-start
source "drivers/sensor/meas/ms5607/Kconfig"
source "drivers/sensor/meas/ms5837/Kconfig"
# zephyr-keep-sorted-stop
``` | /content/code_sandbox/drivers/sensor/meas/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 48 |
```objective-c
/*
*
*/
#ifndef __SENSOR_MS5837_H__
#define __SENSOR_MS5837_H__
#include <zephyr/types.h>
#include <zephyr/device.h>
#include <zephyr/drivers/i2c.h>
#define MS5837_CMD_RESET 0x1E
#define MS5837_CMD_CONV_P_256 0x40
#define MS5837_CMD_CONV_P_512 0x42
#define MS5837_CMD_CONV_P_1024 0x44
#define MS58... | /content/code_sandbox/drivers/sensor/meas/ms5837/ms5837.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 668 |
```unknown
# MS5837 pressure sensor configuration options
config MS5837
bool "MS5837 pressure and temperature sensor"
default y
depends on DT_HAS_MEAS_MS5837_ENABLED
select I2C
help
Enable driver for MS5837 pressure and temperature sensor.
``` | /content/code_sandbox/drivers/sensor/meas/ms5837/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 59 |
```c
/* Driver for Infineon DPS310 temperature and pressure sensor */
/*
*
*/
#define DT_DRV_COMPAT infineon_dps310
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/init.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/util.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr... | /content/code_sandbox/drivers/sensor/infineon/dps310/dps310.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7,201 |
```c
/* Driver for MS5837 pressure sensor
*
*
*/
#define DT_DRV_COMPAT meas_ms5837
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/logging/log.h>
#include "ms5837.h"
LOG_MODULE_REGISTER(MS58... | /content/code_sandbox/drivers/sensor/meas/ms5837/ms5837.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,016 |
```c
/*
*
*/
#define DT_DRV_COMPAT meas_ms5607
#include <string.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/byteorder.h>
#include "ms5607.h"
#define LOG_LEVEL CONFIG_SENSOR_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(ms5607);
#if DT_ANY_INST_ON_BUS_STATUS_OK... | /content/code_sandbox/drivers/sensor/meas/ms5607/ms5607_spi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 893 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.