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 |
|---|---|---|---|---|---|---|---|---|
```unknown
# zephyr-keep-sorted-start
source "drivers/sensor/rohm/bd8lb600fs/Kconfig"
source "drivers/sensor/rohm/bh1750/Kconfig"
# zephyr-keep-sorted-stop
``` | /content/code_sandbox/drivers/sensor/rohm/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 54 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_BD8LB600FS_BD8LB600FS_DIAGNOSTICS_H_
#define ZEPHYR_DRIVERS_SENSOR_BD8LB600FS_BD8LB600FS_DIAGNOSTICS_H_
#include <zephyr/device.h>
struct bd8lb600fs_diagnostics_data {
/* open load detection */
uint32_t old;
/* over current protection or thermal shutdown*/
u... | /content/code_sandbox/drivers/sensor/rohm/bd8lb600fs/bd8lb600fs_diagnostics.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 150 |
```c
/*
*
*/
#define DT_DRV_COMPAT we_wsen_pdus
#include <stdlib.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/logging/log.h>
#include "wsen_pdus.h"
LOG_MODULE_REGISTER(WSEN_PDUS, CONFIG_SENSOR_LOG_LEVEL);
static int pdus_sample_fetch(const struct device *dev, enum senso... | /content/code_sandbox/drivers/sensor/wsen/wsen_pdus/wsen_pdus.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 756 |
```unknown
config BD8LB600FS_DIAGNOSTICS
bool "Sensors of BD8LB600FS"
default y
depends on DT_HAS_ROHM_BD8LB600FS_DIAGNOSTICS_ENABLED
select MFD
help
Enable driver for the open load detection, over current
protection and thermal shutdown sensors of the low side
switch BD8LB600FS.
``` | /content/code_sandbox/drivers/sensor/rohm/bd8lb600fs/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 83 |
```c
/*
*
*/
#define DT_DRV_COMPAT rohm_bd8lb600fs_diagnostics
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/mfd/bd8lb600fs.h>
#include <zephyr/drivers/sensor/bd8lb600fs.h>
#include <zephyr/logging/log.h>
#include "bd8lb600fs_diagnostics.h"
LOG_MODULE_REGISTER(BD8LB600FS_DIAGNOSTICS, CONFIG_SENSOR_L... | /content/code_sandbox/drivers/sensor/rohm/bd8lb600fs/bd8lb600fs_diagnostics.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 666 |
```unknown
# BH1750 ambient light sensor configuration options
config BH1750
bool "BH1750 ambient light sensor"
default y
depends on DT_HAS_ROHM_BH1750_ENABLED
select I2C
help
Enable driver for BH1750 ambient light sensor.
``` | /content/code_sandbox/drivers/sensor/rohm/bh1750/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 59 |
```c
/*
*
*/
#define DT_DRV_COMPAT rohm_bh1750
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/logging/log.h>
#include <zephyr/kernel.h>
#include <zephyr/devicetree.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/__assert.h>
LOG_MODULE_REGISTER(BH1750, CONFIG_SENSOR_LO... | /content/code_sandbox/drivers/sensor/rohm/bh1750/bh1750.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,747 |
```unknown
# zephyr-keep-sorted-start
source "drivers/sensor/adi/adltc2990/Kconfig"
source "drivers/sensor/adi/adt7310/Kconfig"
source "drivers/sensor/adi/adt7420/Kconfig"
source "drivers/sensor/adi/adxl345/Kconfig"
source "drivers/sensor/adi/adxl362/Kconfig"
source "drivers/sensor/adi/adxl367/Kconfig"
source "drivers... | /content/code_sandbox/drivers/sensor/adi/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 117 |
```c
/* adxl372_i2c.c - I2C routines for ADXL372 driver
*/
/*
*
*/
#define DT_DRV_COMPAT adi_adxl372
#include <string.h>
#include <zephyr/logging/log.h>
#include "adxl372.h"
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(i2c)
LOG_MODULE_DECLARE(ADXL372, CONFIG_SENSOR_LOG_LEVEL);
static int adxl372_bus_access(const struct... | /content/code_sandbox/drivers/sensor/adi/adxl372/adxl372_i2c.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 673 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_ADXL372_ADXL372_H_
#define ZEPHYR_DRIVERS_SENSOR_ADXL372_ADXL372_H_
#include <zephyr/drivers/sensor.h>
#include <zephyr/types.h>
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/util.h>
#if DT_ANY_INST_O... | /content/code_sandbox/drivers/sensor/adi/adxl372/adxl372.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,529 |
```c
/*
*
*/
#define DT_DRV_COMPAT adi_adxl372
#include <zephyr/drivers/sensor.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <string.h>
#include <zephyr/init.h>
#include <zephyr/sys/printk.h>
#include <zephyr/sys/__assert.h>
#include <stdlib.h>
#include <zephyr/logging/log.h>
#include "adxl372.... | /content/code_sandbox/drivers/sensor/adi/adxl372/adxl372.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6,793 |
```c
/* adxl372_spi.c - SPI routines for ADXL372 driver
*/
/*
*
*/
#define DT_DRV_COMPAT adi_adxl372
#include <string.h>
#include <zephyr/logging/log.h>
#include "adxl372.h"
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(spi)
LOG_MODULE_DECLARE(ADXL372, CONFIG_SENSOR_LOG_LEVEL);
static int adxl372_bus_access(const struct... | /content/code_sandbox/drivers/sensor/adi/adxl372/adxl372_spi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 678 |
```c
/*
*
*/
#define DT_DRV_COMPAT adi_adxl372
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/sys/util.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include "adxl372.h"
#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(ADXL372, CONFIG_SENSOR_LOG_LEVEL);
static vo... | /content/code_sandbox/drivers/sensor/adi/adxl372/adxl372_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,356 |
```unknown
# Micropower, 3-Axis, +/-200g Digital Accelerometer
menuconfig ADXL372
bool "ADXL372 Three Axis High-g I2C/SPI accelerometer"
default y
depends on DT_HAS_ADI_ADXL372_ENABLED
select I2C if $(dt_compat_on_bus,$(DT_COMPAT_ADI_ADXL372),i2c)
select SPI if $(dt_compat_on_bus,$(DT_COMPAT_ADI_ADXL372),spi)
h... | /content/code_sandbox/drivers/sensor/adi/adxl372/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 888 |
```c
/*
*
*/
#define DT_DRV_COMPAT adi_adxl362
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/sys/util.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include "adxl362.h"
#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(ADXL362, CONFIG_SENSOR_LOG_LEVEL);
static v... | /content/code_sandbox/drivers/sensor/adi/adxl362/adxl362_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,364 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_ADXL362_ADXL362_H_
#define ZEPHYR_DRIVERS_SENSOR_ADXL362_ADXL362_H_
#include <zephyr/types.h>
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/spi.h>
#define ADXL362_SLAVE_ID 1
/* ADXL362 communication commands */
#define ... | /content/code_sandbox/drivers/sensor/adi/adxl362/adxl362.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,795 |
```unknown
# ADXL362 Three-Axis Digital Accelerometers
menuconfig ADXL362
bool "ADXL362 sensor"
default y
depends on DT_HAS_ADI_ADXL362_ENABLED
select SPI
help
Enable driver for ADXL362 Three-Axis Digital Accelerometers.
if ADXL362
choice
prompt "Accelerometer range setting"
default ADXL362_ACCEL_RANGE_RU... | /content/code_sandbox/drivers/sensor/adi/adxl362/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 791 |
```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 "adt7420.h"
#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(ADT7420, CONFIG_SENSOR_LOG_LEVEL);
static void... | /content/code_sandbox/drivers/sensor/adi/adt7420/adt7420_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,127 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_ADT7420_ADT7420_H_
#define ZEPHYR_DRIVERS_SENSOR_ADT7420_ADT7420_H_
#include <zephyr/types.h>
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
/* ADT7420 registers */
#define ADT7420_REG_TEMP_MSB 0x00 /* Temperature value MSB */
#define ADT7420_REG_T... | /content/code_sandbox/drivers/sensor/adi/adt7420/adt7420.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 892 |
```unknown
# ADT7420 temperature sensor configuration options
menuconfig ADT7420
bool "ADT7420 Temperature Sensor"
default y
depends on DT_HAS_ADI_ADT7420_ENABLED
select I2C
help
Enable the driver for Analog Devices ADT7420 High-Accuracy
16-bit Digital I2C Temperature Sensors.
if ADT7420
config ADT7420_T... | /content/code_sandbox/drivers/sensor/adi/adt7420/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 422 |
```c
/* adxl362.c - ADXL362 Three-Axis Digital Accelerometers */
/*
*
*/
#define DT_DRV_COMPAT adi_adxl362
#include <zephyr/kernel.h>
#include <zephyr/devicetree.h>
#include <string.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/init.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/sys/byteorder.h>
#in... | /content/code_sandbox/drivers/sensor/adi/adxl362/adxl362.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,609 |
```c
/*
*
*/
#define DT_DRV_COMPAT adi_adt7420
#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 "adt7420.h"
#include <zephyr/logging/log.... | /content/code_sandbox/drivers/sensor/adi/adt7420/adt7420.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,630 |
```objective-c
/*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_ADLTC2990_H
#define ZEPHYR_DRIVERS_SENSOR_ADLTC2990_H
#include <zephyr/types.h>
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/sensor.h>
enum adltc2990_monitor_pins {
V1,
V2,
V3,
V4,
INTERNA... | /content/code_sandbox/drivers/sensor/adi/adltc2990/adltc2990.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 358 |
```objective-c
/*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_ADLTC2990_ADLTC2990_EMUL_H
#define ZEPHYR_DRIVERS_SENSOR_ADLTC2990_ADLTC2990_EMUL_H
#include <zephyr/drivers/emul.h>
#include <zephyr/drivers/i2c.h>
void adltc2990_emul_set_reg(const struct emul *target, uint8_t reg_addr, const uint8_t *val);
void adltc2990_emul_g... | /content/code_sandbox/drivers/sensor/adi/adltc2990/adltc2990_emul.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 166 |
```unknown
# ADLTC2990 Quad I2C Voltage, Current and Temperature sensor configuration options
config ADLTC2990
bool "ADLTC2990 Quad I2C Voltage, Current and Temperature Monitor"
default y
depends on DT_HAS_ADI_ADLTC2990_ENABLED
select I2C
help
Enable the driver for Analog Devices LTC2990
Quad I2C Voltage, ... | /content/code_sandbox/drivers/sensor/adi/adltc2990/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 141 |
```objective-c
/*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_ADLTC2990_REG_H
#define ZEPHYR_DRIVERS_SENSOR_ADLTC2990_REG_H
#define ADLTC2990_REG_STATUS 0x00U
#define ADLTC2990_REG_CONTROL 0x01U
#define ADLTC2990_REG_TRIGGER 0x02U
#define ADLTC2990_REG_UNUSED 0x03U
#define ADLTC2990_RE... | /content/code_sandbox/drivers/sensor/adi/adltc2990/adltc2990_reg.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 727 |
```c
/*
*/
#define DT_DRV_COMPAT adi_adltc2990
#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/sys/util.h>
#include "adltc2990.h"
#include "adltc2... | /content/code_sandbox/drivers/sensor/adi/adltc2990/adltc2990_emul.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,105 |
```c
/*
*/
#define DT_DRV_COMPAT adi_adltc2990
#include <zephyr/sys/util.h>
#include <zephyr/drivers/i2c.h>
#include "adltc2990_reg.h"
#include "adltc2990.h"
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(adltc2990, CONFIG_SENSOR_LOG_LEVEL);
static enum adltc2990_monitoring_type adltc2990_get_v1_v2_measureme... | /content/code_sandbox/drivers/sensor/adi/adltc2990/adltc2990.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,285 |
```c
/*
*
*/
#define DT_DRV_COMPAT adi_adt7310
#include <string.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/util.h>
#include "adt7310.h"
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(ADT7310, CONFIG_SENSO... | /content/code_sandbox/drivers/sensor/adi/adt7310/adt7310.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,570 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_ADT7310_H_
#define ZEPHYR_DRIVERS_SENSOR_ADT7310_H_
#include <zephyr/types.h>
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/sensor.h>
int adt7310_init_interrupt(const struct device *dev);
int adt7310_trigger_set(const stru... | /content/code_sandbox/drivers/sensor/adi/adt7310/adt7310.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 270 |
```c
/*
*
*/
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/util.h>
#include <zephyr/types.h>
#include "adt7310.h"
#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(ADT7310, CONFIG_SENSO... | /content/code_sandbox/drivers/sensor/adi/adt7310/adt7310_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,012 |
```unknown
# ADT7310 temperature sensor configuration options
menuconfig ADT7310
bool "ADT7310 Temperature Sensor"
default y
depends on DT_HAS_ADI_ADT7310_ENABLED
select SPI
help
Enable the driver for Analog Devices ADT7310 High-Accuracy
16-bit Digital SPI Temperature Sensors.
if ADT7310
config ADT7310_T... | /content/code_sandbox/drivers/sensor/adi/adt7310/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 329 |
```c
/* adxl367_i2c.c - I2C routines for ADXL367 driver
*/
/*
*
*/
#define DT_DRV_COMPAT adi_adxl367
#include <string.h>
#include <zephyr/logging/log.h>
#include "adxl367.h"
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(i2c)
LOG_MODULE_DECLARE(ADXL367, CONFIG_SENSOR_LOG_LEVEL);
static int adxl367_bus_access(const struct... | /content/code_sandbox/drivers/sensor/adi/adxl367/adxl367_i2c.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 673 |
```c
/* adxl367_spi.c - SPI routines for ADXL367 driver
*/
/*
*
*/
#define DT_DRV_COMPAT adi_adxl367
#include <string.h>
#include <zephyr/logging/log.h>
#include "adxl367.h"
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(spi)
LOG_MODULE_DECLARE(ADXL367, CONFIG_SENSOR_LOG_LEVEL);
static int adxl367_bus_access(const struct... | /content/code_sandbox/drivers/sensor/adi/adxl367/adxl367_spi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 768 |
```c
/*
*
*/
#define DT_DRV_COMPAT adi_adxl367
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/sys/util.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include "adxl367.h"
#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(ADXL367, CONFIG_SENSOR_LOG_LEVEL);
static vo... | /content/code_sandbox/drivers/sensor/adi/adxl367/adxl367_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,258 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_ADXL367_ADXL367_H_
#define ZEPHYR_DRIVERS_SENSOR_ADXL367_ADXL367_H_
#include <zephyr/drivers/sensor.h>
#include <zephyr/types.h>
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/util.h>
#if DT_ANY_INST_O... | /content/code_sandbox/drivers/sensor/adi/adxl367/adxl367.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,832 |
```unknown
# Micropower, 3-Axis, +/-200g Digital Accelerometer
menuconfig ADXL367
bool "ADXL367 Three Axis High-g I2C/SPI accelerometer"
default y
depends on DT_HAS_ADI_ADXL367_ENABLED
select I2C if $(dt_compat_on_bus,$(DT_COMPAT_ADI_ADXL367),i2c)
select SPI if $(dt_compat_on_bus,$(DT_COMPAT_ADI_ADXL367),spi)
h... | /content/code_sandbox/drivers/sensor/adi/adxl367/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 827 |
```c
/*
*
*/
#define DT_DRV_COMPAT adi_adxl367
#include <zephyr/drivers/sensor.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <string.h>
#include <zephyr/init.h>
#include <zephyr/sys/printk.h>
#include <zephyr/sys/__assert.h>
#include <stdlib.h>
#include <zephyr/logging/log.h>
#include "adxl367.... | /content/code_sandbox/drivers/sensor/adi/adxl367/adxl367.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 8,415 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_ADX345_ADX345_H_
#define ZEPHYR_DRIVERS_SENSOR_ADX345_ADX345_H_
#include <zephyr/types.h>
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(i2c)
#include <zephyr/drivers/i2c.h>
#endif
#if DT_ANY_INST_ON_BUS_STATUS_OKAY... | /content/code_sandbox/drivers/sensor/adi/adxl345/adxl345.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 648 |
```unknown
# ADXL345, 3-Axis, +/-16g Digital Accelerometer
config ADXL345
bool "ADXL345 Three Axis accelerometer"
default y
depends on DT_HAS_ADI_ADXL345_ENABLED
select I2C if $(dt_compat_on_bus,$(DT_COMPAT_ADI_ADXL345),i2c)
select SPI if $(dt_compat_on_bus,$(DT_COMPAT_ADI_ADXL345),spi)
help
Enable driver fo... | /content/code_sandbox/drivers/sensor/adi/adxl345/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 110 |
```unknown
# zephyr-keep-sorted-start
source "drivers/sensor/asahi_kasei/ak8975/Kconfig"
source "drivers/sensor/asahi_kasei/akm09918c/Kconfig"
# zephyr-keep-sorted-stop
``` | /content/code_sandbox/drivers/sensor/asahi_kasei/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 58 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_AK8975_AK8975_H_
#define ZEPHYR_DRIVERS_SENSOR_AK8975_AK8975_H_
#include <zephyr/device.h>
#define AK8975_REG_CHIP_ID 0x00
#define AK8975_CHIP_ID 0x48
#define AK8975_REG_DATA_START 0x03
#define AK8975_REG_CNTL 0x0A
#define AK8975_MODE_MEASURE 0x01
#defi... | /content/code_sandbox/drivers/sensor/asahi_kasei/ak8975/ak8975.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 249 |
```unknown
# AK8975 magnetometer configuration options
config AK8975
bool "AK8975 Magnetometer"
default y
depends on DT_HAS_ASAHI_KASEI_AK8975_ENABLED
select I2C
help
Enable driver for AK8975 magnetometer.
``` | /content/code_sandbox/drivers/sensor/asahi_kasei/ak8975/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 60 |
```c
/*
*
*/
#define DT_DRV_COMPAT adi_adxl345
#include <zephyr/drivers/sensor.h>
#include <zephyr/init.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/__assert.h>
#include "adxl345.h"
LOG_MODULE_REGISTER(ADXL345, CONFIG_SENSOR_LOG_LEVEL);
... | /content/code_sandbox/drivers/sensor/adi/adxl345/adxl345.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,282 |
```c
/*
*
*/
#define DT_DRV_COMPAT asahi_kasei_ak8975
#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/util.h>
#include <zephyr/logging/log.h>
#include "ak... | /content/code_sandbox/drivers/sensor/asahi_kasei/ak8975/ak8975.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,306 |
```c
/*
*
*/
#include <zephyr/logging/log.h>
#include <zephyr/rtio/work.h>
#include "akm09918c.h"
LOG_MODULE_DECLARE(AKM09918C, CONFIG_SENSOR_LOG_LEVEL);
void akm09918c_submit_sync(struct rtio_iodev_sqe *iodev_sqe)
{
const struct sensor_read_config *cfg = iodev_sqe->sqe.iodev->data;
const struct device *dev = c... | /content/code_sandbox/drivers/sensor/asahi_kasei/akm09918c/akm09918c_async.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 448 |
```c
/*
*/
#define DT_DRV_COMPAT asahi_kasei_akm09918c
#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/sys/util.h>
#include "akm09918c.h"
#include... | /content/code_sandbox/drivers/sensor/asahi_kasei/akm09918c/akm09918c_emul.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,948 |
```c
/*
*/
#include "akm09918c.h"
#define DT_DRV_COMPAT asahi_kasei_akm09918c
static int akm09918c_decoder_get_frame_count(const uint8_t *buffer,
struct sensor_chan_spec chan_spec,
uint16_t *frame_count)
{
ARG_UNUSED(buffer);
ARG_UNUSED(chan_spec);
/* This sensor lacks a FIFO; there will alw... | /content/code_sandbox/drivers/sensor/asahi_kasei/akm09918c/akm09918c_decoder.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 755 |
```objective-c
/*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_AKM09918C_AKM09918C_EMUL_H
#define ZEPHYR_DRIVERS_SENSOR_AKM09918C_AKM09918C_EMUL_H
#include <zephyr/drivers/emul.h>
/**
* @brief Set one or more register values
*
* @param target The target emulator to modify
* @param reg_addr The starting address of the regis... | /content/code_sandbox/drivers/sensor/asahi_kasei/akm09918c/akm09918c_emul.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 310 |
```unknown
config AKM09918C
bool "AKM09918C Magnetometer"
default y
depends on DT_HAS_ASAHI_KASEI_AKM09918C_ENABLED
select I2C
select RTIO_WORKQ if SENSOR_ASYNC_API
help
Enable driver for AK8975 magnetometer.
config EMUL_AKM09918C
bool "Emulator for AKM09918C"
default y
depends on AKM09918C
depends on EM... | /content/code_sandbox/drivers/sensor/asahi_kasei/akm09918c/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 138 |
```objective-c
/*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_AKM09918C_AKM09918C_H_
#define ZEPHYR_DRIVERS_SENSOR_AKM09918C_AKM09918C_H_
#include <zephyr/device.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/rtio/rtio.h>
#include "akm09918c_reg.h"
/* Time it takes to get a measurement... | /content/code_sandbox/drivers/sensor/asahi_kasei/akm09918c/akm09918c.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 842 |
```objective-c
/*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_AKM09918C_AKM09918C_REG_H
#define ZEPHYR_DRIVERS_SENSOR_AKM09918C_AKM09918C_REG_H
#include <zephyr/sys/util_macro.h>
#define AKM09918C_REG_WIA1 0x00
#define AKM09918C_REG_WIA2 0x01
#define AKM09918C_REG_RSV1 0x02
#define AKM09918C_REG_RSV2 0x03
#define AKM09918... | /content/code_sandbox/drivers/sensor/asahi_kasei/akm09918c/akm09918c_reg.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 557 |
```c
/*
*/
#define DT_DRV_COMPAT asahi_kasei_akm09918c
#include <zephyr/device.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/sensor_data_types.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/util.h>... | /content/code_sandbox/drivers/sensor/asahi_kasei/akm09918c/akm09918c.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,039 |
```c
/*
*
*/
#define DT_DRV_COMPAT renesas_hs300x
#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>
#define HS300X_STATUS_MASK (BIT(0) | BIT(1))
... | /content/code_sandbox/drivers/sensor/hs300x/hs300x.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,235 |
```unknown
# Renesas HS300x temperature and humidity sensor configuration options
config HS300X
bool "HS300x Temperature and Humidity Sensor"
default y
depends on DT_HAS_RENESAS_HS300X_ENABLED
select I2C
help
Enable driver for HS300x temperature and humidity sensors.
``` | /content/code_sandbox/drivers/sensor/hs300x/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 66 |
```unknown
config A01NYUB
bool "DFRobot A01NYUB distance sensor"
default y
depends on DT_HAS_DFROBOT_A01NYUB_ENABLED
depends on UART_INTERRUPT_DRIVEN
select UART_USE_RUNTIME_CONFIGURE
help
Enable driver for the DFRobot A01NYUB distance sensor.
``` | /content/code_sandbox/drivers/sensor/a01nyub/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 68 |
```c
/*
*
*
* Datasheet:
* path_to_url
*
*/
#define DT_DRV_COMPAT dfrobot_a01nyub
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/uart.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/drivers/sensor.h>
LOG_MODULE_REGISTER(a01nyub_sensor, CONFI... | /content/code_sandbox/drivers/sensor/a01nyub/a01nyub.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,573 |
```unknown
# ExplorIR-M CO2 sensor configuration options
config EXPLORIR_M
bool "ExplorIR-M CO2 Sensor"
default y
depends on DT_HAS_GSS_EXPLORIR_M_ENABLED
depends on UART_INTERRUPT_DRIVEN
select UART
help
Enable driver for ExplorIR-M CO2 Sensor.
``` | /content/code_sandbox/drivers/sensor/explorir_m/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 71 |
```unknown
# zephyr-keep-sorted-start
source "drivers/sensor/nordic/npm1300_charger/Kconfig"
source "drivers/sensor/nordic/qdec_nrfx/Kconfig"
source "drivers/sensor/nordic/temp/Kconfig"
# zephyr-keep-sorted-stop
``` | /content/code_sandbox/drivers/sensor/nordic/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 66 |
```unknown
#
config NPM1300_CHARGER
bool "NPM1300 Charger"
default y
depends on DT_HAS_NORDIC_NPM1300_CHARGER_ENABLED
select I2C
select MFD
select REQUIRES_FULL_LIBC
help
Enable NPM1300 charger driver.
``` | /content/code_sandbox/drivers/sensor/nordic/npm1300_charger/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 64 |
```c
/*
*
*
* Datasheet:
* path_to_url
*
*/
#define DT_DRV_COMPAT gss_explorir_m
#include <stdio.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/sensor/explorir_m.h>
#include <zephyr/drivers/uart.h>
#include <zephyr/logging/log.h>
LOG_MODULE... | /content/code_sandbox/drivers/sensor/explorir_m/explorir_m.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,837 |
```c
/*
*
*/
#include <zephyr/drivers/sensor.h>
#include <zephyr/pm/device.h>
#include <zephyr/drivers/pinctrl.h>
#include <soc.h>
#include <nrfx_qdec.h>
#include <hal/nrf_gpio.h>
#include <zephyr/logging/log.h>
#include <zephyr/irq.h>
LOG_MODULE_REGISTER(qdec_nrfx, CONFIG_SENSOR_LOG_LEVEL);
#define DT_DRV_COMPAT... | /content/code_sandbox/drivers/sensor/nordic/qdec_nrfx/qdec_nrfx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,227 |
```unknown
config QDEC_NRFX
bool "Nordic QDEC nrfx driver"
default y
depends on DT_HAS_NORDIC_NRF_QDEC_ENABLED
select NRFX_QDEC0 if HAS_HW_NRF_QDEC0
select NRFX_QDEC1 if HAS_HW_NRF_QDEC1
select NRFX_QDEC20 if HAS_HW_NRF_QDEC20
select NRFX_QDEC21 if HAS_HW_NRF_QDEC21
select NRFX_QDEC130 if HAS_HW_NRF_QDEC130
s... | /content/code_sandbox/drivers/sensor/nordic/qdec_nrfx/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 149 |
```c
/*
*
*/
#define DT_DRV_COMPAT nordic_nrf_temp_nrfs
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/__assert.h>
#include <nrfs_temp.h>
LOG_MODULE_REGISTER(temp_nrfs, CONFIG_SENSOR_LOG_LEVEL);
struct temp_nrfs_data {
struct k_sem measure_sem;... | /content/code_sandbox/drivers/sensor/nordic/temp/temp_nrfs.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,939 |
```c
/*
*/
#define DT_DRV_COMPAT nordic_npm1300_charger
#include <math.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/mfd/npm1300.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/linear_range.h>
#include <zephyr/drivers/sensor/npm1300_charger.h>
struct npm1300_charger_config {
const struct device... | /content/code_sandbox/drivers/sensor/nordic/npm1300_charger/npm1300_charger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,850 |
```c
/*
*
*/
#define DT_DRV_COMPAT nordic_nrf_temp
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/clock_control/nrf_clock_control.h>
#include <zephyr/logging/log.h>
#include <hal/nrf_temp.h>
#include <zephyr/irq.h>
LOG_MODULE_REGISTE... | /content/code_sandbox/drivers/sensor/nordic/temp/temp_nrf5.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 955 |
```unknown
# nRF temperature sensor configuration options
config TEMP_NRF5_FORCE_ALT
bool
depends on SOC_COMPATIBLE_NRF
help
This option can be enabled to force an alternative implementation
of the temperature sensor driver.
config TEMP_NRF5
bool "nRF5 Temperature Sensor"
default y
depends on DT_HAS_NORD... | /content/code_sandbox/drivers/sensor/nordic/temp/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 210 |
```unknown
# Atmel SAM MCU family Quadrature Decoder (TC) driver configuration options
#
#
config QDEC_SAM
bool "Atmel SAM QDEC driver"
default y
depends on DT_HAS_ATMEL_SAM_TC_QDEC_ENABLED
depends on SOC_FAMILY_ATMEL_SAM
help
Atmel SAM MCU family Quadrature Decoder (TC) driver.
``` | /content/code_sandbox/drivers/sensor/qdec_sam/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 79 |
```c
/*
*
*/
#define DT_DRV_COMPAT atmel_sam_tc_qdec
/** @file
* @brief Atmel SAM MCU family Quadrature Decoder (QDEC/TC) driver.
*/
#include <errno.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/sys/util.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <soc.h>
#include <zephyr/drivers/senso... | /content/code_sandbox/drivers/sensor/qdec_sam/qdec_sam.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,048 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_MHZ19B_MHZ19B
#define ZEPHYR_DRIVERS_SENSOR_MHZ19B_MHZ19B
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/uart.h>
#define MHZ19B_BUF_LEN 9
#define MHZ19B_TX_CMD_IDX 2
#define MHZ19B_RX_CMD_IDX 1
#define MHZ19B_CHECKSUM_IDX 8
/* A... | /content/code_sandbox/drivers/sensor/mhz19b/mhz19b.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 735 |
```unknown
config MHZ19B
bool "Winsen CO2 sensor"
default y
depends on DT_HAS_WINSEN_MHZ19B_ENABLED
depends on UART_INTERRUPT_DRIVEN
help
Enable driver for the MHZ19B CO2 Sensor.
``` | /content/code_sandbox/drivers/sensor/mhz19b/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 55 |
```unknown
# zephyr-keep-sorted-start
source "drivers/sensor/bosch/bma280/Kconfig"
source "drivers/sensor/bosch/bma4xx/Kconfig"
source "drivers/sensor/bosch/bmc150_magn/Kconfig"
source "drivers/sensor/bosch/bme280/Kconfig"
source "drivers/sensor/bosch/bme680/Kconfig"
source "drivers/sensor/bosch/bmg160/Kconfig"
source... | /content/code_sandbox/drivers/sensor/bosch/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 208 |
```c
/* Bosch BMG160 gyro driver, trigger implementation
*
*
*
* Datasheet:
* path_to_url
*/
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include "bmg160.h"
extern struct bmg160_device_data bmg160_data;
#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(BMG160, CONFIG_SENSOR_LOG_LEVEL);
sta... | /content/code_sandbox/drivers/sensor/bosch/bmg160/bmg160_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,985 |
```c
/*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT winsen_mhz19b
#include <zephyr/logging/log.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/sensor/mhz19b.h>
#include "mhz19b.h"
LOG_MODULE_REGISTER(mhz19b, CONFIG_SENSOR_LOG_LEVEL);
/* Table of sup... | /content/code_sandbox/drivers/sensor/mhz19b/mhz19b.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,742 |
```objective-c
/* Bosch BMG160 gyro driver */
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_BMG160_BMG160_H_
#define ZEPHYR_DRIVERS_SENSOR_BMG160_BMG160_H_
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/sys/util.h>
/* registers */
#define BMG160_REG_CHIPID 0x00
#define BMG160_REG_RATE_... | /content/code_sandbox/drivers/sensor/bosch/bmg160/bmg160.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,187 |
```unknown
# Bosch BMG160 gyroscope configuration options
menuconfig BMG160
bool "Bosch BMG160 gyroscope support"
default y
depends on DT_HAS_BOSCH_BMG160_ENABLED
select I2C
help
Enable Bosch BMG160 gyroscope support.
if BMG160
choice
prompt "BMG160 I2C bus speed"
default BMG160_I2C_SPEED_STANDARD
config... | /content/code_sandbox/drivers/sensor/bosch/bmg160/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 553 |
```c
/* Bosch BMG160 gyro driver
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT bosch_bmg160
#include <zephyr/init.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include "bmg160.h"
LOG_MODULE_REGISTER(BMG160, CONFI... | /content/code_sandbox/drivers/sensor/bosch/bmg160/bmg160.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,597 |
```unknown
#
#
#
config BMP581
bool "BMP581 barometric pressure sensor"
depends on DT_HAS_BOSCH_BMP581_ENABLED
select I2C
default y
``` | /content/code_sandbox/drivers/sensor/bosch/bmp581/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 39 |
```objective-c
/*
*
*
* Driver is developed to be used with Zephyr. And it only supports i2c interface.
*
* Author: Talha Can Havadar <havadartalha@gmail.com>
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_BMP581_BMP581_H_
#define ZEPHYR_DRIVERS_SENSOR_BMP581_BMP581_H_
#include <zephyr/device.h>
#include <zephyr/drivers/g... | /content/code_sandbox/drivers/sensor/bosch/bmp581/bmp581.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,712 |
```c
/*
*
*/
#include "bmp581.h"
#include <math.h>
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/init.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/check.h>
LOG_MODULE_REGISTER(bmp581, CONFIG_SENSOR_LOG_LEV... | /content/code_sandbox/drivers/sensor/bosch/bmp581/bmp581.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,633 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_BME280_BME280_H_
#define ZEPHYR_DRIVERS_SENSOR_BME280_BME280_H_
#include <zephyr/types.h>
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr... | /content/code_sandbox/drivers/sensor/bosch/bme280/bme280.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,993 |
```c
/*
*
*/
#include <zephyr/rtio/work.h>
#include <zephyr/logging/log.h>
#include "bme280.h"
LOG_MODULE_DECLARE(BME280, CONFIG_SENSOR_LOG_LEVEL);
void bme280_submit_sync(struct rtio_iodev_sqe *iodev_sqe)
{
uint32_t min_buf_len = sizeof(struct bme280_encoded_data);
int rc;
uint8_t *buf;
uint32_t buf_len;
c... | /content/code_sandbox/drivers/sensor/bosch/bme280/bme280_async.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 593 |
```c
/*
*
*/
/*
* Bus-specific functionality for BME280s accessed via I2C.
*/
#include "bme280.h"
#if BME280_BUS_I2C
static int bme280_bus_check_i2c(const union bme280_bus *bus)
{
return device_is_ready(bus->i2c.bus) ? 0 : -ENODEV;
}
static int bme280_reg_read_i2c(const union bme280_bus *bus,
uint8_t... | /content/code_sandbox/drivers/sensor/bosch/bme280/bme280_i2c.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 249 |
```c
/* bme280.c - Driver for Bosch BME280 temperature and pressure sensor */
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/init.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/pm/device.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/__assert.h>
#include <ze... | /content/code_sandbox/drivers/sensor/bosch/bme280/bme280.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,818 |
```c
/*
*/
#include "bme280.h"
#include <math.h>
static int bme280_decoder_get_frame_count(const uint8_t *buffer,
struct sensor_chan_spec chan_spec,
uint16_t *frame_count)
{
const struct bme280_encoded_data *edata = (const struct bme280_encoded_data *)buffer;
int32_t ret = -ENOTSUP;
if (chan_... | /content/code_sandbox/drivers/sensor/bosch/bme280/bme280_decoder.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,167 |
```c
/*
*
*/
/*
* Bus-specific functionality for BME280s accessed via SPI.
*/
#include <zephyr/logging/log.h>
#include "bme280.h"
#if BME280_BUS_SPI
LOG_MODULE_DECLARE(BME280, CONFIG_SENSOR_LOG_LEVEL);
static int bme280_bus_check_spi(const union bme280_bus *bus)
{
return spi_is_ready_dt(&bus->spi) ? 0 : -ENOD... | /content/code_sandbox/drivers/sensor/bosch/bme280/bme280_spi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 540 |
```unknown
# BMP280 temperature and pressure sensor configuration options
menuconfig BME280
bool "BME280/BMP280 sensor"
default y
depends on DT_HAS_BOSCH_BME280_ENABLED
select I2C if $(dt_compat_on_bus,$(DT_COMPAT_BOSCH_BME280),i2c)
select SPI if $(dt_compat_on_bus,$(DT_COMPAT_BOSCH_BME280),spi)
select RTIO_WOR... | /content/code_sandbox/drivers/sensor/bosch/bme280/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 921 |
```c
/* Bosch BMA4xx 3-axis accelerometer driver
*
*
*/
#define DT_DRV_COMPAT bosch_bma4xx
#include <zephyr/drivers/i2c.h>
#include <zephyr/logging/log.h>
#include "bma4xx.h"
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(i2c)
LOG_MODULE_DECLARE(bma4xx, CONFIG_SENSOR_LOG_LEVEL);
static int bma4xx_i2c_read_data(const struc... | /content/code_sandbox/drivers/sensor/bosch/bma4xx/bma4xx_i2c.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 637 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_BMA4XX_BMA4XX_H_
#define ZEPHYR_DRIVERS_SENSOR_BMA4XX_BMA4XX_H_
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(spi)
#include <zephyr/drivers/spi.h>
#endif /* DT_ANY_INST_ON_BUS_STATUS_O... | /content/code_sandbox/drivers/sensor/bosch/bma4xx/bma4xx.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,547 |
```c
/* Bosch BMA4xx 3-axis accelerometer driver
*
*
*/
#define DT_DRV_COMPAT bosch_bma4xx
#include <zephyr/drivers/spi.h>
#include <zephyr/logging/log.h>
#include "bma4xx.h"
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(spi)
LOG_MODULE_DECLARE(bma4xx, CONFIG_SENSOR_LOG_LEVEL);
static int bma4xx_spi_read_data(const struc... | /content/code_sandbox/drivers/sensor/bosch/bma4xx/bma4xx_spi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 449 |
```objective-c
/*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_BMA4XX_BMA4XX_EMUL_H_
#define ZEPHYR_DRIVERS_SENSOR_BMA4XX_BMA4XX_EMUL_H_
#include <zephyr/drivers/emul.h>
#include "zephyr/dsp/types.h"
#ifdef __cplusplus
extern "C" {
#endif
/** Set the sensor's current acceleration reading. */
void bma4xx_emul_set_accel_data(co... | /content/code_sandbox/drivers/sensor/bosch/bma4xx/bma4xx_emul.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 232 |
```c
/* Bosch BMA4xx 3-axis accelerometer driver
*
*
*/
#define DT_DRV_COMPAT bosch_bma4xx
#include <zephyr/init.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/logging/log.h>
#include <zephyr/pm/device.h>
#include <zephyr/rtio/work.h>
LOG_MODULE_REGISTER(bma4xx, CONFIG_SENS... | /content/code_sandbox/drivers/sensor/bosch/bma4xx/bma4xx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6,353 |
```c
/*
*/
#include "bma4xx.h"
#include "bma4xx_emul.h"
#include "zephyr/sys/util.h"
#include <errno.h>
#include <stdint.h>
#include <string.h>
#include <zephyr/device.h>
#include <zephyr/drivers/emul.h>
#include <zephyr/drivers/emul_sensor.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/i2c.h>
#incl... | /content/code_sandbox/drivers/sensor/bosch/bma4xx/bma4xx_emul.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,024 |
```unknown
# BMA4XX 3-axis accelerometer config options
#
#
config BMA4XX
bool "BMA4XX 3-axis acceleration sensor"
default y
depends on DT_HAS_BOSCH_BMA4XX_ENABLED
depends on SENSOR_ASYNC_API
select I2C
select RTIO_WORKQ
help
Enable driver for Bosch BMA4XX (I2C-based)
config BMA4XX_TEMPERATURE
bool "Allow ... | /content/code_sandbox/drivers/sensor/bosch/bma4xx/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 212 |
```c
/*
*
*/
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/sys/util.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include "bmc150_magn.h"
#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(BMC150_MAGN, CONFIG_SENSOR_LOG_LEVEL);
static inline void setup_drdy(const... | /content/code_sandbox/drivers/sensor/bosch/bmc150_magn/bmc150_magn_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,160 |
```unknown
# BMC150 magnetometer sensor configuration options
menuconfig BMC150_MAGN
bool "BMC150_MAGN I2C Magnetometer Chip"
default y
depends on DT_HAS_BOSCH_BMC150_MAGN_ENABLED
select I2C
help
Enable driver for BMC150 I2C-based magnetometer sensor.
if BMC150_MAGN
menu "Attributes"
choice
prompt "Defaul... | /content/code_sandbox/drivers/sensor/bosch/bmc150_magn/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 423 |
```objective-c
/* sensor_bmc150_magn.h - header file for BMC150 magnetometer sensor driver */
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_BMC150_MAGN_BMC150_MAGN_H_
#define ZEPHYR_DRIVERS_SENSOR_BMC150_MAGN_BMC150_MAGN_H_
#include <zephyr/types.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/sys/util.h>
#define BMC15... | /content/code_sandbox/drivers/sensor/bosch/bmc150_magn/bmc150_magn.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,553 |
```c
/* bmc150_magn.c - Driver for Bosch BMC150 magnetometer sensor */
/*
*
* This code is based on bmm050.c from:
* path_to_url
*
*/
#define DT_DRV_COMPAT bosch_bmc150_magn
#include <zephyr/drivers/sensor.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/sys/byt... | /content/code_sandbox/drivers/sensor/bosch/bmc150_magn/bmc150_magn.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,974 |
```c
/*
*
*/
/*
* Bus-specific functionality for BMM150s accessed via SPI.
*/
#include <zephyr/logging/log.h>
#include "bmm150.h"
#if BMM150_BUS_SPI
LOG_MODULE_DECLARE(BMM150, CONFIG_SENSOR_LOG_LEVEL);
static int bmm150_bus_check_spi(const union bmm150_bus *bus)
{
return spi_is_ready_dt(&bus->spi) ? 0 : -ENOD... | /content/code_sandbox/drivers/sensor/bosch/bmm150/bmm150_spi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 540 |
```objective-c
/* sensor_bmm150.h - header file for BMM150 Geomagnetic sensor driver */
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_BMM150_BMM150_H_
#define ZEPHYR_DRIVERS_SENSOR_BMM150_BMM150_H_
#include <zephyr/types.h>
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/spi.h>
#include ... | /content/code_sandbox/drivers/sensor/bosch/bmm150/bmm150.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,960 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.