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
/* ST Microelectronics STTS22H temperature sensor
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT st_stts22h
#include <zephyr/drivers/sensor.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/__assert.h>
#includ... | /content/code_sandbox/drivers/sensor/st/stts22h/stts22h.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,633 |
```c
/* ST Microelectronics STTS22H temperature sensor
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT st_stts22h
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/logging/log.h>
#include "stts22h.h"
LOG_MODULE_DECLARE(STTS22H, CONFIG_SEN... | /content/code_sandbox/drivers/sensor/st/stts22h/stts22h_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,265 |
```unknown
# ST Microelectronics STTS22H temperature sensor
menuconfig STTS22H
bool "STTS22H temperature sensor"
default y
depends on DT_HAS_ST_STTS22H_ENABLED
depends on ZEPHYR_HAL_ST_MODULE
select I2C
select HAS_STMEMSC
select USE_STDC_STTS22H
help
Enable driver for STTS22H I2C-based temperature sensor.
... | /content/code_sandbox/drivers/sensor/st/stts22h/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 135 |
```c
/* ST Microelectronics LIS2DUX12 3-axis accelerometer driver
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT st_lis2dux12
#include <zephyr/logging/log.h>
#include "lis2dux12.h"
LOG_MODULE_DECLARE(LIS2DUX12, CONFIG_SENSOR_LOG_LEVEL);
static void lis2dux12_gpio_callback(const struct device *dev, ... | /content/code_sandbox/drivers/sensor/st/lis2dux12/lis2dux12_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,483 |
```objective-c
/* ST Microelectronics LIS2DUX12 3-axis accelerometer driver
*
*
*
* Datasheet:
* path_to_url
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_LIS2DUX12_LIS2DUX12_H_
#define ZEPHYR_DRIVERS_SENSOR_LIS2DUX12_LIS2DUX12_H_
#include <zephyr/types.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/gpio.h>
... | /content/code_sandbox/drivers/sensor/st/lis2dux12/lis2dux12.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 574 |
```unknown
# ST Microelectronics LIS2DUX12 3-axis accelerometer driver
menuconfig LIS2DUX12
bool "LIS2DUX12 I2C/SPI accelerometer sensor driver"
default y
depends on DT_HAS_ST_LIS2DUX12_ENABLED
depends on ZEPHYR_HAL_ST_MODULE
select I2C if $(dt_compat_on_bus,$(DT_COMPAT_ST_LIS2DUX12),i2c)
select SPI if $(dt_com... | /content/code_sandbox/drivers/sensor/st/lis2dux12/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 216 |
```c
/* ST Microelectronics LIS2DUX12 3-axis accelerometer driver
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT st_lis2dux12
#include <zephyr/drivers/sensor.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <string.h>
#include <zephyr/sys/byteorder.h>
#includ... | /content/code_sandbox/drivers/sensor/st/lis2dux12/lis2dux12.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,892 |
```c
/* ST Microelectronics IIS2DH 3-axis accelerometer driver
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT st_iis2dh
#include <string.h>
#include "iis2dh.h"
#include <zephyr/logging/log.h>
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(spi)
#define IIS2DH_SPI_READM (3 << 6) /* 0xC0 */
#define IIS2DH_SPI_WRI... | /content/code_sandbox/drivers/sensor/st/iis2dh/iis2dh_spi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 702 |
```objective-c
/* ST Microelectronics IIS2DH 3-axis accelerometer driver
*
*
*
* Datasheet:
* path_to_url
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_IIS2DH_IIS2DH_H_
#define ZEPHYR_DRIVERS_SENSOR_IIS2DH_IIS2DH_H_
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/drivers/gpio.h>
#include <ze... | /content/code_sandbox/drivers/sensor/st/iis2dh/iis2dh.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 830 |
```c
/* ST Microelectronics IIS2DH 3-axis accelerometer driver
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT st_iis2dh
#include <string.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/logging/log.h>
#include "iis2dh.h"
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(i2c)
LOG_MODULE_DECLARE(IIS2DH, CONFIG_... | /content/code_sandbox/drivers/sensor/st/iis2dh/iis2dh_i2c.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 443 |
```c
/* ST Microelectronics IIS2DH 3-axis accelerometer driver
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT st_iis2dh
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/logging/log.h>
#include "iis2dh.h"
LOG_MODULE_DECLARE(IIS2DH, CONFI... | /content/code_sandbox/drivers/sensor/st/iis2dh/iis2dh_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,396 |
```unknown
# ST Microelectronics IIS2DH 3-axis accelerometer driver
menuconfig IIS2DH
bool "IIS2DH I2C/SPI accelerometer sensor driver"
default y
depends on DT_HAS_ST_IIS2DH_ENABLED
depends on ZEPHYR_HAL_ST_MODULE
select I2C if $(dt_compat_on_bus,$(DT_COMPAT_ST_IIS2DH),i2c)
select SPI if $(dt_compat_on_bus,$(DT... | /content/code_sandbox/drivers/sensor/st/iis2dh/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 656 |
```c
/* ST Microelectronics IIS2DH 3-axis accelerometer driver
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT st_iis2dh
#include <zephyr/init.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/util_macro.h>
#include <zephyr/logging/log.h>
#include <zephyr/drive... | /content/code_sandbox/drivers/sensor/st/iis2dh/iis2dh.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,443 |
```objective-c
/* ST Microelectronics LIS2DE12 3-axis accelerometer sensor driver
*
*
*
* Datasheet:
* path_to_url
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_LIS2DE12_LIS2DE12_H_
#define ZEPHYR_DRIVERS_SENSOR_LIS2DE12_LIS2DE12_H_
#include <zephyr/drivers/sensor.h>
#include <zephyr/types.h>
#include <zephyr/drivers/gpio.h... | /content/code_sandbox/drivers/sensor/st/lis2de12/lis2de12.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 647 |
```unknown
# ST Microelectronics LIS2DE12 3-axis accelerometer sensor driver
menuconfig LIS2DE12
bool "LIS2DE12 I2C/SPI smartxl Chip"
default y
depends on DT_HAS_ST_LIS2DE12_ENABLED
depends on ZEPHYR_HAL_ST_MODULE
select I2C if $(dt_compat_on_bus,$(DT_COMPAT_ST_LIS2DE12),i2c)
select SPI if $(dt_compat_on_bus,$(... | /content/code_sandbox/drivers/sensor/st/lis2de12/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 209 |
```c
/* ST Microelectronics LIS2DE12 3-axis accelerometer sensor driver
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT st_lis2de12
#include <zephyr/drivers/sensor.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <string.h>
#include <zephyr/sys/byteorder.h>
#i... | /content/code_sandbox/drivers/sensor/st/lis2de12/lis2de12.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,463 |
```c
/* ST Microelectronics LIS2DE12 3-axis accelerometer sensor driver
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT st_lis2de12
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/logging/log.h>
#include "lis2de12.h"
LOG_MODULE_DECLARE(... | /content/code_sandbox/drivers/sensor/st/lis2de12/lis2de12_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,516 |
```unknown
# STM32 vref sensor configuration options
config STM32_VREF
bool "STM32 VREF Sensor"
default y
depends on DT_HAS_ST_STM32_ADC_ENABLED
depends on DT_HAS_ST_STM32_VREF_ENABLED
depends on SOC_FAMILY_STM32 && !SOC_SERIES_STM32F1X
select ADC
help
Enable driver for STM32 Vref sensor.
``` | /content/code_sandbox/drivers/sensor/st/stm32_vref/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 87 |
```c
/*
*
*/
#define DT_DRV_COMPAT st_stm32_vref
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/adc.h>
#include <zephyr/logging/log.h>
#include <zephyr/pm/device_runtime.h>
#include <stm32_ll_adc.h>
#if defined(CONFIG_SOC_SERIES_STM32H5X)
#inclu... | /content/code_sandbox/drivers/sensor/st/stm32_vref/stm32_vref.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,443 |
```objective-c
/* vl53l1_platform.h - Zephyr customization of ST vl53l1x library. */
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_VL53L1X_VL53L1_PLATFORM_H_
#define ZEPHYR_DRIVERS_SENSOR_VL53L1X_VL53L1_PLATFORM_H_
#include <string.h>
#include "vl53l1_ll_def.h"
#include "vl53l1_platform_log.h"
#include "vl53l1_platform_us... | /content/code_sandbox/drivers/sensor/st/vl53l1x/vl53l1_platform.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,460 |
```objective-c
/* vl53l1x_platform_log.h - Zephyr customization of ST vl53l1x library. */
/*
*
*/
#ifndef _VL53L1_PLATFORM_LOG_H_
#define _VL53L1_PLATFORM_LOG_H_
#ifdef VL53L1_LOG_ENABLE
#include "vl53l1_platform_user_config.h"
#ifdef _MSC_VER
# define EWOKPLUS_EXPORTS __declspec(dllexport)
#else
# ... | /content/code_sandbox/drivers/sensor/st/vl53l1x/vl53l1_platform_log.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,845 |
```c
/* vl53l1.c - Driver for ST VL53L1X time of flight sensor */
/*
*
*/
#define DT_DRV_COMPAT st_vl53l1x
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/init.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/sys/__assert.h>
#in... | /content/code_sandbox/drivers/sensor/st/vl53l1x/vl53l1.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,936 |
```c
/* vl53l1_platform.c - Zephyr customization of ST vl53l1x library.
*/
/*
*
*/
#include "vl53l1_platform.h"
#include "vl53l1_platform_log.h"
#include <zephyr/drivers/sensor.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/loggin... | /content/code_sandbox/drivers/sensor/st/vl53l1x/vl53l1_platform.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,478 |
```objective-c
/* vl53l1x_platform_user_config.h - Zephyr customization of ST vl53l1x library. */
/*
*
*/
#ifndef _VL53L1_PLATFORM_USER_CONFIG_H_
#define _VL53L1_PLATFORM_USER_CONFIG_H_
#define VL53L1_BYTES_PER_WORD 2
#define VL53L1_BYTES_PER_DWORD 4
/* Define polling delays */
#def... | /content/code_sandbox/drivers/sensor/st/vl53l1x/vl53l1_platform_user_config.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 561 |
```unknown
# VL53L0X time of flight sensor configuration options
menuconfig VL53L1X
bool "VL53L1X time of flight sensor"
default y
depends on DT_HAS_ST_VL53L1X_ENABLED
depends on ZEPHYR_HAL_ST_MODULE
select I2C
select HAS_STLIB
help
Enable driver for VL53L1X I2C-based time of flight sensor.
if VL53L1X
con... | /content/code_sandbox/drivers/sensor/st/vl53l1x/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 234 |
```objective-c
/* vl53l1_platform_user_data.h - Zephyr customization of ST vl53l1x library. */
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_VL53L1X_VL53L1_PLATFORM_USER_DATA_H_
#define ZEPHYR_DRIVERS_SENSOR_VL53L1X_VL53L1_PLATFORM_USER_DATA_H_
#include "vl53l1_def.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @struc... | /content/code_sandbox/drivers/sensor/st/vl53l1x/vl53l1_platform_user_data.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 626 |
```objective-c
/* vl53l1_types.h - Zephyr customization of ST vl53l1x library, basic type definition. */
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_VL53L1X_VL53L1_TYPES_H_
#define ZEPHYR_DRIVERS_SENSOR_VL53L1X_VL53L1_TYPES_H_
/* Zephyr provides stdint.h and stddef.h, so this is enough to include it.
* If it was not t... | /content/code_sandbox/drivers/sensor/st/vl53l1x/vl53l1_types.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 214 |
```objective-c
/* vl53l1x_platform_user_defines.h - Zephyr customization of ST vl53l1x library. */
/*
*
*/
#ifndef _VL53L1_PLATFORM_USER_DEFINES_H_
#define _VL53L1_PLATFORM_USER_DEFINES_H_
#ifdef __cplusplus
extern "C"
{
#endif
/**
* @file vl53l1_platform_user_defines.h
*
* @brief All end user OS/platform/a... | /content/code_sandbox/drivers/sensor/st/vl53l1x/vl53l1_platform_user_defines.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 366 |
```unknown
menuconfig LPS22HB
bool "LPS22HB pressure and temperature"
default y
depends on DT_HAS_ST_LPS22HB_PRESS_ENABLED
select I2C
help
Enable driver for LPS22HB I2C-based pressure and temperature
sensor.
config LPS22HB_SAMPLING_RATE
int "Output data rate"
default 25
depends on LPS22HB
help
Senso... | /content/code_sandbox/drivers/sensor/st/lps22hb/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 124 |
```c
/* lps22hb.c - Driver for LPS22HB pressure and temperature sensor */
/*
*
*/
#define DT_DRV_COMPAT st_lps22hb_press
#include <zephyr/drivers/sensor.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/__assert.h>
#include <zep... | /content/code_sandbox/drivers/sensor/st/lps22hb/lps22hb.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,250 |
```objective-c
/* sensor_lps25hb.h - header file for LPS22HB pressure and temperature
* sensor driver
*/
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_LPS22HB_LPS22HB_H_
#define ZEPHYR_DRIVERS_SENSOR_LPS22HB_LPS22HB_H_
#include <stdint.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/sys/util.h>
#define LPS22HB_REG_... | /content/code_sandbox/drivers/sensor/st/lps22hb/lps22hb.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,978 |
```c
/* ST Microelectronics I3G4250D gyro driver
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT st_i3g4250d
#include <zephyr/init.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/logging/log.h>
#include "i3g4250d.h"
#define RA... | /content/code_sandbox/drivers/sensor/st/i3g4250d/i3g4250d.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,810 |
```unknown
# I3G4250D three-axis digital output gyroscope
config I3G4250D
bool "I3G4250D three-axis digital output gyroscope"
default y
depends on DT_HAS_ST_I3G4250D_ENABLED
depends on ZEPHYR_HAL_ST_MODULE
select SPI
select HAS_STMEMSC
select USE_STDC_I3G4250D
help
Enable driver for I3G4250D SPI-based thre... | /content/code_sandbox/drivers/sensor/st/i3g4250d/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 106 |
```c
/*
*
*/
#define DT_DRV_COMPAT st_i3g4250d
#include <zephyr/logging/log.h>
#include "i3g4250d.h"
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(spi)
#define I3G4250D_SPI_READM (3 << 6) /* 0xC0 */
#define I3G4250D_SPI_WRITEM (1 << 6) /* 0x40 */
LOG_MODULE_DECLARE(i3g4250d, CONFIG_SENSOR_LOG_LEVEL);... | /content/code_sandbox/drivers/sensor/st/i3g4250d/i3g4250d_spi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 742 |
```objective-c
/* ST Microelectronics I3G4250D gyro driver
*
*
*
* Datasheet:
* path_to_url
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_I3G4250D_I3G4250D_H_
#define ZEPHYR_DRIVERS_SENSOR_I3G4250D_I3G4250D_H_
#include <stdint.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/senso... | /content/code_sandbox/drivers/sensor/st/i3g4250d/i3g4250d.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 207 |
```objective-c
/* ST Microelectronics LSM6DSO16IS 6-axis IMU sensor driver
*
*
*
* Datasheet:
* path_to_url
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_LSM6DSO16IS_LSM6DSO16IS_H_
#define ZEPHYR_DRIVERS_SENSOR_LSM6DSO16IS_LSM6DSO16IS_H_
#include <zephyr/drivers/sensor.h>
#include <zephyr/types.h>
#include <zephyr/drivers/g... | /content/code_sandbox/drivers/sensor/st/lsm6dso16is/lsm6dso16is.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,104 |
```c
/* ST Microelectronics LSM6DSO16IS 6-axis IMU sensor driver
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT st_lsm6dso16is
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/logging/log.h>
#include "lsm6dso16is.h"
LOG_MODULE_DECLARE(L... | /content/code_sandbox/drivers/sensor/st/lsm6dso16is/lsm6dso16is_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,004 |
```unknown
# ST Microelectronics LSM6DSO16IS 6-axis IMU sensor driver
menuconfig LSM6DSO16IS
bool "LSM6DSO16IS I2C/SPI accelerometer and gyroscope Chip"
default y
depends on DT_HAS_ST_LSM6DSO16IS_ENABLED
depends on ZEPHYR_HAL_ST_MODULE
select I2C if $(dt_compat_on_bus,$(DT_COMPAT_ST_LSM6DSO16IS),i2c)
select SPI... | /content/code_sandbox/drivers/sensor/st/lsm6dso16is/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 646 |
```c
/* ST Microelectronics LSM6DSO16IS 6-axis IMU sensor driver
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT st_lsm6dso16is
#include <zephyr/drivers/sensor.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <string.h>
#include <zephyr/sys/byteorder.h>
#inclu... | /content/code_sandbox/drivers/sensor/st/lsm6dso16is/lsm6dso16is.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7,793 |
```c
/* ST Microelectronics LSM6DSO16IS 6-axis IMU sensor driver
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT st_lsm6dso16is
#include <zephyr/device.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/sys/util.h>
#include <zephyr/ke... | /content/code_sandbox/drivers/sensor/st/lsm6dso16is/lsm6dso16is_shub.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7,829 |
```c
/*
*
*/
#define DT_DRV_COMPAT st_stm32_qdec
/** @file
* @brief STM32 family Quadrature Decoder (QDEC) driver.
*/
#include <errno.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/sys/util.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/p... | /content/code_sandbox/drivers/sensor/st/qdec_stm32/qdec_stm32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,379 |
```unknown
#
config QDEC_STM32
bool "STM32 QDEC driver"
default y
depends on DT_HAS_ST_STM32_QDEC_ENABLED
select USE_STM32_LL_TIM
help
STM32 family Quadrature Decoder driver.
``` | /content/code_sandbox/drivers/sensor/st/qdec_stm32/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 52 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_LSM9DS1_LSM9DS1_H_
#define ZEPHYR_DRIVERS_SENSOR_LSM9DS1_LSM9DS1_H_
#include "lsm9ds1_reg.h"
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(spi)
#include <zephyr/drivers/spi.h>
#endif /* DT_ANY_INST_ON_BUS_STATUS_OKAY(spi) */
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(i2c)
#includ... | /content/code_sandbox/drivers/sensor/st/lsm9ds1/lsm9ds1.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 374 |
```unknown
menuconfig LSM9DS1
bool "LSM9DS1 I2C accelerometer and gyroscope chip"
default y
depends on DT_HAS_ST_LSM9DS1_ENABLED
select I2C
select HAS_STMEMSC
select USE_STDC_LSM9DS1
if LSM9DS1
config LSM9DS1_ENABLE_TEMP
bool "LSM9DS1 Temperature sensor"
help
Enable/disable temperature
endif #LSM9DS1
``... | /content/code_sandbox/drivers/sensor/st/lsm9ds1/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 101 |
```c
/* ST Microelectronics LIS2DH 3-axis accelerometer driver
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT st_lis2dh
#include <string.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/logging/log.h>
#include "lis2dh.h"
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(i2c)
LOG_MODULE_DECLARE(lis2dh, CONFIG_... | /content/code_sandbox/drivers/sensor/st/lis2dh/lis2dh_i2c.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 655 |
```c
/* ST Microelectronics LIS2DH 3-axis accelerometer driver
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT st_lis2dh
#include <string.h>
#include "lis2dh.h"
#include <zephyr/logging/log.h>
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(spi)
LOG_MODULE_DECLARE(lis2dh, CONFIG_SENSOR_LOG_LEVEL);
#define LIS2... | /content/code_sandbox/drivers/sensor/st/lis2dh/lis2dh_spi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,063 |
```c
/*
*
*/
#define DT_DRV_COMPAT st_lsm9ds1
#include <zephyr/drivers/sensor.h>
#include <zephyr/logging/log.h>
#include "lsm9ds1.h"
#include <stmemsc.h>
LOG_MODULE_REGISTER(LSM9DS1, CONFIG_SENSOR_LOG_LEVEL);
/* Sensitivity of the accelerometer, indexed by the raw full scale value. Unit is g/ LSB */
static cons... | /content/code_sandbox/drivers/sensor/st/lsm9ds1/lsm9ds1.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,960 |
```c
/*
*
*/
#define DT_DRV_COMPAT st_lis2dh
#include <zephyr/sys/util.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#define START_TRIG_INT1 0
#define START_TRIG_INT2 1
#define TRIGGED_INT1 4
#define TRIGGED_INT2 5
LOG_MODULE_DECLARE(lis2dh, CONFIG_SENSOR_LOG_LEVEL);
#include "lis2dh.h"
s... | /content/code_sandbox/drivers/sensor/st/lis2dh/lis2dh_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,444 |
```c
/*
*
*/
#define DT_DRV_COMPAT st_lis2dh
#include <zephyr/init.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/logging/log.h>
#include <zephyr/pm/device.h>
LOG_MODULE_REGISTER(lis2dh, CONFIG_SENSOR_LOG_LEVEL);
#include "lis2dh.h"
#define ACCEL_SCALE(sensitivity) \
((... | /content/code_sandbox/drivers/sensor/st/lis2dh/lis2dh.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,057 |
```unknown
# LIS2DH Three Axis Accelerometer configuration options
menuconfig LIS2DH
bool "LIS2DH Three Axis Accelerometer"
default y
depends on DT_HAS_ST_LIS2DH_ENABLED
select I2C if $(dt_compat_on_bus,$(DT_COMPAT_ST_LIS2DH),i2c)
select SPI if $(dt_compat_on_bus,$(DT_COMPAT_ST_LIS2DH),spi)
help
Enable SPI/I... | /content/code_sandbox/drivers/sensor/st/lis2dh/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 992 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_LIS2DH_LIS2DH_H_
#define ZEPHYR_DRIVERS_SENSOR_LIS2DH_LIS2DH_H_
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/sys/util.h>
#include <stdint.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/sensor.h>
#include <string.h>
#define... | /content/code_sandbox/drivers/sensor/st/lis2dh/lis2dh.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,932 |
```c
/* ST Microelectronics LSM6DSV16X 6-axis IMU sensor driver
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT st_lsm6dsv16x
#include <zephyr/drivers/sensor.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <string.h>
#include <zephyr/sys/byteorder.h>
#include... | /content/code_sandbox/drivers/sensor/st/lsm6dsv16x/lsm6dsv16x.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 8,409 |
```c
/* ST Microelectronics LSM6DSV16X 6-axis IMU sensor driver
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT st_lsm6dsv16x
#include <zephyr/device.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/sys/util.h>
#include <zephyr/kern... | /content/code_sandbox/drivers/sensor/st/lsm6dsv16x/lsm6dsv16x_shub.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7,823 |
```objective-c
/* ST Microelectronics LSM6DSV16X 6-axis IMU sensor driver
*
*
*
* Datasheet:
* path_to_url
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_LSM6DSV16X_LSM6DSV16X_H_
#define ZEPHYR_DRIVERS_SENSOR_LSM6DSV16X_LSM6DSV16X_H_
#include <zephyr/drivers/sensor.h>
#include <zephyr/types.h>
#include <zephyr/drivers/gpio.h... | /content/code_sandbox/drivers/sensor/st/lsm6dsv16x/lsm6dsv16x.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,121 |
```unknown
# ST Microelectronics LSM6DSV16X 6-axis IMU sensor driver
menuconfig LSM6DSV16X
bool "LSM6DSV16X I2C/SPI accelerometer and gyroscope Chip"
default y
depends on DT_HAS_ST_LSM6DSV16X_ENABLED
depends on ZEPHYR_HAL_ST_MODULE
select I2C if $(dt_compat_on_bus,$(DT_COMPAT_ST_LSM6DSV16X),i2c)
select SPI if $... | /content/code_sandbox/drivers/sensor/st/lsm6dsv16x/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 646 |
```c
/* ST Microelectronics LSM6DSV16X 6-axis IMU sensor driver
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT st_lsm6dsv16x
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/logging/log.h>
#include "lsm6dsv16x.h"
LOG_MODULE_DECLARE(LSM6... | /content/code_sandbox/drivers/sensor/st/lsm6dsv16x/lsm6dsv16x_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,581 |
```objective-c
/* vl53l0x_types.h - Zephyr customization of ST vl53l0x library,
* basic type definition.
*/
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_VL53L0X_VL53L0X_TYPES_H_
#define ZEPHYR_DRIVERS_SENSOR_VL53L0X_VL53L0X_TYPES_H_
/* Zephyr provides stdint.h and stddef.h, so this is enough to include it.
* If it wa... | /content/code_sandbox/drivers/sensor/st/vl53l0x/vl53l0x_types.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 219 |
```c
/* vl53l0x_platform.c - Zephyr customization of ST vl53l0x library.
* (library is located in ext/hal/st/lib/sensor/vl53l0x/)
*/
/*
*
*/
#include "vl53l0x_platform.h"
#include <zephyr/drivers/sensor.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/drivers/i2c... | /content/code_sandbox/drivers/sensor/st/vl53l0x/vl53l0x_platform.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,695 |
```objective-c
/* vl53l0x_platform_log.h - Zephyr customization of ST vl53l0x library,
* logging functions, not implemented
*/
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_VL53L0X_VL53L0X_PLATFORM_LOG_H_
#define ZEPHYR_DRIVERS_SENSOR_VL53L0X_VL53L0X_PLATFORM_LOG_H_
#include <stdio.h>
#include <string.h>
/* LOG Functio... | /content/code_sandbox/drivers/sensor/st/vl53l0x/vl53l0x_platform_log.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 325 |
```unknown
# VL53L0X time of flight sensor configuration options
menuconfig VL53L0X
bool "VL53L0X time of flight sensor"
default y
depends on DT_HAS_ST_VL53L0X_ENABLED
depends on ZEPHYR_HAL_ST_MODULE
select I2C
select HAS_STLIB
help
Enable driver for VL53L0X I2C-based time of flight sensor.
config VL53L0X_... | /content/code_sandbox/drivers/sensor/st/vl53l0x/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 268 |
```objective-c
/* vl53l0x_platform.h - Zephyr customization of ST vl53l0x library.
* (library is located in ext/hal/st/lib/sensor/vl53l0x/)
*/
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_VL53L0X_VL53L0X_PLATFORM_H_
#define ZEPHYR_DRIVERS_SENSOR_VL53L0X_VL53L0X_PLATFORM_H_
#include "vl53l0x_def.h"
#include "vl53l0x_pla... | /content/code_sandbox/drivers/sensor/st/vl53l0x/vl53l0x_platform.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,827 |
```c
/* vl53l0x.c - Driver for ST VL53L0X time of flight sensor */
#define DT_DRV_COMPAT st_vl53l0x
/*
*
*/
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/init.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/pm/device.h>
#incl... | /content/code_sandbox/drivers/sensor/st/vl53l0x/vl53l0x.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,293 |
```c
/* ST Microelectronics LIS2MDL 3-axis magnetometer sensor
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT st_lis2mdl
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/logging/log.h>
#include "lis2mdl.h"
LOG_MODULE_DECLARE(LIS2MDL, CON... | /content/code_sandbox/drivers/sensor/st/lis2mdl/lis2mdl_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,208 |
```objective-c
/* ST Microelectronics LIS2MDL 3-axis magnetometer sensor
*
*
*
* Datasheet:
* path_to_url
*/
#ifndef __MAG_LIS2MDL_H
#define __MAG_LIS2MDL_H
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/sys/util.h>
#include <stmemsc.h>
#include "lis2mdl_reg.h"
#if DT_ANY_... | /content/code_sandbox/drivers/sensor/st/lis2mdl/lis2mdl.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 516 |
```unknown
menuconfig LIS2MDL
bool "LIS2MDL Magnetometer"
default y
depends on DT_HAS_ST_LIS2MDL_ENABLED
depends on ZEPHYR_HAL_ST_MODULE
select I2C if $(dt_compat_on_bus,$(DT_COMPAT_ST_LIS2MDL),i2c)
select SPI if $(dt_compat_on_bus,$(DT_COMPAT_ST_LIS2MDL),spi)
select HAS_STMEMSC
select USE_STDC_LIS2MDL
help
... | /content/code_sandbox/drivers/sensor/st/lis2mdl/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 387 |
```c
/* ST Microelectronics LIS2MDL 3-axis magnetometer sensor
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT st_lis2mdl
#include <zephyr/init.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/pm/device.h>
#include <string.h>
#in... | /content/code_sandbox/drivers/sensor/st/lis2mdl/lis2mdl.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,217 |
```c
/*
*
*/
#define DT_DRV_COMPAT st_lsm6dsl
#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 "lsm6dsl.h"
LOG_MODULE_DECLARE(LSM6DSL, CONFI... | /content/code_sandbox/drivers/sensor/st/lsm6dsl/lsm6dsl_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,139 |
```c
/* lsm6dsl_spi.c - SPI routines for LSM6DSL driver
*/
/*
*
*/
#define DT_DRV_COMPAT st_lsm6dsl
#include <string.h>
#include <zephyr/logging/log.h>
#include "lsm6dsl.h"
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(spi)
#define LSM6DSL_SPI_READ (1 << 7)
LOG_MODULE_DECLARE(LSM6DSL, CONFIG_SENSOR_LOG_LEVEL);
static ... | /content/code_sandbox/drivers/sensor/st/lsm6dsl/lsm6dsl_spi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 930 |
```c
/* lsm6dsl.c - Driver for LSM6DSL accelerometer, gyroscope and
* temperature sensor
*/
/*
*
*/
#define DT_DRV_COMPAT st_lsm6dsl
#include <zephyr/drivers/sensor.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <string.h>
#include <zephyr/sys/byteorder.h>
#include <ze... | /content/code_sandbox/drivers/sensor/st/lsm6dsl/lsm6dsl.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7,401 |
```c
/* lsm6dsl_i2c.c - I2C routines for LSM6DSL driver
*/
/*
*
*/
#define DT_DRV_COMPAT st_lsm6dsl
#include <string.h>
#include <zephyr/logging/log.h>
#include "lsm6dsl.h"
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(i2c)
LOG_MODULE_DECLARE(LSM6DSL, CONFIG_SENSOR_LOG_LEVEL);
static int lsm6dsl_i2c_read_data(const stru... | /content/code_sandbox/drivers/sensor/st/lsm6dsl/lsm6dsl_i2c.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 555 |
```unknown
# LSM6DSL accelerometer and gyroscope sensor configuration
# options
menuconfig LSM6DSL
bool "LSM6DSL I2C/SPI accelerometer and gyroscope Chip"
default y
depends on DT_HAS_ST_LSM6DSL_ENABLED
select I2C if $(dt_compat_on_bus,$(DT_COMPAT_ST_LSM6DSL),i2c)
select SPI if $(dt_compat_on_bus,$(DT_COMPAT_ST_L... | /content/code_sandbox/drivers/sensor/st/lsm6dsl/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 993 |
```objective-c
/* sensor_lsm6dsl.h - header file for LSM6DSL accelerometer, gyroscope and
* temperature sensor driver
*/
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_LSM6DSL_LSM6DSL_H_
#define ZEPHYR_DRIVERS_SENSOR_LSM6DSL_LSM6DSL_H_
#include <zephyr/drivers/sensor.h>
#include <zephyr/types.h>
#include <zephyr/drivers/... | /content/code_sandbox/drivers/sensor/st/lsm6dsl/lsm6dsl.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9,159 |
```c
/*
*
*/
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/adc.h>
#include <zephyr/logging/log.h>
#include <zephyr/pm/device_runtime.h>
#include <stm32_ll_adc.h>
LOG_MODULE_REGISTER(stm32_vbat, CONFIG_SENSOR_LOG_LEVEL);
#if DT_HAS_COMPAT_STATU... | /content/code_sandbox/drivers/sensor/st/stm32_vbat/stm32_vbat.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,194 |
```c
/*
*
*/
#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 "lsm6dsl.h"
LOG_MODULE_DECLARE(LSM6DSL, CONFIG_SENSOR_LOG_LEVEL);
#define LSM... | /content/code_sandbox/drivers/sensor/st/lsm6dsl/lsm6dsl_shub.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,923 |
```unknown
# STM32 battery sensor configuration options
config STM32_VBAT
bool "STM32 Vbat Sensor"
default y
depends on DT_HAS_ST_STM32_VBAT_ENABLED
depends on DT_HAS_ST_STM32_ADC_ENABLED
depends on SOC_FAMILY_STM32 && !SOC_SERIES_STM32F1X
select ADC
help
Enable driver for STM32 Vbat sensor and then also AD... | /content/code_sandbox/drivers/sensor/st/stm32_vbat/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 90 |
```unknown
# LSM9DS0 accelerometer, magnetometer and temperature configuration options
menuconfig LSM9DS0_MFD
bool "LSM9DS0 I2C accelerometer, magnetometer and temperature sensor chip"
default y
depends on DT_HAS_ST_LSM9DS0_MFD_ENABLED
select I2C
help
Enable driver for LSM9DS0 I2C-based MFD sensor.
if LSM9DS... | /content/code_sandbox/drivers/sensor/st/lsm9ds0_mfd/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,271 |
```c
/* sensor_lsm9ds0_mfd.c - Driver for LSM9DS0 accelerometer, magnetometer
* and temperature (MFD) sensor driver
*/
/*
*
*/
#define DT_DRV_COMPAT st_lsm9ds0_mfd
#include <zephyr/drivers/sensor.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/drivers/i2c.h>
#in... | /content/code_sandbox/drivers/sensor/st/lsm9ds0_mfd/lsm9ds0_mfd.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7,050 |
```c
/* ST Microelectronics IIS2MDC 3-axis magnetometer sensor
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT st_iis2mdc
#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>
#... | /content/code_sandbox/drivers/sensor/st/iis2mdc/iis2mdc.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,880 |
```c
/* ST Microelectronics IIS2MDC 3-axis magnetometer sensor
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT st_iis2mdc
#include <string.h>
#include "iis2mdc.h"
#include <zephyr/logging/log.h>
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(spi)
#define IIS2MDC_SPI_READ (1 << 7)
LOG_MODULE_DECLARE(IIS2MDC, C... | /content/code_sandbox/drivers/sensor/st/iis2mdc/iis2mdc_spi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 718 |
```c
/* ST Microelectronics IIS2MDC 3-axis magnetometer sensor
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT st_iis2mdc
#include <string.h>
#include <zephyr/logging/log.h>
#include "iis2mdc.h"
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(i2c)
LOG_MODULE_DECLARE(IIS2MDC, CONFIG_SENSOR_LOG_LEVEL);
static in... | /content/code_sandbox/drivers/sensor/st/iis2mdc/iis2mdc_i2c.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 437 |
```objective-c
/* ST Microelectronics IIS2MDC 3-axis magnetometer sensor
*
*
*
* Datasheet:
* path_to_url
*/
#ifndef __MAG_IIS2MDC_H
#define __MAG_IIS2MDC_H
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/util.h>
#include <stmemsc.h>
#include "... | /content/code_sandbox/drivers/sensor/st/iis2mdc/iis2mdc.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 605 |
```objective-c
/* sensor_lsm9ds0_mfd.h - header file for LSM9DS0 accelerometer, magnetometer
* and temperature (MFD) sensor driver
*/
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_LSM9DS0_MFD_LSM9DS0_MFD_H_
#define ZEPHYR_DRIVERS_SENSOR_LSM9DS0_MFD_LSM9DS0_MFD_H_
#include <zephyr/types.h>
#include <zephyr/sys/util.h>
#i... | /content/code_sandbox/drivers/sensor/st/lsm9ds0_mfd/lsm9ds0_mfd.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 8,571 |
```unknown
menuconfig IIS2MDC
bool "IIS2MDC Magnetometer"
default y
depends on DT_HAS_ST_IIS2MDC_ENABLED
depends on ZEPHYR_HAL_ST_MODULE
select I2C if $(dt_compat_on_bus,$(DT_COMPAT_ST_IIS2MDC),i2c)
select SPI if $(dt_compat_on_bus,$(DT_COMPAT_ST_IIS2MDC),spi)
select HAS_STMEMSC
select USE_STDC_IIS2MDC
help
... | /content/code_sandbox/drivers/sensor/st/iis2mdc/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 405 |
```c
/* ST Microelectronics IIS2MDC 3-axis magnetometer sensor
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT st_iis2mdc
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/logging/log.h>
#include "iis2mdc.h"
LOG_MODULE_DECLARE(IIS2MDC, CON... | /content/code_sandbox/drivers/sensor/st/iis2mdc/iis2mdc_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,214 |
```objective-c
/* ST Microelectronics IIS2ICLX 2-axis accelerometer sensor driver
*
*
*
* Datasheet:
* path_to_url
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_IIS2ICLX_IIS2ICLX_H_
#define ZEPHYR_DRIVERS_SENSOR_IIS2ICLX_IIS2ICLX_H_
#include <zephyr/drivers/sensor.h>
#include <zephyr/types.h>
#include <zephyr/drivers/gpio.h... | /content/code_sandbox/drivers/sensor/st/iis2iclx/iis2iclx.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 905 |
```c
/* ST Microelectronics IIS2ICLX 2-axis accelerometer sensor driver
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT st_iis2iclx
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/logging/log.h>
#include "iis2iclx.h"
LOG_MODULE_DECLARE(... | /content/code_sandbox/drivers/sensor/st/iis2iclx/iis2iclx_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,282 |
```c
/* ST Microelectronics IIS2ICLX 2-axis accelerometer sensor driver
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT st_iis2iclx
#include <zephyr/device.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/sys/util.h>
#include <zephy... | /content/code_sandbox/drivers/sensor/st/iis2iclx/iis2iclx_shub.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7,388 |
```c
/* ST Microelectronics IIS2ICLX 2-axis accelerometer sensor driver
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT st_iis2iclx
#include <zephyr/drivers/sensor.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <string.h>
#include <zephyr/sys/byteorder.h>
#i... | /content/code_sandbox/drivers/sensor/st/iis2iclx/iis2iclx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,437 |
```unknown
# ST Microelectronics IIS2ICLX 2-axis accelerometer sensor driver
menuconfig IIS2ICLX
bool "IIS2ICLX I2C/SPI accelerometer Chip"
default y
depends on DT_HAS_ST_IIS2ICLX_ENABLED
depends on ZEPHYR_HAL_ST_MODULE
select I2C if $(dt_compat_on_bus,$(DT_COMPAT_ST_IIS2ICLX),i2c)
select SPI if $(dt_compat_on_... | /content/code_sandbox/drivers/sensor/st/iis2iclx/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 630 |
```objective-c
/* ST Microelectronics LIS2DW12 3-axis accelerometer driver
*
*
*
* Datasheet:
* path_to_url
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_LIS2DW12_LIS2DW12_H_
#define ZEPHYR_DRIVERS_SENSOR_LIS2DW12_LIS2DW12_H_
#include <zephyr/drivers/spi.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/sys/util.h>
#incl... | /content/code_sandbox/drivers/sensor/st/lis2dw12/lis2dw12.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,289 |
```unknown
# ST Microelectronics LIS2DW12 3-axis accelerometer driver
menuconfig LIS2DW12
bool "LIS2DW12 I2C/SPI accelerometer sensor driver"
default y
depends on DT_HAS_ST_LIS2DW12_ENABLED
depends on ZEPHYR_HAL_ST_MODULE
select I2C if $(dt_compat_on_bus,$(DT_COMPAT_ST_LIS2DW12),i2c)
select SPI if $(dt_compat_o... | /content/code_sandbox/drivers/sensor/st/lis2dw12/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 528 |
```c
/* ST Microelectronics LIS2DW12 3-axis accelerometer driver
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT st_lis2dw12
#include <zephyr/init.h>
#include <stdlib.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/logging/log.h>
#include <zephyr/drivers/sensor.h... | /content/code_sandbox/drivers/sensor/st/lis2dw12/lis2dw12.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,849 |
```c
/* ST Microelectronics LIS2DW12 3-axis accelerometer driver
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT st_lis2dw12
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/logging/log.h>
#include "lis2dw12.h"
LOG_MODULE_DECLARE(LIS2DW1... | /content/code_sandbox/drivers/sensor/st/lis2dw12/lis2dw12_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,357 |
```c
/*
*
*/
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/adc.h>
#include <zephyr/logging/log.h>
#include <zephyr/pm/device_runtime.h>
#include <stm32_ll_adc.h>
#if defined(CONFIG_SOC_SERIES_STM32H5X)
#include <stm32_ll_icache.h>
#endif /* CONF... | /content/code_sandbox/drivers/sensor/st/stm32_temp/stm32_temp.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,834 |
```unknown
# STM32 temperature sensor configuration options
config STM32_TEMP
bool "STM32 Temperature Sensor"
default y
depends on SOC_FAMILY_STM32
depends on DT_HAS_ST_STM32_ADC_ENABLED
depends on DT_HAS_ST_STM32_TEMP_ENABLED || \
DT_HAS_ST_STM32_TEMP_CAL_ENABLED || \
DT_HAS_ST_STM32C0_TEMP_CAL_ENABLE... | /content/code_sandbox/drivers/sensor/st/stm32_temp/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 97 |
```objective-c
/* ST Microelectronics LPS22HH pressure and temperature sensor
*
*
*
* Datasheet:
* path_to_url
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_LPS22HH_LPS22HH_H_
#define ZEPHYR_DRIVERS_SENSOR_LPS22HH_LPS22HH_H_
#include <stdint.h>
#include <stmemsc.h>
#include "lps22hh_reg.h"
#if DT_ANY_INST_ON_BUS_STATUS_OKA... | /content/code_sandbox/drivers/sensor/st/lps22hh/lps22hh.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 588 |
```unknown
# ST Microelectronics LPS22HH pressure and temperature sensor
menuconfig LPS22HH
bool "LPS22HH pressure and temperature"
default y
depends on DT_HAS_ST_LPS22HH_ENABLED
depends on ZEPHYR_HAL_ST_MODULE
select I2C if $(dt_compat_on_bus,$(DT_COMPAT_ST_LPS22HH),i2c)
select I3C if $(dt_compat_on_bus,$(DT_C... | /content/code_sandbox/drivers/sensor/st/lps22hh/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 389 |
```c
/* ST Microelectronics LPS22HH pressure and temperature sensor
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT st_lps22hh
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/logging/log.h>
#include "lps22hh.h"
LOG_MODULE_DECLARE(LPS22H... | /content/code_sandbox/drivers/sensor/st/lps22hh/lps22hh_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,872 |
```c
/* ST Microelectronics IIS2DLPC 3-axis accelerometer driver
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT st_iis2dlpc
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/logging/log.h>
#include "iis2dlpc.h"
LOG_MODULE_DECLARE(IIS2DLP... | /content/code_sandbox/drivers/sensor/st/iis2dlpc/iis2dlpc_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,569 |
```unknown
# ST Microelectronics IIS2DLPC 3-axis accelerometer driver
menuconfig IIS2DLPC
bool "IIS2DLPC I2C/SPI accelerometer sensor driver"
default y
depends on DT_HAS_ST_IIS2DLPC_ENABLED
depends on ZEPHYR_HAL_ST_MODULE
select I2C if $(dt_compat_on_bus,$(DT_COMPAT_ST_IIS2DLPC),i2c)
select SPI if $(dt_compat_o... | /content/code_sandbox/drivers/sensor/st/iis2dlpc/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 438 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.