text
stringlengths
9
39.2M
dir
stringlengths
25
226
lang
stringclasses
163 values
created_date
timestamp[s]
updated_date
timestamp[s]
repo_name
stringclasses
751 values
repo_full_name
stringclasses
752 values
star
int64
1.01k
183k
len_tokens
int64
1
18.5M
```c /* * */ #include "tsl2591.h" LOG_MODULE_DECLARE(TSL2591, CONFIG_SENSOR_LOG_LEVEL); static inline void tsl2591_setup_int(const struct device *dev, bool enable) { const struct tsl2591_config *config = dev->config; gpio_flags_t flags = enable ? GPIO_INT_EDGE_TO_ACTIVE : GPIO_INT_DISABLE; gpio_pin_interrupt_c...
/content/code_sandbox/drivers/sensor/ams/tsl2591/tsl2591_trigger.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,061
```c /* * */ #define DT_DRV_COMPAT ams_tsl2591 #include <zephyr/device.h> #include <zephyr/pm/device.h> #include <zephyr/sys/byteorder.h> #include "tsl2591.h" LOG_MODULE_REGISTER(TSL2591, CONFIG_SENSOR_LOG_LEVEL); static int tsl2591_reg_read(const struct device *dev, uint8_t reg, uint8_t *buf, uint8_t size) { co...
/content/code_sandbox/drivers/sensor/ams/tsl2591/tsl2591.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,975
```unknown menuconfig TSL2591 bool "OSRAM-AMS TSL2591 light sensor" default y depends on DT_HAS_AMS_TSL2591_ENABLED select I2C help Enable driver for TSL2591 sensor. if TSL2591 config TSL2591_FETCH_WAIT bool "Wait for valid sensor reading before fetch" help If set, the driver will automatically wait for ...
/content/code_sandbox/drivers/sensor/ams/tsl2591/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
358
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_TSL2591_TSL2591_H_ #define ZEPHYR_DRIVERS_SENSOR_TSL2591_TSL2591_H_ #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/i2c.h> #include <zephyr/logging/log.h> #include <zephyr/drivers/sensor/tsl2591.h> /* Device Identification */ #define TSL2591_DEV_ID 0x5...
/content/code_sandbox/drivers/sensor/ams/tsl2591/tsl2591.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,573
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_TSL2540_TSL2540_H_ #define ZEPHYR_DRIVERS_SENSOR_TSL2540_TSL2540_H_ #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/i2c.h> #include <zephyr/drivers/sensor.h> #include <zephyr/drivers/sensor/tsl2540.h> #define TSL2540_REG_ATIME 0x81 #define TSL2540_R...
/content/code_sandbox/drivers/sensor/ams/tsl2540/tsl2540.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,171
```c /* * */ #include "tsl2540.h" #include <zephyr/logging/log.h> LOG_MODULE_DECLARE(tsl2540, CONFIG_SENSOR_LOG_LEVEL); static void tsl2540_setup_int(const struct device *dev, bool enable) { const struct tsl2540_config *config = dev->config; gpio_flags_t flags = enable ? GPIO_INT_EDGE_TO_ACTIVE : GPIO_INT_DI...
/content/code_sandbox/drivers/sensor/ams/tsl2540/tsl2540_trigger.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,499
```unknown # TSL2540 Ambient Light Sensor configuration options menuconfig TSL2540 bool "TSL2540 Ambient Light Sensor" default y depends on DT_HAS_AMS_TSL2540_ENABLED select I2C help Enable driver for TSL2540 sensors. if TSL2540 config TSL2540_TRIGGER bool choice prompt "Trigger mode" default TSL2540_TR...
/content/code_sandbox/drivers/sensor/ams/tsl2540/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
276
```c /* * */ #define DT_DRV_COMPAT ams_tsl2540 #include "tsl2540.h" #include <stdlib.h> #include <zephyr/logging/log.h> #include <zephyr/drivers/sensor.h> #include <zephyr/pm/device.h> #include <zephyr/sys/__assert.h> #include <zephyr/sys/byteorder.h> #include <zephyr/sys/util.h> #define TSL2540_INTEGRATION_TIME...
/content/code_sandbox/drivers/sensor/ams/tsl2540/tsl2540.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,268
```c /* * */ #define DT_DRV_COMPAT ams_ccs811 #include <zephyr/drivers/sensor.h> #include "ccs811.h" #define LOG_LEVEL CONFIG_SENSOR_LOG_LEVEL #include <zephyr/logging/log.h> LOG_MODULE_DECLARE(CCS811); int ccs811_attr_set(const struct device *dev, enum sensor_channel chan, enum sensor_attribute attr,...
/content/code_sandbox/drivers/sensor/ams/ccs811/ccs811_trigger.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,415
```unknown # CCS811 Digital Gas sensor configuration options # menuconfig CCS811 bool "CCS811 Digital Gas Sensor" default y depends on DT_HAS_AMS_CCS811_ENABLED select I2C help Enable driver for CCS811 Gas sensors. if CCS811 choice CCS811_DRIVE_MODE prompt "Measurement drive mode" default CCS811_DRIVE_MOD...
/content/code_sandbox/drivers/sensor/ams/ccs811/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
354
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_CCS811_CCS811_H_ #define ZEPHYR_DRIVERS_SENSOR_CCS811_CCS811_H_ #include <zephyr/device.h> #include <zephyr/drivers/i2c.h> #include <zephyr/drivers/gpio.h> #include <zephyr/sys/util.h> #include <zephyr/drivers/sensor/ccs811.h> /* Registers */ #define CCS811_REG_...
/content/code_sandbox/drivers/sensor/ams/ccs811/ccs811.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
785
```unknown # AS5600 Angular position sensor configuration option config AMS_AS5600 bool "AS5600 Angular position sensor" default y depends on DT_HAS_AMS_AS5600_ENABLED select I2C help Enable driver for AS5600 Angular position sensor. ```
/content/code_sandbox/drivers/sensor/ams/ams_as5600/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
59
```c /* * */ #define DT_DRV_COMPAT ams_ccs811 #include <zephyr/device.h> #include <zephyr/drivers/gpio.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/log...
/content/code_sandbox/drivers/sensor/ams/ccs811/ccs811.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
4,395
```unknown config TCS3400 bool "TCS3400 Sensor" default y depends on DT_HAS_AMS_TCS3400_ENABLED select I2C help Enable driver for TCS3400 sensors. ```
/content/code_sandbox/drivers/sensor/ams/tcs3400/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
49
```c /* * */ #define DT_DRV_COMPAT ams_as5600 #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/i2c.h> #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(ams_as5600, CONFIG...
/content/code_sandbox/drivers/sensor/ams/ams_as5600/ams_as5600.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
718
```c /* * */ #define DT_DRV_COMPAT ams_tcs3400 #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/i2c.h> #include <zephyr/drivers/sensor.h> #include <zephyr/drivers/sensor/tcs3400.h> #include <zephyr/sys/byteorder.h> #include <zephyr/sys/util.h> #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(tcs3400, C...
/content/code_sandbox/drivers/sensor/ams/tcs3400/tcs3400.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,263
```unknown config TSL2561 bool "OSRAM-AMS TSL2561 light sensor" default y depends on DT_HAS_AMS_TSL2561_ENABLED select I2C help Enable driver for TSL2561 sensor. ```
/content/code_sandbox/drivers/sensor/ams/tsl2561/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
54
```c /* * */ #define DT_DRV_COMPAT ams_iaqcore #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 "iAQcore.h...
/content/code_sandbox/drivers/sensor/ams/ams_iAQcore/iAQcore.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
839
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_AMS_IAQCORE_IAQCORE_H_ #define ZEPHYR_DRIVERS_SENSOR_AMS_IAQCORE_IAQCORE_H_ #include <zephyr/device.h> #include <zephyr/sys/util.h> struct iaq_registers { uint16_t co2_pred; uint8_t status; int32_t resistance; uint16_t voc; } __packed; struct iaq_core_conf...
/content/code_sandbox/drivers/sensor/ams/ams_iAQcore/iAQcore.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
154
```c /* * */ #define DT_DRV_COMPAT ams_tsl2561 #include <zephyr/drivers/sensor.h> #include <zephyr/drivers/i2c.h> #include <zephyr/logging/log.h> #include <zephyr/kernel.h> #include <zephyr/devicetree.h> #include <zephyr/sys/byteorder.h> #include <zephyr/sys/__assert.h> LOG_MODULE_REGISTER(TSL2561, CONFIG_SENSOR_L...
/content/code_sandbox/drivers/sensor/ams/tsl2561/tsl2561.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,397
```unknown # iAQ-core Digital VOC sensor configuration options menuconfig AMS_IAQ_CORE bool "iAQ-core Digital VOC sensor" default y depends on DT_HAS_AMS_IAQCORE_ENABLED select I2C help Enable driver for iAQ-core Digital VOC sensor. config IAQ_CORE_MAX_READ_RETRIES int "Number of read retries" default 4 d...
/content/code_sandbox/drivers/sensor/ams/ams_iAQcore/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
102
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_SBS_GAUGE_H_ #define ZEPHYR_DRIVERS_SENSOR_SBS_GAUGE_H_ #include <stdint.h> #include <zephyr/drivers/i2c.h> /*** Standard Commands ***/ #define SBS_GAUGE_CMD_MANUFACTURER_ACCESS 0x00 /* ManufacturerAccess */ #define SBS_GAUGE_CMD_REM_CAPACITY_ALARM 0x01 /* ...
/content/code_sandbox/drivers/sensor/sbs_gauge/sbs_gauge.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,056
```unknown config SBS_GAUGE bool "Smart Battery Fuel Gauge" default y depends on DT_HAS_SBS_SBS_GAUGE_ENABLED select I2C help Enable I2C-based/SMBus-based driver for a Smart Battery Fuel Gauge. # Maintain access to emul_sbs_gauge. source "drivers/fuel_gauge/sbs_gauge/Kconfig.emul_sbs_gauge" ```
/content/code_sandbox/drivers/sensor/sbs_gauge/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
89
```c /* * */ #define DT_DRV_COMPAT sbs_sbs_gauge #include <zephyr/drivers/i2c.h> #include <zephyr/drivers/sensor.h> #include <zephyr/sys/byteorder.h> #include "sbs_gauge.h" #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(sbs_gauge, CONFIG_SENSOR_LOG_LEVEL); static int sbs_cmd_reg_read(const struct device *de...
/content/code_sandbox/drivers/sensor/sbs_gauge/sbs_gauge.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,953
```unknown # PMS7003 particulate matter sensor configuration options config PMS7003 bool "PMS7003 particulate matter sensor" default y depends on DT_HAS_PLANTOWER_PMS7003_ENABLED depends on SERIAL help Enable driver for pms7003 particulate matter sensor. ```
/content/code_sandbox/drivers/sensor/pms7003/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
67
```c /* * */ #define DT_DRV_COMPAT plantower_pms7003 /* sensor pms7003.c - Driver for plantower PMS7003 sensor * PMS7003 product: path_to_url * PMS7003 spec: path_to_url */ #include <errno.h> #include <zephyr/arch/cpu.h> #include <zephyr/init.h> #include <zephyr/kernel.h> #include <zephyr/drivers/sensor.h> #in...
/content/code_sandbox/drivers/sensor/pms7003/pms7003.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,477
```unknown # LM75 temperature sensor config config LM75 bool "LM75 Temperature Sensor" default y depends on DT_HAS_LM75_ENABLED select I2C help Enable the driver for the LM75 digital temperature Sensor with 2-wire interface. if LM75 choice prompt "Trigger mode" default LM75_TRIGGER_NONE help Specif...
/content/code_sandbox/drivers/sensor/lm75/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
247
```c /* * */ #include <zephyr/device.h> #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/i2c.h> #include <zephyr/sys/util.h> #include <zephyr/kernel.h> #include <zephyr/drivers/sensor.h> #include "apds9960.h" extern struct apds9960_data apds9960_driver; #include <zephyr/logging/log.h> LOG_MODULE_DECLARE(A...
/content/code_sandbox/drivers/sensor/apds9960/apds9960_trigger.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
638
```c /* * */ #define DT_DRV_COMPAT lm75 #include <zephyr/device.h> #include <zephyr/devicetree.h> #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/i2c.h> #include <zephyr/drivers/sensor.h> #include <zephyr/pm/device.h> #include <zephyr/pm/device_runtime.h> #include <zephyr/logging/log.h> #include <zephyr/s...
/content/code_sandbox/drivers/sensor/lm75/lm75.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,814
```unknown menuconfig APDS9960 bool "APDS9960 Sensor" default y depends on DT_HAS_AVAGO_APDS9960_ENABLED select I2C help Enable driver for APDS9960 sensors. if APDS9960 choice prompt "Trigger mode" default APDS9960_TRIGGER_NONE help Specify the type of triggering used by the driver. config APDS9960_TR...
/content/code_sandbox/drivers/sensor/apds9960/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
571
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_APDS9960_APDS9960_H_ #define ZEPHYR_DRIVERS_SENSOR_APDS9960_APDS9960_H_ #include <zephyr/drivers/gpio.h> #define APDS9960_ENABLE_REG 0x80 #define APDS9960_ENABLE_GEN BIT(6) #define APDS9960_ENABLE_PIEN BIT(5) #define APDS9960_ENABLE_AIEN BIT(4) #define APDS9...
/content/code_sandbox/drivers/sensor/apds9960/apds9960.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,016
```unknown # zephyr-keep-sorted-start source "drivers/sensor/ite/ite_tach_it8xxx2/Kconfig" source "drivers/sensor/ite/ite_vcmp_it8xxx2/Kconfig" # zephyr-keep-sorted-stop ```
/content/code_sandbox/drivers/sensor/ite/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
58
```c /* * */ #define DT_DRV_COMPAT avago_apds9960 /* @file * @brief driver for APDS9960 ALS/RGB/gesture/proximity sensor */ #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...
/content/code_sandbox/drivers/sensor/apds9960/apds9960.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
4,018
```unknown # ITE tachometer sensor configuration options config TACH_IT8XXX2 bool "ITE it8xxx2 Tachometer sensor" default y depends on DT_HAS_ITE_IT8XXX2_TACH_ENABLED depends on SOC_IT8XXX2 help Enable the ITE it8xxx2 tachometer sensor, it8xxx2 supports two 16-bit tachometer sensor, each sensor has two ...
/content/code_sandbox/drivers/sensor/ite/ite_tach_it8xxx2/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
105
```unknown # ITE Voltage Comparator driver configuration options config VCMP_IT8XXX2 bool "ITE it8xxx2 Voltage Comparator" default y depends on DT_HAS_ITE_IT8XXX2_VCMP_ENABLED depends on SOC_IT8XXX2 && ADC_ITE_IT8XXX2 help This option enables the ITE it8xxx2 voltage comparator, it8xxx2 supports six 10-bit ...
/content/code_sandbox/drivers/sensor/ite/ite_vcmp_it8xxx2/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
340
```c /* * */ #define DT_DRV_COMPAT ite_it8xxx2_tach /** * @file * @brief ITE it8xxx2 tachometer sensor module driver * * This file contains a driver for the tachometer sensor module which contains * two independent counters (F1TL/MRR and F2TL/MRR). The content of the * Tachometer Reading Register is still upd...
/content/code_sandbox/drivers/sensor/ite/ite_tach_it8xxx2/tach_ite_it8xxx2.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,304
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_TH02_TH02_H_ #define ZEPHYR_DRIVERS_SENSOR_TH02_TH02_H_ #include <zephyr/device.h> #include <zephyr/sys/util.h> #define TH02_REG_STATUS 0x00 #define TH02_REG_DATA_H 0x01 #define TH02_REG_DATA_L 0x02 #define TH02_REG_CONFIG 0x03 #d...
/content/code_sandbox/drivers/sensor/th02/th02.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
213
```c /* * */ #define DT_DRV_COMPAT hoperf_th02 #include <zephyr/kernel.h> #include <zephyr/device.h> #include <zephyr/drivers/i2c.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 "th02.h" ...
/content/code_sandbox/drivers/sensor/th02/th02.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,093
```unknown config TH02 bool "TH02 Temperature Sensor" default y depends on DT_HAS_HOPERF_TH02_ENABLED select I2C help Enable driver for the TH02 temperature sensor. ```
/content/code_sandbox/drivers/sensor/th02/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
45
```unknown # Current sense amplifier driver # # config CURRENT_AMP bool "Current sense amplifier driver" default y depends on DT_HAS_CURRENT_SENSE_AMPLIFIER_ENABLED select ADC help Enable current sense amplifier driver. ```
/content/code_sandbox/drivers/sensor/current_amp/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
49
```c /* * */ #define DT_DRV_COMPAT ite_it8xxx2_vcmp #include <zephyr/device.h> #include <zephyr/devicetree/io-channels.h> #include <zephyr/drivers/adc.h> #include <zephyr/drivers/sensor.h> #include <zephyr/drivers/sensor/it8xxx2_vcmp.h> #include <zephyr/dt-bindings/dt-util.h> #include <zephyr/dt-bindings/sensor/it8...
/content/code_sandbox/drivers/sensor/ite/ite_vcmp_it8xxx2/vcmp_ite_it8xxx2.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,735
```c /* * */ #define DT_DRV_COMPAT current_sense_amplifier #include <zephyr/drivers/adc.h> #include <zephyr/drivers/adc/current_sense_amplifier.h> #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/sensor.h> #include <zephyr/pm/device.h> #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(current_amp, CONFI...
/content/code_sandbox/drivers/sensor/current_amp/current_amp.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,128
```unknown config TSIC_XX6 bool "TSic xx6 driver" default y depends on DT_HAS_IST_TSIC_XX6_ENABLED select PWM select PWM_CAPTURE help Enable driver for TSic 206/306/316/506F/516/716. ```
/content/code_sandbox/drivers/sensor/tsic_xx6/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
63
```c /* * */ #define DT_DRV_COMPAT ist_tsic_xx6 #include <zephyr/device.h> #include <zephyr/drivers/pwm.h> #include <zephyr/drivers/sensor.h> #include <zephyr/kernel.h> #include <zephyr/logging/log.h> #include <zephyr/sys/atomic.h> #include <zephyr/sys/util.h> #include <zephyr/sys/util_macro.h> LOG_MODULE_REGISTER...
/content/code_sandbox/drivers/sensor/tsic_xx6/tsic_xx6.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,113
```unknown # Voltage sensor driver # # config VOLTAGE_DIVIDER bool "Voltage sensor driver" default y depends on DT_HAS_VOLTAGE_DIVIDER_ENABLED select ADC help Enable voltage sensor driver. ```
/content/code_sandbox/drivers/sensor/voltage_divider/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
46
```c /* * */ #define DT_DRV_COMPAT voltage_divider #include <zephyr/drivers/adc.h> #include <zephyr/drivers/adc/voltage_divider.h> #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/sensor.h> #include <zephyr/pm/device.h> #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(voltage, CONFIG_SENSOR_LOG_LEVEL);...
/content/code_sandbox/drivers/sensor/voltage_divider/voltage.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,191
```unknown # IST8310 Geomagnetic sensor configuration options config IST8310 bool "IST8310 I2C Geomagnetic Chip" default y depends on DT_HAS_ISENTEK_IST8310_ENABLED select I2C help Enable driver for IST8310 I2C-based Geomagnetic sensor. ```
/content/code_sandbox/drivers/sensor/ist8310/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
71
```c /* * */ /* * Bus-specific functionality for IST8310 accessed via I2C. */ #include "ist8310.h" static int ist8310_bus_check_i2c(const union ist8310_bus *bus) { return i2c_is_ready_dt(&bus->i2c) ? 0 : -ENODEV; } static int ist8310_reg_read_i2c(const union ist8310_bus *bus, uint8_t start, uint8_t *buf, int s...
/content/code_sandbox/drivers/sensor/ist8310/ist8310_i2c.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
230
```objective-c /* ist8310.h - header file for IST8310 Geomagnetic sensor driver */ /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_IST8310_IST8310_H_ #define ZEPHYR_DRIVERS_SENSOR_IST8310_IST8310_H_ #include <zephyr/types.h> #include <zephyr/device.h> #include <zephyr/devicetree.h> #include <zephyr/drivers/spi.h> #include <...
/content/code_sandbox/drivers/sensor/ist8310/ist8310.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
805
```unknown # zephyr-keep-sorted-start source "drivers/sensor/nuvoton/nuvoton_adc_cmp_npcx/Kconfig" source "drivers/sensor/nuvoton/nuvoton_tach_npcx/Kconfig" # zephyr-keep-sorted-stop ```
/content/code_sandbox/drivers/sensor/nuvoton/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
62
```c /* ist8310.c - Driver for Isentek IST8310 Geomagnetic Sensor */ /* * */ #include <zephyr/sys/byteorder.h> #include <zephyr/logging/log.h> #include "ist8310.h" LOG_MODULE_REGISTER(IST8310, CONFIG_SENSOR_LOG_LEVEL); static inline int ist8310_bus_check(const struct device *dev) { const struct ist8310_config *c...
/content/code_sandbox/drivers/sensor/ist8310/ist8310.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,815
```unknown # ADC CMP NPCX driver configuration options if ADC_NPCX config ADC_CMP_NPCX bool "Nuvoton NPCX ADC threshold detection interruption" default y depends on DT_HAS_NUVOTON_ADC_CMP_ENABLED help This option enables threshold interruption using sensor trigger API. if ADC_CMP_NPCX config ADC_CMP_NPC...
/content/code_sandbox/drivers/sensor/nuvoton/nuvoton_adc_cmp_npcx/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
247
```c /* * */ #include <zephyr/drivers/sensor.h> #include <zephyr/drivers/adc/adc_npcx_threshold.h> #include <zephyr/drivers/sensor/adc_cmp_npcx.h> #include <zephyr/kernel.h> #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(adc_cmp_npcx, CONFIG_SENSOR_LOG_LEVEL); struct adc_cmp_npcx_data { /* Work queue to be n...
/content/code_sandbox/drivers/sensor/nuvoton/nuvoton_adc_cmp_npcx/adc_cmp_npcx.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,011
```unknown # NPCX tachometer sensor configuration options config TACH_NPCX bool "Nuvoton NPCX Tachometer sensor" default y depends on DT_HAS_NUVOTON_NPCX_TACH_ENABLED depends on SOC_FAMILY_NPCX help Enable the "Nuvoton NPCX tachometer sensor. ```
/content/code_sandbox/drivers/sensor/nuvoton/nuvoton_tach_npcx/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
71
```unknown config NCT75 bool "NCT75 temperature sensor" default y depends on DT_HAS_ONNN_NCT75_ENABLED select I2C help Enable driver for the NCT75 temperature sensor. ```
/content/code_sandbox/drivers/sensor/nct75/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
48
```c /* * */ #define DT_DRV_COMPAT onnn_nct75 #include <zephyr/drivers/i2c.h> #include <zephyr/drivers/sensor.h> #include <zephyr/logging/log.h> #include <zephyr/sys/byteorder.h> #include <zephyr/sys/util.h> LOG_MODULE_REGISTER(NCT75, CONFIG_SENSOR_LOG_LEVEL); #define NCT75REGISTER_STOREDTEMPERATUREVALUE 0x00 #de...
/content/code_sandbox/drivers/sensor/nct75/nct75.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
921
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_MPU9250_AK8963_H_ #define ZEPHYR_DRIVERS_SENSOR_MPU9250_AK8963_H_ #include <stdint.h> #include <zephyr/device.h> #include <zephyr/drivers/sensor.h> int ak8963_convert_magn(struct sensor_value *val, int16_t raw_val, int16_t scale, uint8_t st2); int ak8963_i...
/content/code_sandbox/drivers/sensor/tdk/mpu9250/ak8963.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
125
```c /* * */ #define DT_DRV_COMPAT nuvoton_npcx_tach /** * @file * @brief Nuvoton NPCX tachometer sensor module driver * * This file contains a driver for the tachometer sensor module which contains * two independent timers (counter 1 and 2). They are used to capture a counter * value when the signals via ext...
/content/code_sandbox/drivers/sensor/nuvoton/nuvoton_tach_npcx/tach_nuvoton_npcx.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,338
```c /* * */ #include <zephyr/drivers/i2c.h> #include <zephyr/drivers/sensor.h> #include <zephyr/logging/log.h> #include "mpu9250.h" #include "ak8963.h" LOG_MODULE_DECLARE(MPU9250, CONFIG_SENSOR_LOG_LEVEL); #define I2C_READ_FLAG BIT(7) #define AK8963_I2C_ADDR 0x0C #define AK8963_REG_ID 0x00 #define AK896...
/content/code_sandbox/drivers/sensor/tdk/mpu9250/ak8963.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,130
```unknown # MPU9250 Nine-Axis Motion Tracking device configuration options menuconfig MPU9250 bool "MPU9250 Nine-Axis Motion Tracking Device" default y depends on DT_HAS_INVENSENSE_MPU9250_ENABLED select I2C help Enable driver for MPU9250 I2C-based nine-axis motion tracking device. if MPU9250 choice promp...
/content/code_sandbox/drivers/sensor/tdk/mpu9250/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
305
```c /* * */ #define DT_DRV_COMPAT invensense_mpu9250 #include <zephyr/sys/byteorder.h> #include <zephyr/logging/log.h> #include <zephyr/devicetree.h> #include "mpu9250.h" #ifdef CONFIG_MPU9250_MAGN_EN #include "ak8963.h" #endif LOG_MODULE_REGISTER(MPU9250, CONFIG_SENSOR_LOG_LEVEL); #define MPU9250_REG_CHIP_ID...
/content/code_sandbox/drivers/sensor/tdk/mpu9250/mpu9250.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,125
```c /* * */ #include <zephyr/sys/util.h> #include <zephyr/logging/log.h> #include "mpu9250.h" LOG_MODULE_DECLARE(MPU9250, CONFIG_SENSOR_LOG_LEVEL); #define MPU9250_REG_INT_EN 0x38 #define MPU9250_DRDY_EN BIT(0) int mpu9250_trigger_set(const struct device *dev, const struct sensor_trigger *trig, sensor_...
/content/code_sandbox/drivers/sensor/tdk/mpu9250/mpu9250_trigger.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,193
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_MPU9250_MPU9250_H_ #define ZEPHYR_DRIVERS_SENSOR_MPU9250_MPU9250_H_ #include <stdint.h> #include <zephyr/device.h> #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/i2c.h> #include <zephyr/drivers/sensor.h> #include <zephyr/kernel.h> struct mpu9250_data ...
/content/code_sandbox/drivers/sensor/tdk/mpu9250/mpu9250.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
471
```c /* * */ #include <zephyr/device.h> #include <zephyr/drivers/i2c.h> #include <zephyr/sys/util.h> #include <zephyr/kernel.h> #include <zephyr/drivers/sensor.h> #include <zephyr/logging/log.h> #include "icm42605.h" #include "icm42605_setup.h" LOG_MODULE_DECLARE(ICM42605, CONFIG_SENSOR_LOG_LEVEL); int icm42605_tr...
/content/code_sandbox/drivers/sensor/tdk/icm42605/icm42605_trigger.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,000
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_ICM42605_ICM42605_SETUP_H_ #define ZEPHYR_DRIVERS_SENSOR_ICM42605_ICM42605_SETUP_H_ #include <zephyr/device.h> int icm42605_sensor_init(const struct device *dev); int icm42605_turn_on_fifo(const struct device *dev); int icm42605_turn_off_fifo(const struct device...
/content/code_sandbox/drivers/sensor/tdk/icm42605/icm42605_setup.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
156
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_ICM42605_ICM42605_H_ #define ZEPHYR_DRIVERS_SENSOR_ICM42605_ICM42605_H_ #include <zephyr/device.h> #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/spi.h> #include <zephyr/kernel.h> #include <zephyr/sys/util.h> #include <zephyr/types.h> #include "icm426...
/content/code_sandbox/drivers/sensor/tdk/icm42605/icm42605.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
445
```c /* * */ #include <zephyr/sys/byteorder.h> #include <zephyr/drivers/sensor.h> #include <zephyr/logging/log.h> #include "icm42605.h" #include "icm42605_reg.h" #include "icm42605_spi.h" LOG_MODULE_DECLARE(ICM42605, CONFIG_SENSOR_LOG_LEVEL); int icm42605_set_fs(const struct device *dev, uint16_t a_sf, uint16_t g...
/content/code_sandbox/drivers/sensor/tdk/icm42605/icm42605_setup.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,089
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_ICM42605_ICM42605_REG_H_ #define ZEPHYR_DRIVERS_SENSOR_ICM42605_ICM42605_REG_H_ /* BANK 0 */ #define REG_DEVICE_CONFIG 0x11 #define REG_DRIVE_CONFIG 0x13 #define REG_INT_CONFIG 0x14 #define REG_FIFO_CONFIG 0x16 #define REG_TEMP_DATA1 0x1D #define REG_TEMP_DATA...
/content/code_sandbox/drivers/sensor/tdk/icm42605/icm42605_reg.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
6,158
```c /* * */ #include <zephyr/logging/log.h> #include <zephyr/sys/__assert.h> #include "icm42605_spi.h" LOG_MODULE_DECLARE(ICM42605, CONFIG_SENSOR_LOG_LEVEL); int inv_spi_single_write(const struct spi_dt_spec *bus, uint8_t reg, uint8_t *data) { int result; const struct spi_buf buf[2] = { { .buf = &reg, ...
/content/code_sandbox/drivers/sensor/tdk/icm42605/icm42605_spi.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
386
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_ICM42605_ICM42605_SPI_H_ #define ZEPHYR_DRIVERS_SENSOR_ICM42605_ICM42605_SPI_H_ #include <zephyr/device.h> #include <zephyr/drivers/spi.h> int inv_spi_single_write(const struct spi_dt_spec *bus, uint8_t reg, uint8_t *data); int inv_spi_read(const struct spi_dt_s...
/content/code_sandbox/drivers/sensor/tdk/icm42605/icm42605_spi.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
126
```unknown # ICM42605 Six-Axis Motion Tracking device configuration options menuconfig ICM42605 bool "ICM42605 Six-Axis Motion Tracking Device" default y depends on DT_HAS_INVENSENSE_ICM42605_ENABLED select SPI help Enable driver for ICM42605 SPI-based six-axis motion tracking device. if ICM42605 choice ICM...
/content/code_sandbox/drivers/sensor/tdk/icm42605/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
264
```c /* * */ #define DT_DRV_COMPAT invensense_mpu6050 #include <zephyr/drivers/i2c.h> #include <zephyr/init.h> #include <zephyr/sys/byteorder.h> #include <zephyr/drivers/sensor.h> #include <zephyr/logging/log.h> #include "mpu6050.h" LOG_MODULE_REGISTER(MPU6050, CONFIG_SENSOR_LOG_LEVEL); /* see "Accelerometer Mea...
/content/code_sandbox/drivers/sensor/tdk/mpu6050/mpu6050.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,124
```c /* * */ #define DT_DRV_COMPAT invensense_icm42605 #include <zephyr/drivers/spi.h> #include <zephyr/init.h> #include <zephyr/sys/byteorder.h> #include <zephyr/drivers/sensor.h> #include <zephyr/logging/log.h> #include "icm42605.h" #include "icm42605_reg.h" #include "icm42605_setup.h" #include "icm42605_spi.h" ...
/content/code_sandbox/drivers/sensor/tdk/icm42605/icm42605.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,810
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_MPU6050_MPU6050_H_ #define ZEPHYR_DRIVERS_SENSOR_MPU6050_MPU6050_H_ #include <zephyr/device.h> #include <zephyr/drivers/i2c.h> #include <zephyr/drivers/gpio.h> #include <zephyr/kernel.h> #include <zephyr/sys/util.h> #include <zephyr/types.h> #define MPU6050_REG_...
/content/code_sandbox/drivers/sensor/tdk/mpu6050/mpu6050.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
645
```c /* * */ #include <zephyr/device.h> #include <zephyr/drivers/i2c.h> #include <zephyr/sys/util.h> #include <zephyr/kernel.h> #include <zephyr/drivers/sensor.h> #include <zephyr/logging/log.h> #include "mpu6050.h" LOG_MODULE_DECLARE(MPU6050, CONFIG_SENSOR_LOG_LEVEL); int mpu6050_trigger_set(const struct device *...
/content/code_sandbox/drivers/sensor/tdk/mpu6050/mpu6050_trigger.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,012
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_ICM42688_SPI_H_ #define ZEPHYR_DRIVERS_SENSOR_ICM42688_SPI_H_ #include <zephyr/device.h> #include <zephyr/drivers/spi.h> /** * @brief perform a single SPI write to a ICM42688 register * * this functions wraps all logic necessary to write to any of the ICM4268...
/content/code_sandbox/drivers/sensor/tdk/icm42688/icm42688_spi.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
484
```unknown # MPU6050 Six-Axis Motion Tracking device configuration options menuconfig MPU6050 bool "MPU6050 Six-Axis Motion Tracking Device" default y depends on DT_HAS_INVENSENSE_MPU6050_ENABLED select I2C help Enable driver for MPU6050 I2C-based six-axis motion tracking device. if MPU6050 choice prompt "...
/content/code_sandbox/drivers/sensor/tdk/mpu6050/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
402
```c /* * */ #include <zephyr/drivers/sensor.h> #include <zephyr/rtio/work.h> #include "icm42688.h" #include "icm42688_decoder.h" #include "icm42688_reg.h" #include "icm42688_rtio.h" #include "icm42688_spi.h" #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(ICM42688_RTIO, CONFIG_SENSOR_LOG_LEVEL); static int ic...
/content/code_sandbox/drivers/sensor/tdk/icm42688/icm42688_rtio.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
838
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_ICM42688_REG_H_ #define ZEPHYR_DRIVERS_SENSOR_ICM42688_REG_H_ #include <zephyr/sys/util.h> /* Address value has a read bit */ #define REG_SPI_READ_BIT BIT(7) /* Common bank select register and values */ #define REG_BANK_SEL 0x76 #define MASK_BANK_SEL GENMASK(2...
/content/code_sandbox/drivers/sensor/tdk/icm42688/icm42688_reg.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,591
```c /* * */ #include "icm42688_decoder.h" #include "icm42688_reg.h" #include "icm42688.h" #include <errno.h> #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(ICM42688_DECODER, CONFIG_SENSOR_LOG_LEVEL); #define DT_DRV_COMPAT invensense_icm42688 static int icm42688_get_shift(enum sensor_channel channel, int acc...
/content/code_sandbox/drivers/sensor/tdk/icm42688/icm42688_decoder.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
6,543
```c /* * */ #include <zephyr/sys/util.h> #include "icm42688_spi.h" #include "icm42688_reg.h" static inline int spi_write_register(const struct spi_dt_spec *bus, uint8_t reg, uint8_t data) { const struct spi_buf buf[2] = { { .buf = &reg, .len = 1, }, { .buf = &data, .len = 1, } }; const stru...
/content/code_sandbox/drivers/sensor/tdk/icm42688/icm42688_spi.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
553
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_ICM42688_RTIO_H_ #define ZEPHYR_DRIVERS_SENSOR_ICM42688_RTIO_H_ #include <zephyr/device.h> #include <zephyr/rtio/rtio.h> void icm42688_submit(const struct device *sensor, struct rtio_iodev_sqe *iodev_sqe); void icm42688_submit_stream(const struct device *sensor...
/content/code_sandbox/drivers/sensor/tdk/icm42688/icm42688_rtio.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
141
```objective-c /* */ #ifndef DRIVERS_SENSOR_ICM42688_ICM42688_EMUL_H #define DRIVERS_SENSOR_ICM42688_ICM42688_EMUL_H #include <zephyr/drivers/emul.h> /** * @brief Set one or more register values * * @param target The target emulator to modify * @param reg_addr The starting address of the register to modify * @...
/content/code_sandbox/drivers/sensor/tdk/icm42688/icm42688_emul.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
253
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_ICM42688_H_ #define ZEPHYR_DRIVERS_SENSOR_ICM42688_H_ #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/sensor.h> #include <zephyr/drivers/spi.h> #include <zephyr/sys/byteorder.h> #include <zephyr/dt-bindings/sensor/icm42688.h> #include <stdlib.h> static...
/content/code_sandbox/drivers/sensor/tdk/icm42688/icm42688.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
5,053
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_ICM42688_DECODER_H_ #define ZEPHYR_DRIVERS_SENSOR_ICM42688_DECODER_H_ #include <stdint.h> #include <zephyr/drivers/sensor.h> struct icm42688_decoder_header { uint64_t timestamp; uint8_t is_fifo: 1; uint8_t gyro_fs: 3; uint8_t accel_fs: 2; uint8_t reserved: ...
/content/code_sandbox/drivers/sensor/tdk/icm42688/icm42688_decoder.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
305
```c /* * */ #define DT_DRV_COMPAT invensense_icm42688 #include <zephyr/drivers/sensor.h> #include <zephyr/drivers/spi.h> #include <zephyr/sys/byteorder.h> #include "icm42688.h" #include "icm42688_decoder.h" #include "icm42688_reg.h" #include "icm42688_rtio.h" #include "icm42688_spi.h" #include "icm42688_trigger.h...
/content/code_sandbox/drivers/sensor/tdk/icm42688/icm42688.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,750
```c /* * */ #include <zephyr/logging/log.h> #include "icm42688.h" #include "icm42688_decoder.h" #include "icm42688_reg.h" #include "icm42688_rtio.h" LOG_MODULE_DECLARE(ICM42688_RTIO); void icm42688_submit_stream(const struct device *sensor, struct rtio_iodev_sqe *iodev_sqe) { const struct sensor_read_config *cf...
/content/code_sandbox/drivers/sensor/tdk/icm42688/icm42688_rtio_stream.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,161
```c /* */ #include <zephyr/device.h> #include <zephyr/drivers/sensor.h> #include <zephyr/drivers/gpio.h> #include <zephyr/logging/log.h> #include <zephyr/sys/util.h> #include "icm42688.h" #include "icm42688_reg.h" #include "icm42688_rtio.h" #include "icm42688_spi.h" #include "icm42688_trigger.h" LOG_MODULE_DECLARE...
/content/code_sandbox/drivers/sensor/tdk/icm42688/icm42688_trigger.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,436
```unknown # ICM42688-P Six-Axis Motion Tracking device configuration options # # menuconfig ICM42688 bool "ICM42688 Six-Axis Motion Tracking Device" default y depends on DT_HAS_INVENSENSE_ICM42688_ENABLED select SPI select RTIO_WORKQ if SENSOR_ASYNC_API help Enable driver for ICM42688 SPI-based six-axis moti...
/content/code_sandbox/drivers/sensor/tdk/icm42688/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
465
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_ICM42688_TRIGGER_H_ #define ZEPHYR_DRIVERS_SENSOR_ICM42688_TRIGGER_H_ #include <zephyr/device.h> /** implement the trigger_set sensor api function */ int icm42688_trigger_set(const struct device *dev, const struct sensor_trigger *trig, sensor_trigger_handler...
/content/code_sandbox/drivers/sensor/tdk/icm42688/icm42688_trigger.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
303
```c /* */ #define DT_DRV_COMPAT invensense_icm42688 #include <zephyr/device.h> #include <zephyr/drivers/emul.h> #include <zephyr/drivers/emul_sensor.h> #include <zephyr/drivers/spi.h> #include <zephyr/drivers/spi_emul.h> #include <zephyr/logging/log.h> #include <icm42688_reg.h> LOG_MODULE_DECLARE(ICM42688, CONFIG...
/content/code_sandbox/drivers/sensor/tdk/icm42688/icm42688_emul.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,638
```c /* * */ /* * Bus-specific functionality for ICM42670 accessed via I2C. */ #include "icm42670.h" #include "icm42670_reg.h" #if ICM42670_BUS_I2C static int icm42670_bus_check_i2c(const union icm42670_bus *bus) { return i2c_is_ready_dt(&bus->i2c) ? 0 : -ENODEV; } static int i2c_read_mreg(const union icm42670...
/content/code_sandbox/drivers/sensor/tdk/icm42670/icm42670_i2c.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
852
```c /* * */ #include <zephyr/drivers/sensor.h> #include <zephyr/drivers/spi.h> #include <zephyr/sys/byteorder.h> #include "icm42688.h" #include "icm42688_reg.h" #include "icm42688_spi.h" #include "icm42688_trigger.h" #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(ICM42688_LL, CONFIG_SENSOR_LOG_LEVEL); int ic...
/content/code_sandbox/drivers/sensor/tdk/icm42688/icm42688_common.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,066
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_ICM42670_TRIGGER_H_ #define ZEPHYR_DRIVERS_SENSOR_ICM42670_TRIGGER_H_ #include <zephyr/device.h> /** implement the trigger_set sensor api function */ int icm42670_trigger_set(const struct device *dev, const struct sensor_trigger *trig, sensor_trigger_handler...
/content/code_sandbox/drivers/sensor/tdk/icm42670/icm42670_trigger.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
280
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/sys/util.h> #include "icm42670.h" #include "icm42670_reg.h" #if ICM42670_BUS_SPI static inline int spi_write_register(const union icm42670_bus *bus, uint8_t reg, uint8_t data) { const struct spi_buf buf[2] = { { .buf = &reg, .len = 1, }, { .bu...
/content/code_sandbox/drivers/sensor/tdk/icm42670/icm42670_spi.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,093
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SENSOR_ICM42670_REG_H_ #define ZEPHYR_DRIVERS_SENSOR_ICM42670_REG_H_ #include <zephyr/sys/util.h> /* Helper macros for addressing registers in MREG1-3, see datasheet section 13 */ #define REG_MADDR_BASE 0x0028 #define REG_MREG1_SHIFT 8 #define REG_MREG2_SHIFT 9 #...
/content/code_sandbox/drivers/sensor/tdk/icm42670/icm42670_reg.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,641
```c /* * */ #include <zephyr/device.h> #include <zephyr/drivers/sensor.h> #include <zephyr/sys/util.h> #include "icm42670.h" #include "icm42670_reg.h" #include "icm42670_trigger.h" #include <zephyr/logging/log.h> LOG_MODULE_DECLARE(ICM42670, CONFIG_SENSOR_LOG_LEVEL); static void icm42670_gpio_callback(const struc...
/content/code_sandbox/drivers/sensor/tdk/icm42670/icm42670_trigger.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,166
```c /* * */ #define DT_DRV_COMPAT invensense_icm42670 #include <zephyr/drivers/sensor.h> #include <zephyr/drivers/spi.h> #include <zephyr/sys/byteorder.h> #include "icm42670.h" #include "icm42670_reg.h" #include "icm42670_trigger.h" #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(ICM42670, CONFIG_SENSOR_LOG_L...
/content/code_sandbox/drivers/sensor/tdk/icm42670/icm42670.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
5,418
```unknown # ICM42670 Six-Axis Motion Tracking device configuration options # # menuconfig ICM42670 bool "ICM42670 Six-Axis Motion Tracking Device" default y depends on DT_HAS_INVENSENSE_ICM42670_ENABLED select SPI if $(dt_compat_on_bus,$(DT_COMPAT_INVENSENSE_ICM42670),spi) select I2C if $(dt_compat_on_bus,$(DT_C...
/content/code_sandbox/drivers/sensor/tdk/icm42670/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
340
```unknown # ICP10125 barometric pressure/temperature sensor configuration options menuconfig ICP10125 bool "ICP10125 Barometric Pressure & Temperature Sensor" default y depends on DT_HAS_INVENSENSE_ICP10125_ENABLED select I2C help Enable driver for ICP10125 barometric pressure/temperature sensor. if ICP1012...
/content/code_sandbox/drivers/sensor/tdk/icp10125/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
126