text stringlengths 9 39.2M | dir stringlengths 25 226 | lang stringclasses 163
values | created_date timestamp[s] | updated_date timestamp[s] | repo_name stringclasses 751
values | repo_full_name stringclasses 752
values | star int64 1.01k 183k | len_tokens int64 1 18.5M |
|---|---|---|---|---|---|---|---|---|
```c
/*
*
*/
/*
* Bus-specific functionality for BMM150s accessed via I2C.
*/
#include "bmm150.h"
#if BMM150_BUS_I2C
static int bmm150_bus_check_i2c(const union bmm150_bus *bus)
{
return i2c_is_ready_dt(&bus->i2c) ? 0 : -ENODEV;
}
static int bmm150_reg_read_i2c(const union bmm150_bus *bus,
uint8_t s... | /content/code_sandbox/drivers/sensor/bosch/bmm150/bmm150_i2c.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 252 |
```c
/* Bosch BMM150 pressure sensor
*
*
*
* Datasheet:
* path_to_url
*/
#include <zephyr/kernel.h>
#include <zephyr/pm/device.h>
#include <zephyr/logging/log.h>
#include "bmm150.h"
LOG_MODULE_DECLARE(BMM150, CONFIG_SENSOR_LOG_LEVEL);
static void bmm150_handle_interrupts(const void *arg)
{
const struct devic... | /content/code_sandbox/drivers/sensor/bosch/bmm150/bmm150_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,077 |
```unknown
# BMM150 Geomagnetic sensor configuration options
menuconfig BMM150
bool "BMM150 I2C Geomagnetic Chip"
default y
depends on DT_HAS_BOSCH_BMM150_ENABLED
select I2C
help
Enable driver for BMM150 I2C-based Geomagnetic sensor.
if BMM150
choice
prompt "Default preset"
default BMM150_PRESET_REGULAR
h... | /content/code_sandbox/drivers/sensor/bosch/bmm150/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 509 |
```c
/* bmm150.c - Driver for Bosch BMM150 Geomagnetic Sensor */
/*
*
*/
#include <zephyr/logging/log.h>
#include "bmm150.h"
LOG_MODULE_REGISTER(BMM150, CONFIG_SENSOR_LOG_LEVEL);
static const struct {
int freq;
uint8_t reg_val;
} bmm150_samp_freq_table[] = { { 2, 0x01 },
{ 6, 0x02 },
{ 8, 0x... | /content/code_sandbox/drivers/sensor/bosch/bmm150/bmm150.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,465 |
```c
/* Bosch BMI08X inertial measurement unit driver
*
*
*/
#include <zephyr/drivers/sensor.h>
#include <zephyr/pm/device.h>
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/sys/byteorder.h>
#define DT_DRV_COMPAT bosch_bmi08x_gyr... | /content/code_sandbox/drivers/sensor/bosch/bmi08x/bmi08x_gyro.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,113 |
```c
/* Bosch BMI08X inertial measurement unit driver
*
*
*/
#include <zephyr/drivers/sensor.h>
#include <zephyr/pm/device.h>
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/sys/byteorder.h>
#define DT_DRV_COMPAT bosch_bmi08x_acc... | /content/code_sandbox/drivers/sensor/bosch/bmi08x/bmi08x_accel.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6,958 |
```c
/* Bosch BMI08X inertial measurement unit driver
*
*
*/
#include <zephyr/kernel.h>
#include "bmi08x.h"
/*
* Output data rate map with allowed frequencies:
* freq = freq_int + freq_milli / 1000
*
* Since we don't need a finer frequency resolution than milliHz, use uint16_t
* to save some flash.
*/
static... | /content/code_sandbox/drivers/sensor/bosch/bmi08x/bmi08x.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 543 |
```c
/* Bosch BMI08X inertial measurement unit driver, trigger implementation
*
*
*/
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/pm/device.h>
#include <zephyr/kernel.h>
#define DT_DRV_COMPAT bosch_bmi08x_gyro
#include "bmi08x.h"
#include <zephyr/logging/log.h>
LOG_MODULE_D... | /content/code_sandbox/drivers/sensor/bosch/bmi08x/bmi08x_gyro_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 982 |
```c
/* Bosch BMI08X inertial measurement unit driver, trigger implementation
*
*
*/
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/pm/device.h>
#include <zephyr/kernel.h>
#define DT_DRV_COMPAT bosch_bmi08x_accel
#include "bmi08x.h"
#include <zephyr/logging/log.h>
LOG_MODULE_... | /content/code_sandbox/drivers/sensor/bosch/bmi08x/bmi08x_accel_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,299 |
```objective-c
/* Bosch BMI08X inertial measurement unit header
*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_BMI08X_H_
#define ZEPHYR_DRIVERS_SENSOR_BMI08X_H_
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/sys/util.h>
/*... | /content/code_sandbox/drivers/sensor/bosch/bmi08x/bmi08x.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,623 |
```unknown
# Bosch BMI08X inertial measurement configuration options
menuconfig BMI08X
bool "Bosch BMI08X inertial measurement unit"
default y
depends on DT_HAS_BOSCH_BMI08X_ACCEL_ENABLED || DT_HAS_BOSCH_BMI08X_GYRO_ENABLED
select I2C if $(dt_compat_on_bus,$(DT_COMPAT_BOSCH_BMI08X_ACCEL),i2c) \
|| $(dt_compat_o... | /content/code_sandbox/drivers/sensor/bosch/bmi08x/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 654 |
```c
/*
*
*/
/*
* Bus-specific functionality for BMI270s accessed via SPI.
*/
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include "bmi270.h"
LOG_MODULE_DECLARE(bmi270, CONFIG_SENSOR_LOG_LEVEL);
static int bmi270_bus_check_spi(const union bmi270_bus *bus)
{
return spi_is_ready_dt(&bus->spi) ? 0 ... | /content/code_sandbox/drivers/sensor/bosch/bmi270/bmi270_spi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 631 |
```objective-c
/* Bosch BMI08X inertial measurement unit header
*
*
*/
#ifndef BMI08X_BMI08X_CONFIG_FILE_H_
#define BMI08X_BMI08X_CONFIG_FILE_H_
/* Source : path_to_url#L69 */
const uint8_t bmi08x_config_file[] = {
0xc8, 0x2e, 0x00, 0x2e, 0x80, 0x2e, 0x48, 0xb4, 0xc8, 0x2e, 0x00, 0x2e, 0x80, 0x2e, 0x6d,
0xb4, 0x... | /content/code_sandbox/drivers/sensor/bosch/bmi08x/bmi08x_config_file.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 32,336 |
```c
/*
*
*/
#include <zephyr/device.h>
#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(bmi270);
#include "bmi270.h"
enum {
INT_FLAGS_INT1,
INT_FLAGS_INT2,
};
static void bmi270_raise_int_flag(const struct device *dev, int bit)
{
struct bmi270_data *data = dev->data;
atomic_set_bit(&data->int_flags, bit);... | /content/code_sandbox/drivers/sensor/bosch/bmi270/bmi270_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,102 |
```c
/*
*
*/
/*
* Bus-specific functionality for BMI270s accessed via I2C.
*/
#include "bmi270.h"
static int bmi270_bus_check_i2c(const union bmi270_bus *bus)
{
return device_is_ready(bus->i2c.bus) ? 0 : -ENODEV;
}
static int bmi270_reg_read_i2c(const union bmi270_bus *bus,
uint8_t start, uint8_t *da... | /content/code_sandbox/drivers/sensor/bosch/bmi270/bmi270_i2c.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 275 |
```c
/*
*
*/
#define DT_DRV_COMPAT bosch_bmi270
#include <zephyr/drivers/sensor.h>
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/logging/log.h>
#include "bmi270.h"
#include "bmi270_config_file.h"
LOG_MODULE_REGISTER(bmi270, ... | /content/code_sandbox/drivers/sensor/bosch/bmi270/bmi270.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6,976 |
```unknown
# BMI270 6 Axis IMU configuration
menuconfig BMI270
bool "BMI270 Inertial measurement unit"
default y
depends on DT_HAS_BOSCH_BMI270_ENABLED
select I2C if $(dt_compat_on_bus,$(DT_COMPAT_BOSCH_BMI270),i2c)
select SPI if $(dt_compat_on_bus,$(DT_COMPAT_BOSCH_BMI270),spi)
help
Enable driver for BMI270... | /content/code_sandbox/drivers/sensor/bosch/bmi270/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 357 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_BMI270_BMI270_H_
#define ZEPHYR_DRIVERS_SENSOR_BMI270_BMI270_H_
#include <stdint.h>
#include <zephyr/device.h>
#include <zephyr/sys/atomic.h>
#include <zephyr/sys/util.h>
#include <zephyr/types.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/spi.h>... | /content/code_sandbox/drivers/sensor/bosch/bmi270/bmi270.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,124 |
```c
/*
*
*/
#define DT_DRV_COMPAT bosch_bma280
#include <zephyr/device.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/sys/util.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include "bma280.h"
#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(BMA280, CONFIG_SENSOR_LOG_LEVEL);
static inl... | /content/code_sandbox/drivers/sensor/bosch/bma280/bma280_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,268 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_BMA280_BMA280_H_
#define ZEPHYR_DRIVERS_SENSOR_BMA280_BMA280_H_
#include <zephyr/device.h>
#include <zephyr/sys/util.h>
#include <zephyr/types.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/kernel.h>
#define BMA280_REG_CHIP_... | /content/code_sandbox/drivers/sensor/bosch/bma280/bma280.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,457 |
```unknown
# BMA280 Three Axis Accelerometer configuration options
menuconfig BMA280
bool "BMA280 Three Axis Accelerometer Family"
default y
depends on DT_HAS_BOSCH_BMA280_ENABLED
select I2C
help
Enable driver for BMA280 I2C-based triaxial accelerometer sensor
family.
if BMA280
choice
prompt "Trigger mo... | /content/code_sandbox/drivers/sensor/bosch/bma280/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 544 |
```c
/*
*
*/
#define DT_DRV_COMPAT bosch_bma280
#include <zephyr/drivers/i2c.h>
#include <zephyr/init.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/logging/log.h>
#include "bma280.h"
LOG_MODULE_REGISTER(BMA280, CONFIG_SENSOR_LOG_LEVEL);
static int bma280_sample_fetch(con... | /content/code_sandbox/drivers/sensor/bosch/bma280/bma280.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,512 |
```c
/*
*
*
* Emulator for the Bosch BMI160 accelerometer / gyro. This supports basic
* init and reading of canned samples. It supports both I2C and SPI buses.
*/
#define DT_DRV_COMPAT bosch_bmi160
#define LOG_LEVEL CONFIG_SPI_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(bosch_bmi160);
#include... | /content/code_sandbox/drivers/sensor/bosch/bmi160/emul_bmi160.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,285 |
```c
/* Bosch BMI160 inertial measurement unit driver
*
*
*
* Datasheet:
* path_to_url
*/
#include <zephyr/init.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/pm/pm.h>
#include <z... | /content/code_sandbox/drivers/sensor/bosch/bmi160/bmi160.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9,347 |
```c
/* Bosch BMI160 inertial measurement unit driver, trigger implementation
*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/gpio.h>
#include "bmi160.h"
#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(BMI160, CONFIG_SENSOR_LOG_LEVEL);
static void bmi160_handle_an... | /content/code_sandbox/drivers/sensor/bosch/bmi160/bmi160_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,234 |
```objective-c
/*
*
*/
#ifndef BMI270_BMI270_CONFIG_FILE_H_
#define BMI270_BMI270_CONFIG_FILE_H_
/* Source : path_to_url#L51 */
static const uint8_t bmi270_config_file_max_fifo[] = {
0xc8, 0x2e, 0x00, 0x2e, 0x80, 0x2e, 0x1a, 0x00, 0xc8, 0x2e, 0x00,
0x2e, 0xc8, 0x2e, 0x00, 0x2e, 0xc8, 0x2e, 0x00, 0x2e, 0xc8, 0x2e,... | /content/code_sandbox/drivers/sensor/bosch/bmi270/bmi270_config_file.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 44,429 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_BMI160_EMUL_BMI160_H_
#define ZEPHYR_DRIVERS_SENSOR_BMI160_EMUL_BMI160_H_
#include <zephyr/drivers/emul.h>
#include <zephyr/drivers/i2c.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Check if I2C messages are touching a given register (R or W)
*
* @p... | /content/code_sandbox/drivers/sensor/bosch/bmi160/emul_bmi160.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 750 |
```unknown
# Bosch BMI160 inertial measurement configuration options
menuconfig BMI160
bool "Bosch BMI160 inertial measurement unit"
default y
depends on DT_HAS_BOSCH_BMI160_ENABLED
select I2C if $(dt_compat_on_bus,$(DT_COMPAT_BOSCH_BMI160),i2c)
select SPI if $(dt_compat_on_bus,$(DT_COMPAT_BOSCH_BMI160),spi)
he... | /content/code_sandbox/drivers/sensor/bosch/bmi160/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,330 |
```objective-c
/* Bosch BMI160 inertial measurement unit header
*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_BMI160_BMI160_H_
#define ZEPHYR_DRIVERS_SENSOR_BMI160_BMI160_H_
#define DT_DRV_COMPAT bosch_bmi160
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/sensor.h>
#include <zeph... | /content/code_sandbox/drivers/sensor/bosch/bmi160/bmi160.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,606 |
```c
/*
*
*/
/*
* Bus-specific functionality for BMP388s accessed via SPI.
*/
#include <zephyr/logging/log.h>
#include "bmp388.h"
#if BMP388_BUS_SPI
LOG_MODULE_DECLARE(BMP388, CONFIG_SENSOR_LOG_LEVEL);
static int bmp388_bus_check_spi(const union bmp388_bus *bus)
{
return spi_is_ready_dt(&bus->spi) ? 0 : -ENOD... | /content/code_sandbox/drivers/sensor/bosch/bmp388/bmp388_spi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 525 |
```c
/*
*
*/
/*
* Bus-specific functionality for BMP388s accessed via I2C.
*/
#include "bmp388.h"
#if BMP388_BUS_I2C
static int bmp388_bus_check_i2c(const union bmp388_bus *bus)
{
return i2c_is_ready_dt(&bus->i2c) ? 0 : -ENODEV;
}
static int bmp388_reg_read_i2c(const union bmp388_bus *bus,
uint8_t st... | /content/code_sandbox/drivers/sensor/bosch/bmp388/bmp388_i2c.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 237 |
```c
/* Bosch BMP388 pressure sensor
*
*
*
* Datasheet:
* path_to_url
*/
#include <zephyr/kernel.h>
#include <zephyr/pm/device.h>
#include <zephyr/logging/log.h>
#include "bmp388.h"
LOG_MODULE_DECLARE(BMP388, CONFIG_SENSOR_LOG_LEVEL);
static void bmp388_handle_interrupts(const void *arg)
{
const struct devic... | /content/code_sandbox/drivers/sensor/bosch/bmp388/bmp388_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 993 |
```unknown
menuconfig BMP388
bool "Bosch BMP388 pressure sensor"
default y
depends on DT_HAS_BOSCH_BMP388_ENABLED
select I2C if $(dt_compat_on_bus,$(DT_COMPAT_BOSCH_BMP388),i2c)
select SPI if $(dt_compat_on_bus,$(DT_COMPAT_BOSCH_BMP388),spi)
help
Enable driver for the Bosch BMP388 pressure sensor
if BMP388
... | /content/code_sandbox/drivers/sensor/bosch/bmp388/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 331 |
```c
/* Bosch BMP388 pressure sensor
*
*
*
* Datasheet:
* path_to_url
*/
#include <zephyr/logging/log.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/pm/device.h>
#include "bmp388.h"
LOG_MODULE_REGISTER(BMP388, CONFIG_SENSOR_LOG_LEVEL);
#if defined(CONFIG_BMP388_ODR_RUNTIME)
static const struct {
uint1... | /content/code_sandbox/drivers/sensor/bosch/bmp388/bmp388.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,560 |
```objective-c
/* Bosch BMP388 pressure sensor
*
*
*
* Datasheet:
* path_to_url
*/
#ifndef __BMP388_H
#define __BMP388_H
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/sensor.h>
#... | /content/code_sandbox/drivers/sensor/bosch/bmp388/bmp388.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,617 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_BMI323_BMI323_SPI_H_
#define ZEPHYR_DRIVERS_SENSOR_BMI323_BMI323_SPI_H_
#include "bmi323.h"
#include <zephyr/devicetree.h>
#include <zephyr/drivers/spi.h>
#define BMI323_DEVICE_SPI_BUS(inst) \
exter... | /content/code_sandbox/drivers/sensor/bosch/bmi323/bmi323_spi.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 200 |
```c
/*
*
*/
#include "bmi323.h"
#include <zephyr/device.h>
#include <zephyr/drivers/spi.h>
static int bosch_bmi323_spi_read_words(const void *context, uint8_t offset, uint16_t *words,
uint16_t words_count)
{
const struct spi_dt_spec *spi = (const struct spi_dt_spec *)context;
uint8_t address[2];
stru... | /content/code_sandbox/drivers/sensor/bosch/bmi323/bmi323_spi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 615 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_BMI323_BMI323_H_
#define ZEPHYR_DRIVERS_SENSOR_BMI323_BMI323_H_
#include <zephyr/sys/util.h>
#include <zephyr/types.h>
#define IMU_BOSCH_BMI323_REG_ACC_DATA_X (0x03)
#define IMU_BOSCH_BMI323_REG_ACC_DATA_Y (0x04)
#define IMU_BOSCH_BMI323_REG_ACC_DATA_Z (0x05)
#... | /content/code_sandbox/drivers/sensor/bosch/bmi323/bmi323.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,189 |
```unknown
menuconfig BMI323
bool "BMI323 measurement unit"
default y
depends on DT_HAS_BOSCH_BMI323_ENABLED
help
Enable driver for BMI323 IMU sensor.
The driver implements the following features:
* Enable and disable accelerometer and gyroscope respectively
* Set full scale for accelerometer and gyro... | /content/code_sandbox/drivers/sensor/bosch/bmi323/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 277 |
```c
/* bme680.c - Driver for Bosch Sensortec's BME680 temperature, pressure,
* humidity and gas sensor
*
* path_to_url
*/
/*
*
*/
#include <zephyr/drivers/gpio.h>
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/drivers/sens... | /content/code_sandbox/drivers/sensor/bosch/bme680/bme680.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,856 |
```c
/*
*
*/
#include "bmi323.h"
#include "bmi323_spi.h"
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/pm/device.h>
#include <zephyr/pm/device_runtime.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(bosch_bmi323);
... | /content/code_sandbox/drivers/sensor/bosch/bmi323/bmi323.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 10,511 |
```c
/*
*
*/
/*
* Bus-specific functionality for BME680s accessed via SPI.
*/
#include <zephyr/logging/log.h>
#include "bme680.h"
#if BME680_BUS_SPI
LOG_MODULE_DECLARE(bme680, CONFIG_SENSOR_LOG_LEVEL);
static int bme680_bus_check_spi(const union bme680_bus *bus)
{
return spi_is_ready_dt(&bus->spi) ? 0 : -ENOD... | /content/code_sandbox/drivers/sensor/bosch/bme680/bme680_spi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 925 |
```c
/*
*
*/
/*
* Bus-specific functionality for BME680s accessed via I2C.
*/
#include "bme680.h"
#if BME680_BUS_I2C
static int bme680_bus_check_i2c(const union bme680_bus *bus)
{
return device_is_ready(bus->i2c.bus) ? 0 : -ENODEV;
}
static int bme680_reg_read_i2c(const struct device *dev,
uint8_t st... | /content/code_sandbox/drivers/sensor/bosch/bme680/bme680_i2c.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 271 |
```unknown
# BME680 temperature, pressure, humidity and gas sensor configuration options
#
menuconfig BME680
bool "BME680 sensor"
default y
depends on DT_HAS_BOSCH_BME680_ENABLED
select I2C if $(dt_compat_on_bus,$(DT_COMPAT_BOSCH_BME680),i2c)
select SPI if $(dt_compat_on_bus,$(DT_COMPAT_BOSCH_BME680),spi)
help
... | /content/code_sandbox/drivers/sensor/bosch/bme680/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 827 |
```unknown
# zephyr-keep-sorted-start
source "drivers/sensor/maxim/ds18b20/Kconfig"
source "drivers/sensor/maxim/max17055/Kconfig"
source "drivers/sensor/maxim/max17262/Kconfig"
source "drivers/sensor/maxim/max30101/Kconfig"
source "drivers/sensor/maxim/max31790/Kconfig"
source "drivers/sensor/maxim/max31855/Kconfig"
... | /content/code_sandbox/drivers/sensor/maxim/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 154 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_BATTERY_MAX17055_H_
#define ZEPHYR_DRIVERS_SENSOR_BATTERY_MAX17055_H_
#include <zephyr/drivers/i2c.h>
/* Register addresses */
enum {
STATUS = 0x0,
REP_CAP = 0x5,
REP_SOC = 0x6,
INT_TEMP = 0x8,
VCELL = 0x9,
AVG_CUR... | /content/code_sandbox/drivers/sensor/maxim/max17055/max17055.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 737 |
```objective-c
/*
*
*/
#ifndef __ZEPHYR_DRIVERS_SENSOR_BME680_H__
#define __ZEPHYR_DRIVERS_SENSOR_BME680_H__
#include <zephyr/types.h>
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/drivers/i2c.h>
#define DT_DRV_COMPAT bosch_bme680
#define BME680_BUS_SPI... | /content/code_sandbox/drivers/sensor/bosch/bme680/bme680.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,933 |
```unknown
#
config MAX17055
bool "MAX17055 Fuel Gauge"
default y
depends on DT_HAS_MAXIM_MAX17055_ENABLED
select I2C
help
Enable I2C-based driver for MAX17055 Fuel Gauge. This driver supports
reading various sensor settings including charge level percentage,
time to full/empty, design voltage, temperatu... | /content/code_sandbox/drivers/sensor/maxim/max17055/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 84 |
```c
/*
*
*/
/**
* Driver for DS18B20 1-Wire temperature sensors
* A datasheet is available at:
* path_to_url
*
* Driver also support the older DS18S20 1-Wire temperature sensors.
* path_to_url
*
* Parasite power configuration is not supported by the driver.
*/
#include <stdbool.h>
#include <zephyr/device... | /content/code_sandbox/drivers/sensor/maxim/ds18b20/ds18b20.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,896 |
```unknown
# DS18B20 temperature and humidity sensor configuration options
config DS18B20
bool "DS18B20 Temperature Sensor"
default y
depends on DT_HAS_MAXIM_DS18B20_ENABLED || DT_HAS_MAXIM_DS18S20_ENABLED
depends on W1_NET
help
Enable driver for DS18B20 1-Wire temperature sensors.
``` | /content/code_sandbox/drivers/sensor/maxim/ds18b20/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 78 |
```c
/*
*
*/
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(max17055, CONFIG_SENSOR_LOG_LEVEL);
#include "max17055.h"
#include <zephyr/drivers/sensor/max17055.h>
#define DT_DRV_COMP... | /content/code_sandbox/drivers/sensor/maxim/max17055/max17055.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,852 |
```unknown
#
config MAX17262
bool "MAX17262 Fuel Gauge"
default y
depends on DT_HAS_MAXIM_MAX17262_ENABLED
select I2C
help
Enable I2C-based driver for MAX17262 Fuel Gauge. This driver supports
reading various sensor settings including voltage, current, temperature,
time to full/empty and remaining capaci... | /content/code_sandbox/drivers/sensor/maxim/max17262/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 80 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_BATTERY_MAX17262_H_
#define ZEPHYR_DRIVERS_SENSOR_BATTERY_MAX17262_H_
#include <zephyr/drivers/i2c.h>
#define VOLTAGE_MULTIPLIER_UV 1250 / 16
#define CURRENT_MULTIPLIER_NA 156250
#define TIME_MULTIPLIER_MS 5625
/* Register addresses */
enum {
STATUS =... | /content/code_sandbox/drivers/sensor/maxim/max17262/max17262.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 706 |
```c
/*
*
*/
#define DT_DRV_COMPAT maxim_max31875
#include <zephyr/device.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/util.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGIS... | /content/code_sandbox/drivers/sensor/maxim/max31875/max31875.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,999 |
```unknown
# MAX31875 temperature sensor configuration options
config MAX31875
bool "MAX31875 Temperature Sensor"
default y
depends on DT_HAS_MAXIM_MAX31875_ENABLED
select I2C
help
Enable the driver for Maxim MAX31875 Low-Power I2C Temperature Sensors.
``` | /content/code_sandbox/drivers/sensor/maxim/max31875/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 63 |
```c
/*
*
*/
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(max17262, CONFIG_SENSOR_LOG_LEVEL);
#include "max17262.h"
#define DT_DRV_COMPAT maxim_max17262
/**
* @brief Read a register value
*
* Registers have an... | /content/code_sandbox/drivers/sensor/maxim/max17262/max17262.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,062 |
```unknown
# MAX31855 cold-junction compensated thermocouple-to-digital converter configuration options
config MAX31855
bool "MAX31855 sensor"
default y
depends on DT_HAS_MAXIM_MAX31855_ENABLED
select SPI
help
Enable driver for MAX31855 SPI-based Cold-Junction Compensated thermocouple-to-Digital Converter.
`... | /content/code_sandbox/drivers/sensor/maxim/max31855/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 74 |
```c
/*
*
*/
#define DT_DRV_COMPAT maxim_max31855
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/init.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/logging/log.h>
#include <zephyr... | /content/code_sandbox/drivers/sensor/maxim/max31855/max31855.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 901 |
```unknown
config MAX6675
bool "MAX6675 K-thermocouple to digital converter"
default y
depends on DT_HAS_MAXIM_MAX6675_ENABLED
select SPI
help
Enable MAX6675 cold-junction-compensated K-thermocouple to digital
converter.
``` | /content/code_sandbox/drivers/sensor/maxim/max6675/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 65 |
```c
/*
*
*/
#define DT_DRV_COMPAT maxim_max6675
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(max6675, CONFIG_SENSOR_LOG_LEVEL);
/** Thermocouple input bit (goes high if thermocouple is disconnected). */
#d... | /content/code_sandbox/drivers/sensor/maxim/max6675/max6675.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 738 |
```objective-c
/*
*
*/
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/gpio.h>
#define MAX30101_REG_INT_STS1 0x00
#define MAX30101_REG_INT_STS2 0x01
#define MAX30101_REG_INT_EN1 0x02
#define MAX30101_REG_INT_EN2 0x03
#define MAX30101_REG_FIFO_WR 0x04
#define MAX30101... | /content/code_sandbox/drivers/sensor/maxim/max30101/max30101.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 874 |
```c
/*
*
*/
#define DT_DRV_COMPAT maxim_max30101
#include <zephyr/logging/log.h>
#include "max30101.h"
LOG_MODULE_REGISTER(MAX30101, CONFIG_SENSOR_LOG_LEVEL);
static int max30101_sample_fetch(const struct device *dev,
enum sensor_channel chan)
{
struct max30101_data *data = dev->data;
const struct max301... | /content/code_sandbox/drivers/sensor/maxim/max30101/max30101.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,016 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_MAX44009_MAX44009_H_
#define ZEPHYR_DRIVERS_SENSOR_MAX44009_MAX44009_H_
#include <zephyr/sys/util.h>
#include <zephyr/drivers/i2c.h>
#define MAX44009_SAMPLING_CONTROL_BIT BIT(7)
#define MAX44009_CONTINUOUS_SAMPLING BIT(7)
#define MAX44009_SAMPLE_EXPONENT_SHIFT 1... | /content/code_sandbox/drivers/sensor/maxim/max44009/max44009.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 205 |
```unknown
# MAX30101 heart rate sensor
menuconfig MAX30101
bool "MAX30101 Pulse Oximeter and Heart Rate Sensor"
default y
depends on DT_HAS_MAXIM_MAX30101_ENABLED
select I2C
if MAX30101
config MAX30101_SMP_AVE
int "Sample averaging"
range 0 7
default 0
help
To reduce the amount of data throughput, adjac... | /content/code_sandbox/drivers/sensor/maxim/max30101/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,635 |
```unknown
# MAX44009 light sensor configuration options
config MAX44009
bool "MAX44009 Light Sensor"
default y
depends on DT_HAS_MAXIM_MAX44009_ENABLED
select I2C
help
Enable driver for MAX44009 light sensors.
``` | /content/code_sandbox/drivers/sensor/maxim/max44009/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 55 |
```c
/*
*
*/
#define DT_DRV_COMPAT maxim_max44009
#include <zephyr/device.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/logging/log.h>
#include "max44009.h"
LOG_MODULE_REGISTER(MAX44009, CONFIG_SENSOR_LOG_LEVEL);
static int max44009_reg_re... | /content/code_sandbox/drivers/sensor/maxim/max44009/max44009.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,345 |
```unknown
# MAX31865 temperature sensor configuration options
config MAX31865
bool "MAX31865 Temperature Sensor"
default y
depends on DT_HAS_MAXIM_MAX31865_ENABLED
select SPI
help
Enable the driver for Maxim MAX31865 SPI Temperature Sensors.
``` | /content/code_sandbox/drivers/sensor/maxim/max31865/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 56 |
```objective-c
/*
*
*/
#ifndef _MAX31865_H
#define _MAX31865_H
#define DT_DRV_COMPAT maxim_max31865
#include <math.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/sensor/max31865.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/util_m... | /content/code_sandbox/drivers/sensor/maxim/max31865/max31865.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 812 |
```c
/*
*
*/
#define DT_DRV_COMPAT maxim_max31790_fan_fault
#include <zephyr/drivers/mfd/max31790.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/sensor/max31790.h>
#include <zephyr/logging/log.h>
#include "max31790_fan_fault.h"
LOG_MODULE_REGISTER(MAX31790_FAN_FAULT, CONFIG_SENSOR_LOG_LEVEL);
sta... | /content/code_sandbox/drivers/sensor/maxim/max31790/max31790_fan_fault.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 617 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_MAX31790_MAX31790_FAN_FAULT_H_
#define ZEPHYR_DRIVERS_SENSOR_MAX31790_MAX31790_FAN_FAULT_H_
#include <zephyr/drivers/i2c.h>
struct max31790_fan_fault_config {
struct i2c_dt_spec i2c;
};
struct max31790_fan_fault_data {
uint16_t value;
};
#endif /* ZEPHYR_DRI... | /content/code_sandbox/drivers/sensor/maxim/max31790/max31790_fan_fault.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 109 |
```c
/*
*
*/
#define DT_DRV_COMPAT maxim_max31790_fan_speed
#include <zephyr/drivers/mfd/max31790.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/byteorder.h>
#include "max31790_fan_speed.h"
#define FACTOR_RPM_TO_HZ 60
#define TACH_COUNT_FREQUENCY (MAX317... | /content/code_sandbox/drivers/sensor/maxim/max31790/max31790_fan_speed.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,078 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_MAX31790_MAX31790_FAN_SPEED_H_
#define ZEPHYR_DRIVERS_SENSOR_MAX31790_MAX31790_FAN_SPEED_H_
#include <zephyr/drivers/i2c.h>
struct max31790_fan_speed_config {
struct i2c_dt_spec i2c;
uint8_t channel_id;
};
struct max31790_fan_speed_data {
uint16_t rpm;
};
#... | /content/code_sandbox/drivers/sensor/maxim/max31790/max31790_fan_speed.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 115 |
```c
/*
*
*/
#include "max31865.h"
static int max31865_spi_write(const struct device *dev, uint8_t reg, uint8_t *data, size_t len)
{
const struct max31865_config *cfg = dev->config;
const struct spi_buf bufs[] = {{
.buf = ®,
.len = 1,
},
{.buf = data, .len = len}};... | /content/code_sandbox/drivers/sensor/maxim/max31865/max31865.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,596 |
```unknown
# zephyr-keep-sorted-start
source "drivers/sensor/seeed/grove/Kconfig"
source "drivers/sensor/seeed/hm330x/Kconfig"
# zephyr-keep-sorted-stop
``` | /content/code_sandbox/drivers/sensor/seeed/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 50 |
```unknown
config MAX31790_SENSOR
bool "MAX31790 sensors"
default y
depends on MAX31790_FAN_SPEED || MAX31790_FAN_FAULT
help
Enable sensors for the MAX31790 PWM controller.
config MAX31790_FAN_SPEED
bool "MAX31790 fan speed sensor"
default y
depends on DT_HAS_MAXIM_MAX31790_FAN_SPEED_ENABLED
select MFD
he... | /content/code_sandbox/drivers/sensor/maxim/max31790/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 154 |
```unknown
# Seeed Studio HM330x dust particle sensor configuration options
config HM330X
bool "HM330X dust particle sensor"
default y
depends on DT_HAS_SEEED_HM330X_ENABLED
select I2C
help
Enable driver for the HM330X dust particle sensor.
``` | /content/code_sandbox/drivers/sensor/seeed/hm330x/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 64 |
```c
/*
*
*/
#define DT_DRV_COMPAT seeed_hm330x
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/init.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/__assert.h>
LOG_MODULE_REGISTER(HM3301, CONFIG_SENSOR_LOG_LEVEL);
#define HM330X_SELECT_COMM_CMD 0X88
#define HM330X_PM_... | /content/code_sandbox/drivers/sensor/seeed/hm330x/hm330x.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 988 |
```c
/*
*
*/
#define DT_DRV_COMPAT seeed_grove_temperature
#include <zephyr/drivers/adc.h>
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <math.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(grove_temp, CONFIG_SENSOR_LOG_LEVE... | /content/code_sandbox/drivers/sensor/seeed/grove/temperature_sensor.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 942 |
```unknown
# Drivers configuration options for SeeedStudio Grove Devices
config GROVE_SENSORS
bool "Seeed Grove sensors support"
default y
depends on DT_HAS_SEEED_GROVE_LIGHT_ENABLED || DT_HAS_SEEED_GROVE_TEMPERATURE_ENABLED
help
Enable Seeed Grove sensors support.
if GROVE_SENSORS
config GROVE_LIGHT_SENSOR
... | /content/code_sandbox/drivers/sensor/seeed/grove/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 191 |
```unknown
# zephyr-keep-sorted-start
source "drivers/sensor/honeywell/hmc5883l/Kconfig"
source "drivers/sensor/honeywell/mpr/Kconfig"
source "drivers/sensor/honeywell/sm351lt/Kconfig"
# zephyr-keep-sorted-stop
``` | /content/code_sandbox/drivers/sensor/honeywell/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 65 |
```c
/*
*
*/
#define DT_DRV_COMPAT seeed_grove_light
#include <zephyr/drivers/adc.h>
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <math.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(grove_light, CONFIG_SENSOR_LOG_LEVEL);
... | /content/code_sandbox/drivers/sensor/seeed/grove/light_sensor.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 900 |
```unknown
# SM351LT Magnetoresistive Sensor configuration options
menuconfig SM351LT
bool "SM351LT Magnetoresistive Sensor"
default y
depends on DT_HAS_HONEYWELL_SM351LT_ENABLED
depends on (GPIO)
help
Enable GPIO-based driver for SM351LT magnetoresistive
sensor.
if SM351LT
choice SM351LT_TRIGGER_MODE
p... | /content/code_sandbox/drivers/sensor/honeywell/sm351lt/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 260 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_SM351LT_SM351LT_H_
#define ZEPHYR_DRIVERS_SENSOR_SM351LT_SM351LT_H_
#include <stdint.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/kernel.h>
#define SENSOR_ATTR_SM351LT_TRIGGER_TYPE SENSOR_ATTR_PRIV_START
struct sm351lt... | /content/code_sandbox/drivers/sensor/honeywell/sm351lt/sm351lt.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 227 |
```c
/*
*
*/
#define DT_DRV_COMPAT honeywell_sm351lt
#include "sm351lt.h"
#include <zephyr/init.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/logging/log.h>
#include <stdio.h>
#include <zephyr/sys/util.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/sensor.h>
#include <string.h>
LOG_MODULE_RE... | /content/code_sandbox/drivers/sensor/honeywell/sm351lt/sm351lt.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,652 |
```c
/* mpr.c - Driver for Honeywell MPR pressure sensor series */
/*
*
*/
#define DT_DRV_COMPAT honeywell_mpr
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/init.h>... | /content/code_sandbox/drivers/sensor/honeywell/mpr/mpr.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 983 |
```unknown
# MPR pressure sensor configuration options
menuconfig MPR
bool "MPR pressure sensor"
default y
depends on DT_HAS_HONEYWELL_MPR_ENABLED
select I2C
help
Enable driver for MPR pressure sensor.
if MPR
choice
prompt "MPR Pressure Range"
default MPR_PRESSURE_RANGE_0025
config MPR_PRESSURE_RANGE_0001... | /content/code_sandbox/drivers/sensor/honeywell/mpr/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 419 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_MPR_CONFIGURATION_H_
#define ZEPHYR_DRIVERS_SENSOR_MPR_CONFIGURATION_H_
/*
* Pressure Range
*
* MIN is always 0
*/
#define MPR_P_MIN (0)
#if defined(CONFIG_MPR_PRESSURE_RANGE_0001)
#define MPR_P_MAX (1)
#elif defined(CONFIG_MPR_PRESSURE_RANGE_01_6)
#define ... | /content/code_sandbox/drivers/sensor/honeywell/mpr/mpr_configuration.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 691 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_MPR_H_
#define ZEPHYR_DRIVERS_SENSOR_MPR_H_
#include <zephyr/drivers/i2c.h>
/* MPR output measurement command */
#define MPR_OUTPUT_MEASUREMENT_COMMAND (0xAA)
/* MPR status byte masks */
#define MPR_STATUS_MASK_MATH_SATURATION (0x01)
#define MPR_STATUS_MA... | /content/code_sandbox/drivers/sensor/honeywell/mpr/mpr.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 250 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_HMC5883L_HMC5883L_H_
#define ZEPHYR_DRIVERS_SENSOR_HMC5883L_HMC5883L_H_
#include <zephyr/device.h>
#include <zephyr/sys/util.h>
#include <zephyr/types.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/kernel.h>
#define HMC5883L... | /content/code_sandbox/drivers/sensor/honeywell/hmc5883l/hmc5883l.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 636 |
```c
/*
*
*/
#define DT_DRV_COMPAT honeywell_hmc5883l
#include <zephyr/device.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/sys/util.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/logging/log.h>
#include "hmc5883l.h"
LOG_MODULE_DECLARE(HMC58... | /content/code_sandbox/drivers/sensor/honeywell/hmc5883l/hmc5883l_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 998 |
```unknown
menuconfig HMC5883L
bool "HMC5883L magnetometer"
default y
depends on DT_HAS_HONEYWELL_HMC5883L_ENABLED
select I2C
help
Enable driver for HMC5883L I2C-based magnetometer.
if HMC5883L
choice
prompt "Trigger mode"
default HMC5883L_TRIGGER_GLOBAL_THREAD
help
Specify the type of triggering to be... | /content/code_sandbox/drivers/sensor/honeywell/hmc5883l/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 447 |
```unknown
# zephyr-keep-sorted-start
source "drivers/sensor/ams/ams_as5600/Kconfig"
source "drivers/sensor/ams/ams_iAQcore/Kconfig"
source "drivers/sensor/ams/ccs811/Kconfig"
source "drivers/sensor/ams/ens210/Kconfig"
source "drivers/sensor/ams/tcs3400/Kconfig"
source "drivers/sensor/ams/tmd2620/Kconfig"
source "driv... | /content/code_sandbox/drivers/sensor/ams/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 148 |
```c
/*
*
*/
#define DT_DRV_COMPAT honeywell_hmc5883l
#include <zephyr/drivers/i2c.h>
#include <zephyr/init.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/drivers/sensor.h>
#include <string.h>
#include <zephyr/logging/log.h>
#include "hmc5883l.h"
LOG_MODULE_REGISTER(HMC5883... | /content/code_sandbox/drivers/sensor/honeywell/hmc5883l/hmc5883l.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,523 |
```c
/*
*
*/
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/util.h>
#include "tmd2620.h"
LOG_MODULE_DECLARE(TMD2620, CONFIG_SENSOR_LOG_LEVEL);
extern stru... | /content/code_sandbox/drivers/sensor/ams/tmd2620/tmd2620_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 635 |
```objective-c
/*
*
*/
#include <zephyr/drivers/gpio.h>
#ifndef ZEPHYR_DRIVERS_SENSOR_TMD2620_TMD2620_H_
#define ZEPHYR_DRIVERS_SENSOR_TMD2620_TMD2620_H_
#define TMD2620_CHIP_ID (0b110101 << 2)
#define TMD2620_ENABLE_REG 0x80
#define TMD2620_ENABLE_WEN BIT(3)
#define TMD2620_ENABLE_PEN BIT(2)
#define TMD2620_ENAB... | /content/code_sandbox/drivers/sensor/ams/tmd2620/tmd2620.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,713 |
```unknown
menuconfig TMD2620
bool "OSRAM-AMS TMD2620 Proxmimity Sensor"
default y
depends on DT_HAS_AMS_TMD2620_ENABLED
select I2C
help
Enable driver for TMD2620 Sensor
if TMD2620
choice
prompt "Trigger Mode"
default TMD2620_TRIGGER_NONE
help
Specify the type of triggering to be used by the driver.
c... | /content/code_sandbox/drivers/sensor/ams/tmd2620/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 156 |
```c
/*
*
*/
#define DT_DRV_COMPAT ams_tmd2620
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/pm/device.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include <string.h>
#inclu... | /content/code_sandbox/drivers/sensor/ams/tmd2620/tmd2620.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,209 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_ENS210_ENS210_H_
#define ZEPHYR_DRIVERS_SENSOR_ENS210_ENS210_H_
#include <zephyr/device.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/sys/util.h>
/* Registers */
#define ENS210_REG_PART_ID 0x00
#define ENS210_REG_UID ... | /content/code_sandbox/drivers/sensor/ams/ens210/ens210.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 878 |
```unknown
# ENS210 Digital Temperature and Humidity sensor configuration options
menuconfig ENS210
bool "ENS210 Digital Temperature and Humidity sensor"
default y
depends on DT_HAS_AMS_ENS210_ENABLED
select I2C
help
Enable driver for ENS210 Digital Temperature and Humidity sensor.
if ENS210
choice
prompt "... | /content/code_sandbox/drivers/sensor/ams/ens210/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 361 |
```c
/*
*
*/
#define DT_DRV_COMPAT ams_ens210
#include <zephyr/device.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/util.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/logging/log.h>
#include "ens210.h"
... | /content/code_sandbox/drivers/sensor/ams/ens210/ens210.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,577 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.