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 LPS22HH pressure and temperature sensor
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT st_lps22hh
#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/__asse... | /content/code_sandbox/drivers/sensor/st/lps22hh/lps22hh.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,839 |
```objective-c
/* ST Microelectronics IIS2DLPC 3-axis accelerometer driver
*
*
*
* Datasheet:
* path_to_url
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_IIS2DLPC_IIS2DLPC_H_
#define ZEPHYR_DRIVERS_SENSOR_IIS2DLPC_IIS2DLPC_H_
#include <zephyr/drivers/gpio.h>
#include <zephyr/sys/util.h>
#include <zephyr/drivers/sensor.h>
#i... | /content/code_sandbox/drivers/sensor/st/iis2dlpc/iis2dlpc.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,108 |
```c
/* ST Microelectronics IIS2DLPC 3-axis accelerometer driver
*
*
*
* Datasheet:
* path_to_url
*/
#define DT_DRV_COMPAT st_iis2dlpc
#include <zephyr/init.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/logging/log.h>
#include <zephyr/drivers/sensor.h>
#if DT_ANY_INST_O... | /content/code_sandbox/drivers/sensor/st/iis2dlpc/iis2dlpc.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,163 |
```c
/* ST Microelectronics LPS28DFW pressure and temperature sensor
*
*
*/
#include "lps2xdf.h"
#include "lps28dfw.h"
#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(LPS2XDF, CONFIG_SENSOR_LOG_LEVEL);
static inline int lps28dfw_mode_set_odr_raw(const struct device *dev, uint8_t odr)
{
const struct lps2xdf_co... | /content/code_sandbox/drivers/sensor/st/lps2xdf/lps28dfw.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,918 |
```c
/* ST Microelectronics LPS2XDF pressure and temperature sensor
*
*
*
* Datasheet:
* path_to_url
* path_to_url
*/
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/logging/log.h>
#include "lps2xdf.h"
#if DT_HAS_COMPAT_STATUS_OKAY(st_lps22df)
#i... | /content/code_sandbox/drivers/sensor/st/lps2xdf/lps2xdf_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,741 |
```objective-c
/* ST Microelectronics LPS2XDF pressure and temperature sensor
*
*
*
* Datasheets:
* path_to_url
* path_to_url
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_LPS2XDF_LPS2XDF_H_
#define ZEPHYR_DRIVERS_SENSOR_LPS2XDF_LPS2XDF_H_
#include <stdint.h>
#include <stmemsc.h>
#if DT_HAS_COMPAT_STATUS_OKAY(st_lps28dfw)... | /content/code_sandbox/drivers/sensor/st/lps2xdf/lps2xdf.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,036 |
```objective-c
/* ST Microelectronics LPS22DF pressure and temperature sensor
*
*
*/
#include <stdint.h>
#include <stmemsc.h>
#include "lps22df_reg.h"
#include <zephyr/drivers/sensor.h>
#ifndef ZEPHYR_DRIVERS_SENSOR_LPS22DF_LPS22DF_H_
#define ZEPHYR_DRIVERS_SENSOR_LPS22DF_LPS22DF_H_
extern const struct lps2xdf_... | /content/code_sandbox/drivers/sensor/st/lps2xdf/lps22df.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 130 |
```objective-c
/* ST Microelectronics LPS28DFW pressure and temperature sensor
*
*
*/
#include <stdint.h>
#include <stmemsc.h>
#include <zephyr/drivers/sensor.h>
#include "lps28dfw_reg.h"
#ifndef ZEPHYR_DRIVERS_SENSOR_LPS28DFW_LPS28DFW_H_
#define ZEPHYR_DRIVERS_SENSOR_LPS28DFW_LPS28DFW_H_
extern const struct lp... | /content/code_sandbox/drivers/sensor/st/lps2xdf/lps28dfw.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 139 |
```unknown
# ST Microelectronics LPS2xDF pressure and temperature sensor
menuconfig LPS2XDF
bool "LPS2xDF pressure and temperature"
default y
depends on DT_HAS_ST_LPS22DF_ENABLED || DT_HAS_ST_LPS28DFW_ENABLED
depends on ZEPHYR_HAL_ST_MODULE
select I2C if $(dt_compat_on_bus,$(DT_COMPAT_ST_LPS22DF),i2c) ||\
... | /content/code_sandbox/drivers/sensor/st/lps2xdf/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 490 |
```c
/* ST Microelectronics LPS22DF pressure and temperature sensor
*
*
*/
#include "lps2xdf.h"
#include "lps22df.h"
#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(LPS2XDF, CONFIG_SENSOR_LOG_LEVEL);
static inline int lps22df_mode_set_odr_raw(const struct device *dev, uint8_t odr)
{
const struct lps2xdf_confi... | /content/code_sandbox/drivers/sensor/st/lps2xdf/lps22df.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,821 |
```c
/* ST Microelectronics LPS2XDF pressure and temperature sensor
*
*
*
* Datasheet:
* path_to_url
* path_to_url
*/
#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/lps2xdf/lps2xdf.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,963 |
```unknown
# zephyr-keep-sorted-start
source "drivers/sensor/microchip/mchp_tach_xec/Kconfig"
source "drivers/sensor/microchip/mcp9600/Kconfig"
source "drivers/sensor/microchip/mcp970x/Kconfig"
source "drivers/sensor/microchip/mcp9808/Kconfig"
source "drivers/sensor/microchip/tcn75a/Kconfig"
# zephyr-keep-sorted-stop
... | /content/code_sandbox/drivers/sensor/microchip/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 100 |
```unknown
# Microchip mec15xx tachometer sensor configuration options
config TACH_XEC
bool "XEC Tachometer sensor"
default y
depends on DT_HAS_MICROCHIP_XEC_TACH_ENABLED
depends on SOC_FAMILY_MICROCHIP_MEC
select PINCTRL
help
Enable the Microchip XEC tachometer sensor.
if TACH_XEC
choice
prompt "Number o... | /content/code_sandbox/drivers/sensor/microchip/mchp_tach_xec/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 338 |
```c
/*
*
*/
#define DT_DRV_COMPAT microchip_xec_tach
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/arch/cpu.h>
#ifdef CONFIG_SOC_SERIES_MEC172X
#include <zephyr/drivers/clock_control/mchp_xec_clock_control.h>
#include <zephyr/drivers/interrupt_controller/intc_mchp_xec_ec... | /content/code_sandbox/drivers/sensor/microchip/mchp_tach_xec/tach_mchp_xec.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,639 |
```unknown
# I2C Compatible, Thermocouple EMF to Temperature Converter
#
#
config MCP9600
bool "MCP9600 i2c thermocouple temperature sensor"
default y
depends on DT_HAS_MICROCHIP_MCP9600_ENABLED
select I2C
help
Enable driver for MCP9600 i2c thermocouple temperature sensor.
``` | /content/code_sandbox/drivers/sensor/microchip/mcp9600/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 78 |
```c
/*
*
*/
#define DT_DRV_COMPAT microchip_mcp9600
#include <zephyr/device.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(MCP9600, CONFIG_SENSOR_LOG_LEVEL);
#define MCP9600_REG_TEMP_HOT 0x00
#define MCP9600_RE... | /content/code_sandbox/drivers/sensor/microchip/mcp9600/mcp9600.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,050 |
```objective-c
/*
*
*/
#ifndef _DRIVERS_SENSOR_TCN75A_H_
#define _DRIVERS_SENSOR_TCN75A_H_
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/sys/byteorder.h>
#define TCN75A_TEMP_REG 0x0
#define TCN75A_CONFIG_REG 0x1
#define TCN75A_THYST_REG 0x2
... | /content/code_sandbox/drivers/sensor/microchip/tcn75a/tcn75a.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 688 |
```unknown
config TCN75A
bool "TCN75A Ambient Temperature Sensor"
default y
depends on DT_HAS_MICROCHIP_TCN75A_ENABLED
select I2C
help
Enable TCN75A ambient temperature to digital converter
if TCN75A
choice
prompt "TCN75A Trigger mode"
default TCN75A_TRIGGER_NONE
config TCN75A_TRIGGER_NONE
bool "No trigg... | /content/code_sandbox/drivers/sensor/microchip/tcn75a/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 244 |
```c
/*
*
*/
#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(tcn75a, CONFIG_SENSOR_LOG_LEVEL);
#include "tcn75a.h"
int tcn75a_trigger_set(const struct device *dev, const struct sensor_trigger *trig,
sensor_trigger_handler_t handler)
{
const struct tcn75a_config *config = dev->config;
struct tcn75a_da... | /content/code_sandbox/drivers/sensor/microchip/tcn75a/tcn75a_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,537 |
```c
/*
*
*/
#define DT_DRV_COMPAT microchip_tcn75a
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(tcn75a, CONFIG_SENSOR_LOG_LEVEL);
#include "tcn75a.h"
int tcn75a_sample_fetch(const struct device *dev, enum sensor_channel chan)
{
const struct tcn75a_config *config = dev->config;
struct tcn75a_data *data =... | /content/code_sandbox/drivers/sensor/microchip/tcn75a/tcn75a.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,110 |
```unknown
# Microchip MCP970X ADC driver
#
#
config MCP970X
bool "MCP9700/9700A and MCP9701/9701A sensor"
default y
depends on DT_HAS_MICROCHIP_MCP970X_ENABLED
select ADC
help
Enables Low-Power Linear Active Thermistor IC driver.
``` | /content/code_sandbox/drivers/sensor/microchip/mcp970x/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 71 |
```c
/*
*
*/
#define DT_DRV_COMPAT microchip_mcp970x
#include <zephyr/drivers/adc.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(mcp970x, CONFIG_SENSOR_LOG_LEVEL);
enum ic_family {
FAMILY_MCP9700_9700A,
FAMILY_MCP9701_9701A
};
/* Milli degrees C per degree C */
#defin... | /content/code_sandbox/drivers/sensor/microchip/mcp970x/mcp970x.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,004 |
```c
/*
*
*/
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/logging/log.h>
#include "mcp9808.h"
LOG_MODULE_DECLARE(MCP9808, CONFIG_SENSOR_LOG_LEVEL);
int mcp9808_attr_set(const struct device *dev, enu... | /content/code_sandbox/drivers/sensor/microchip/mcp9808/mcp9808_trigger.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,271 |
```c
/*
*
*/
#define DT_DRV_COMPAT microchip_mcp9808
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/init.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/logging/log.h>
#include "mcp9808.h"
LOG_MODULE_REGISTER(MCP9808, CONFIG_S... | /content/code_sandbox/drivers/sensor/microchip/mcp9808/mcp9808.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,055 |
```unknown
# MCP9808 temperature sensor configuration options
menuconfig MCP9808
bool "MCP9808 temperature sensor"
default y
depends on DT_HAS_MICROCHIP_MCP9808_ENABLED
select I2C
help
Enable driver for MCP9808 temperature sensor.
if MCP9808
choice
prompt "MCP9808 trigger mode"
default MCP9808_TRIGGER_NON... | /content/code_sandbox/drivers/sensor/microchip/mcp9808/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 227 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_MCP9808_MCP9808_H_
#define ZEPHYR_DRIVERS_SENSOR_MCP9808_MCP9808_H_
#include <errno.h>
#include <zephyr/types.h>
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/sys/util.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/g... | /content/code_sandbox/drivers/sensor/microchip/mcp9808/mcp9808.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,051 |
```unknown
#
config NXP_LP_FLEXCOMM
bool "Driver for the NXP Low Power FlexComm Interface"
default y
depends on DT_HAS_NXP_LP_FLEXCOMM_ENABLED
help
Enabled the Low Power FlexComm shim driver.
LP FLexcomm allows enablement of LPUART and LPI2C
at the same time with reduced interface. This driver
checks c... | /content/code_sandbox/drivers/mfd/Kconfig.lpflexcomm | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 98 |
```unknown
config MFD_TLE9104
bool "Infineon TLE9104 SPI powertrain switch"
default y
depends on DT_HAS_INFINEON_TLE9104_ENABLED
# using select SPI at this point introduces a cyclic dependency
depends on SPI
help
Enable driver for TLE9104 SPI-based powertrain switch.
``` | /content/code_sandbox/drivers/mfd/Kconfig.tle9104 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 75 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_lp_flexcomm
#include <errno.h>
#include <zephyr/device.h>
#include <zephyr/irq.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/drivers/mfd/nxp_lp_flexcomm.h>
LOG_MODULE_REGISTER(mfd_nxp_lp_flexcomm, CONFIG_MFD_LOG_LEVEL);
struct nxp_lp_flexcomm... | /content/code_sandbox/drivers/mfd/mfd_nxp_lp_flexcomm.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,517 |
```unknown
config MFD_NPM6001
bool "nPM6001 PMIC multi-function device driver"
default y
depends on DT_HAS_NORDIC_NPM6001_ENABLED
select I2C
help
Enable the Nordic nPM6001 PMIC multi-function device driver
config MFD_NPM6001_INIT_PRIORITY
int "nPM6001 MFD initialization priority"
default MFD_INIT_PRIORITY
... | /content/code_sandbox/drivers/mfd/Kconfig.npm6001 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 113 |
```c
/*
*/
#define DT_DRV_COMPAT adi_adp5585
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/gpio/gpio_utils.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/logging/log.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/drivers/mfd/adp5585.h>
LOG_MODULE_REGISTER(adp5585,... | /content/code_sandbox/drivers/mfd/mfd_adp5585.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,274 |
```c
/*
*/
#define DT_DRV_COMPAT nordic_npm6001
#include <errno.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/sys/util.h>
/* nPM6001 registers */
#define NPM6001_SWREADY 0x01U
#define NPM6001_BUCK3SELDAC 0x44U
#define NPM6001_BUCKMODEPADCONF 0x4EU
#define NPM6001_PADDRIVESTRENGTH 0x53U
/* nPM... | /content/code_sandbox/drivers/mfd/mfd_npm6001.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,106 |
```unknown
config MFD_BD8LB600FS
bool "BD8LB600FS low side switch multi-function device driver"
default y
depends on DT_HAS_ROHM_BD8LB600FS_ENABLED
# using select SPI at this point introduces a cyclic dependency
depends on SPI
help
Enable the Rohm BD8LB600FS low side switch multi-function device driver
``` | /content/code_sandbox/drivers/mfd/Kconfig.bd8lb600fs | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 83 |
```unknown
config MFD_MAX20335
bool "MAX20335 PMIC multi-function device driver"
default y
depends on DT_HAS_MAXIM_MAX20335_ENABLED
select I2C
help
Enable the Maxim MAX20335 PMIC multi-function device driver
``` | /content/code_sandbox/drivers/mfd/Kconfig.max20335 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 57 |
```c
/*
*
*/
#define DT_DRV_COMPAT maxim_max31790
#include <zephyr/device.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/mfd/max31790.h>
#include <zephyr/sys/util.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(max_max31790, CONFIG_MFD_LOG_LEVEL);
struct max31790_co... | /content/code_sandbox/drivers/mfd/mfd_max31790.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 620 |
```unknown
menuconfig MFD_ADP5585
bool "Analog ADP5585 I2C configurable GPIO/PWM/KeyScan chip"
default y
depends on DT_HAS_ADI_ADP5585_ENABLED
depends on I2C
help
Enable driver for Analog ADP5585.
config MFD_ADP5585_INIT_PRIORITY
int "Init priority"
default 65
depends on MFD_ADP5585
help
Device driver ... | /content/code_sandbox/drivers/mfd/Kconfig.adp5585 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 103 |
```unknown
menuconfig MFD_AD559X
bool "Analog AD559x I2C/SPI configurable ADC/DAC/GPIO chip"
default y
depends on DT_HAS_ADI_AD559X_ENABLED
help
Enable driver for Analog AD5592 or Analog AD5593.
if MFD_AD559X
config MFD_AD559X_BUS_I2C
bool "Analog AD559x I2C bus support"
default y
depends on $(dt_compat_on... | /content/code_sandbox/drivers/mfd/Kconfig.ad559x | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 180 |
```c
/*
*
*/
#define DT_DRV_COMPAT infineon_tle9104
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/mfd/tle9104.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/byteorde... | /content/code_sandbox/drivers/mfd/mfd_tle9104.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,506 |
```c
/*
*/
#include <zephyr/device.h>
#include <zephyr/drivers/mfd/ad559x.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/util_macro.h>
#include "mfd_ad559x.h"
static int mfd_ad559x_i2c_read_raw(const struct device *dev, uint8_t *val, size_t len)
{
const struct mfd_ad559x... | /content/code_sandbox/drivers/mfd/mfd_ad559x_i2c.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 600 |
```c
/*
*/
#define DT_DRV_COMPAT maxim_max20335
#include <errno.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/sys/util.h>
#define MAX20335_REG_CHIP_ID 0x00
#define MAX20335_CHIP_ID_VAL 0x04
struct mfd_max20335_config {
struct i2c_dt_spec bus;
};
static int mfd_max20335_init(const struct device *dev)
{
co... | /content/code_sandbox/drivers/mfd/mfd_max20335.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 315 |
```c
/*
*
*/
#define DT_DRV_COMPAT rohm_bd8lb600fs
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/gpio/gpio_utils.h>
#include <zephyr/drivers/mfd/bd8lb600fs.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/logging/log.h>
#i... | /content/code_sandbox/drivers/mfd/mfd_bd8lb600fs.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,956 |
```objective-c
/*
*/
#ifndef ZEPHYR_DRIVERS_MFD_AD559X_H_
#define ZEPHYR_DRIVERS_MFD_AD559X_H_
#ifdef __cplusplus
extern "C" {
#endif
#define DT_DRV_COMPAT adi_ad559x
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(i2c)
#include <zephyr/drivers/i2c.h>
#endif /* DT_AN... | /content/code_sandbox/drivers/mfd/mfd_ad559x.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 533 |
```c
/*
*/
#include <zephyr/device.h>
#include <zephyr/drivers/mfd/ad559x.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/sys/byteorder.h>
#include "mfd_ad559x.h"
static int mfd_ad559x_spi_read_raw(const struct device *dev, uint8_t *val, size_t len)
{
const struct mfd_ad559x_config *config = dev->config;
uin... | /content/code_sandbox/drivers/mfd/mfd_ad559x_spi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 832 |
```unknown
config MFD_AXP192
bool "AXP192 PMIC multi-function device driver"
default y
depends on DT_HAS_X_POWERS_AXP192_ENABLED
select I2C
help
Enable the X-Powers AXP192 PMIC multi-function device driver
``` | /content/code_sandbox/drivers/mfd/Kconfig.axp192 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 61 |
```unknown
config MFD_NCT38XX
bool "Nuvton NCT38xx multi-function device driver"
default y
depends on DT_HAS_NUVOTON_NCT38XX_ENABLED
select I2C
help
Enable the Nuvoton NCT38xx TCPC multi-function device driver.
``` | /content/code_sandbox/drivers/mfd/Kconfig.nct38xx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 66 |
```c
/*
*/
#define DT_DRV_COMPAT adi_ad559x
#include <zephyr/drivers/gpio.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/drivers/mfd/ad559x.h>
#include "mfd_ad559x.h"
bool mfd_ad559x_has_pointer_byte_map(const struct device *dev)
{
const struct mfd_ad559x_config *config = dev->c... | /content/code_sandbox/drivers/mfd/mfd_ad559x.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 870 |
```unknown
config MFD_MAX31790
bool "Maxim Integrated MAX31790 I2C configurable PWM controller"
default y
depends on DT_HAS_MAXIM_MAX31790_ENABLED
select I2C
help
Enable driver for Maxim Integrated MAX31790.
``` | /content/code_sandbox/drivers/mfd/Kconfig.max31790 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 56 |
```unknown
menuconfig MFD
bool "Multi-function device (MFD) drivers"
help
Include drivers for multi-function devices
if MFD
module = MFD
module-str = mfd
source "subsys/logging/Kconfig.template.log_config"
config MFD_INIT_PRIORITY
int "Initialization priority"
default 80
help
Multi-function devices initi... | /content/code_sandbox/drivers/mfd/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 211 |
```c
/*
*/
#define DT_DRV_COMPAT nordic_npm1300
#include <errno.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/sys/util.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/gpio/gpio_utils.h>
#include <zephyr/drivers/mfd/npm1300.h>
#define TIME_BASE 0x07U
#define MAIN... | /content/code_sandbox/drivers/mfd/mfd_npm1300.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,792 |
```unknown
config MFD_NPM1300
bool "nPM1300 PMIC multi-function device driver"
default y
depends on DT_HAS_NORDIC_NPM1300_ENABLED
select I2C
help
Enable the Nordic nPM1300 PMIC multi-function device driver
config MFD_NPM1300_INIT_PRIORITY
int "nPM1300 MFD initialization priority"
default MFD_INIT_PRIORITY
... | /content/code_sandbox/drivers/mfd/Kconfig.npm1300 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 113 |
```c
/*
*/
#define DT_DRV_COMPAT x_powers_axp192
#include <errno.h>
#include <stdbool.h>
#include <zephyr/drivers/mfd/axp192.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/sys/util.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(mfd_axp192, CONFIG_MFD_LOG_LEVEL);
/* Chip ID value */
#define AXP192_CHI... | /content/code_sandbox/drivers/mfd/mfd_axp192.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,196 |
```c
/*
*/
#define DT_DRV_COMPAT nuvoton_nct38xx
#include <zephyr/drivers/i2c.h>
struct mfd_nct38xx_config {
const struct i2c_dt_spec i2c_dev;
};
struct mfd_nct38xx_data {
/* lock NC38xx register access */
struct k_sem lock;
};
static int mfd_nct38xx_init(const struct device *dev)
{
const struct mfd_nct38xx_c... | /content/code_sandbox/drivers/mfd/mfd_nct38xx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 396 |
```c
/*
*/
#include <zephyr/arch/arm64/hypercall.h>
#include <zephyr/xen/generic.h>
#include <zephyr/xen/public/memory.h>
#include <zephyr/xen/public/xen.h>
#include <zephyr/kernel.h>
int xendom_add_to_physmap(int domid, unsigned long idx,
unsigned int space, xen_pfn_t gpfn)
{
struct xen_add_to_physmap xatp =... | /content/code_sandbox/drivers/xen/memory.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 496 |
```unknown
if XEN
menu "Xen drivers"
config XEN_GRANT_TABLE
bool "Xen grant table driver"
depends on HEAP_MEM_POOL_SIZE > 0
default y
help
Xen grant table driver. Please note that driver uses dynamic memory
allocation with k_malloc(), so CONFIG_HEAP_MEM_POOL_SIZE should be
>= number of pages, that you w... | /content/code_sandbox/drivers/xen/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 134 |
```c
/*
*
*/
#include <zephyr/arch/arm64/hypercall.h>
#include <zephyr/xen/hvm.h>
#include <zephyr/xen/public/hvm/hvm_op.h>
#include <zephyr/xen/public/hvm/params.h>
#include <zephyr/kernel.h>
int hvm_set_parameter(int idx, int domid, uint64_t value)
{
struct xen_hvm_param xhv;
xhv.domid = domid;
xhv.index = i... | /content/code_sandbox/drivers/xen/hvm.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 222 |
```c
/*
****************************************************************************
* (C) 2006 - Cambridge University
* (C) 2021-2022 - EPAM Systems
****************************************************************************
*
* File: gnttab.c
* Author: Steven Smith (sos22@cam.ac.uk)
* Changes... | /content/code_sandbox/drivers/xen/gnttab.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,506 |
```c
/*
*
*/
#include <zephyr/arch/arm64/hypercall.h>
#include <zephyr/xen/public/xen.h>
#include <zephyr/xen/public/event_channel.h>
#include <zephyr/xen/events.h>
#include <zephyr/sys/barrier.h>
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/irq.h>
LOG_MODULE_REGIS... | /content/code_sandbox/drivers/xen/events.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,922 |
```c
/*
*
*/
#include <zephyr/arch/arm64/hypercall.h>
#include <zephyr/xen/dom0/domctl.h>
#include <zephyr/xen/generic.h>
#include <zephyr/xen/public/domctl.h>
#include <zephyr/xen/public/xen.h>
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include <string.h>
static int do_domctl(xen_domctl_t *domctl)
{
do... | /content/code_sandbox/drivers/xen/dom0/domctl.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,970 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_lpc11u6x_eeprom
/**
* @file
* @brief EEPROM driver for NXP LPC11U6X MCUs
*
* This driver supports the on-chip EEPROM found on NXP LPC11U6x MCUs.
*
* @note This driver is only a wrapper for the IAP (In-Application Programming)
* EEPROM functions.
*/
#include <zep... | /content/code_sandbox/drivers/eeprom/eeprom_lpc11u6x.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 768 |
```unknown
config EEPROM_MB85RCXX
bool "FUJITSU mb85rcxx i2c FRAM"
default y
depends on DT_HAS_FUJITSU_MB85RCXX_ENABLED
select I2C
help
Enable FUJITSU mb85rcxx i2c FRAM
``` | /content/code_sandbox/drivers/eeprom/Kconfig.mb85rcxx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 67 |
```unknown
config EEPROM_LPC11U6X
bool "LPC11U6x EEPROM driver"
default y
depends on DT_HAS_NXP_LPC11U6X_EEPROM_ENABLED
help
Enable support for the on-chip EEPROM found on NXP LPC11U6x MCUs.
``` | /content/code_sandbox/drivers/eeprom/Kconfig.lpc11u6x | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 65 |
```unknown
config EEPROM_EMULATOR
bool "Emulated EEPROM driver"
default y
depends on DT_HAS_ZEPHYR_EMU_EEPROM_ENABLED
select FLASH
help
Enable emulated (on flash) EEPROM support. This mimics an external
EEPROM on a flash partition. The number of writes that can be
performed to the EEPROM is maximized by ... | /content/code_sandbox/drivers/eeprom/Kconfig.eeprom_emu | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 103 |
```c
/*
*
*/
/**
* @file
* @brief Driver for Atmel AT24 I2C and Atmel AT25 SPI EEPROMs.
*/
#include <zephyr/drivers/eeprom.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/kernel.h>
#define LOG_LEVEL CONFIG_EEP... | /content/code_sandbox/drivers/eeprom/eeprom_at2x.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,805 |
```unknown
config EEPROM_STM32
bool "STM32 EEPROM driver"
default y
depends on DT_HAS_ST_STM32_EEPROM_ENABLED
select USE_STM32_HAL_FLASH
select USE_STM32_HAL_FLASH_EX
help
Enable EEPROM support on the STM32 L0, L1 family of processors.
``` | /content/code_sandbox/drivers/eeprom/Kconfig.stm32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 67 |
```c
/*
*
*/
#include <zephyr/device.h>
#include <zephyr/drivers/eeprom.h>
#include <zephyr/drivers/eeprom/eeprom_fake.h>
#include <zephyr/fff.h>
#ifdef CONFIG_ZTEST
#include <zephyr/ztest.h>
#endif /* CONFIG_ZTEST */
#define DT_DRV_COMPAT zephyr_fake_eeprom
struct fake_eeprom_config {
size_t size;
};
DEFINE_FA... | /content/code_sandbox/drivers/eeprom/eeprom_fake.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 505 |
```c
/*
*
*/
#define DT_DRV_COMPAT fujitsu_mb85rcxx
#include <zephyr/device.h>
#include <zephyr/drivers/eeprom.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(EEPROM_MB85RCXX, CONFIG... | /content/code_sandbox/drivers/eeprom/eeprom_mb85rcxx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,760 |
```c
/*
*
*/
#include <errno.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/eeprom.h>
#include <zephyr/drivers/sensor/tmp116.h>
#define DT_DRV_COMPAT ti_tmp116_eeprom
struct eeprom_tmp116_config {
const struct device *parent;
};
BUILD_ASSERT(CONFIG_EEPROM_INIT_PRIORITY >
CONFIG_SENSOR_INIT_PRI... | /content/code_sandbox/drivers/eeprom/eeprom_tmp116.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 441 |
```c
/*
*
*/
#include <zephyr/internal/syscall_handler.h>
#include <zephyr/drivers/eeprom.h>
static inline int z_vrfy_eeprom_read(const struct device *dev, off_t offset,
void *data, size_t len)
{
K_OOPS(K_SYSCALL_DRIVER_EEPROM(dev, read));
K_OOPS(K_SYSCALL_MEMORY_WRITE(data, len));
return z_impl_eeprom_... | /content/code_sandbox/drivers/eeprom/eeprom_handlers.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 276 |
```unknown
# Microchip XEC EEPROM
config EEPROM_XEC
bool "MCHP XEC EEPROM driver"
default y
depends on DT_HAS_MICROCHIP_XEC_EEPROM_ENABLED
select PINCTRL
help
Enable support for Microchip XEC EEPROM driver.
``` | /content/code_sandbox/drivers/eeprom/Kconfig.xec | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 57 |
```c
/*
*
*/
#define DT_DRV_COMPAT st_stm32_eeprom
#include <zephyr/drivers/eeprom.h>
#include <soc.h>
#include <zephyr/kernel.h>
#define LOG_LEVEL CONFIG_EEPROM_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(eeprom_stm32);
K_MUTEX_DEFINE(lock);
struct eeprom_stm32_config {
uint32_t addr;
size_t... | /content/code_sandbox/drivers/eeprom/eeprom_stm32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 666 |
```unknown
config EEPROM_TMP116
bool "TMP116 EEPROM driver"
default y
depends on DT_HAS_TI_TMP116_EEPROM_ENABLED
depends on TMP116
help
Enable support for the on-chip EEPROM found on
Texas instrument TMP116 temperature sensor
``` | /content/code_sandbox/drivers/eeprom/Kconfig.tmp116 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 57 |
```c
/*
*
*/
/**
* @file
* @brief EEPROM shell commands.
*/
#include <zephyr/shell/shell.h>
#include <zephyr/drivers/eeprom.h>
#include <stdlib.h>
struct args_index {
uint8_t device;
uint8_t offset;
uint8_t length;
uint8_t data;
uint8_t pattern;
};
static const struct args_index args_indx = {
.device = 1... | /content/code_sandbox/drivers/eeprom/eeprom_shell.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,610 |
```unknown
# EEPROM driver configuration options
menuconfig EEPROM
bool "Electrically Erasable Programmable Read-Only Memory (EEPROM) drivers"
help
Enable support for EEPROM hardware.
if EEPROM
module = EEPROM
module-str = eeprom
source "subsys/logging/Kconfig.template.log_config"
config EEPROM_INIT_PRIORITY
... | /content/code_sandbox/drivers/eeprom/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 879 |
```c
/*
*
*/
/*
* This driver emulates an EEPROM device in flash.
*
* The emulation represents the EEPROM in flash as a region that is a direct
* map of the EEPROM data (EEPROM data) followed by a region where changes to
* the EEPROM data (EEPROM changes) are stored. The combination of EEPROM data
* and EEPROM... | /content/code_sandbox/drivers/eeprom/eeprom_emulator.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6,112 |
```c
/*
*
*/
#define DT_DRV_COMPAT zephyr_sim_eeprom
#ifdef CONFIG_ARCH_POSIX
#undef _POSIX_C_SOURCE
/* Note: This is used only for interaction with the host C library, and is therefore exempt of
* coding guidelines rule A.4&5 which applies to the embedded code using embedded libraries
*/
#define _POSIX_C_SOURCE ... | /content/code_sandbox/drivers/eeprom/eeprom_simulator.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,098 |
```c
/*
*
*/
#define DT_DRV_COMPAT microchip_xec_eeprom
#include <zephyr/device.h>
#include <zephyr/drivers/eeprom.h>
#include <zephyr/kernel.h>
#include <soc.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/logging/log.h>
#include <zephyr/pm/device.h>
#include <zephyr/pm/policy.h>
LOG_MODULE_REGISTER(eep... | /content/code_sandbox/drivers/eeprom/eeprom_mchp_xec.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,811 |
```c
/*
*
*/
#define DT_DRV_COMPAT atmel_at24
#define LOG_LEVEL CONFIG_I2C_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(atmel_at24);
#include <zephyr/device.h>
#include <zephyr/drivers/emul.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/i2c_emul.h>
/** Run-time data used by the emula... | /content/code_sandbox/drivers/eeprom/eeprom_at2x_emul.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,265 |
```objective-c
/* ieee802154_cc1200.h - Registers definition for TI CC1200 */
/*
*
*/
#ifndef ZEPHYR_DRIVERS_IEEE802154_IEEE802154_CC1200_H_
#define ZEPHYR_DRIVERS_IEEE802154_IEEE802154_CC1200_H_
#include <zephyr/linker/sections.h>
#include <zephyr/sys/atomic.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/dr... | /content/code_sandbox/drivers/ieee802154/ieee802154_cc1200.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,186 |
```c
/* ieee802154_rf2xx_iface.c - ATMEL RF2XX IEEE 802.15.4 Interface */
/*
*
*/
#define LOG_MODULE_NAME ieee802154_rf2xx_iface
#define LOG_LEVEL CONFIG_IEEE802154_DRIVER_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <errno.h>
#include <zephyr/device.h>
#include <zephy... | /content/code_sandbox/drivers/ieee802154/ieee802154_rf2xx_iface.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,926 |
```c
/*
*
*/
#define DT_DRV_COMPAT zephyr_ieee802154_uart_pipe
#define LOG_MODULE_NAME ieee802154_uart_pipe
#define LOG_LEVEL CONFIG_IEEE802154_DRIVER_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/arch/cpu.h>
#inclu... | /content/code_sandbox/drivers/ieee802154/ieee802154_uart_pipe.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,626 |
```objective-c
/* ieee802154_rf2xx_iface.h - ATMEL RF2XX transceiver interface */
/*
*
*/
#ifndef ZEPHYR_DRIVERS_IEEE802154_IEEE802154_RF2XX_IFACE_H_
#define ZEPHYR_DRIVERS_IEEE802154_IEEE802154_RF2XX_IFACE_H_
/**
* @brief Resets the TRX radio
*
* @param[in] dev Transceiver device instance
*/
void rf2xx_ifac... | /content/code_sandbox/drivers/ieee802154/ieee802154_rf2xx_iface.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 910 |
```objective-c
/* ieee802154_rf2xx.h - IEEE 802.15.4 Driver definition for ATMEL RF2XX */
/*
*
*/
#ifndef ZEPHYR_DRIVERS_IEEE802154_IEEE802154_RF2XX_H_
#define ZEPHYR_DRIVERS_IEEE802154_IEEE802154_RF2XX_H_
/* Runtime context structure
***************************
*/
enum rf2xx_trx_state_cmd_t {
RF2XX_TRX_PHY_STA... | /content/code_sandbox/drivers/ieee802154/ieee802154_rf2xx.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,231 |
```objective-c
/*
*
* Portions of this file are derived from ieee802154_cc2520.h that is
*
*/
#ifndef ZEPHYR_DRIVERS_IEEE802154_IEEE802154_MCR20A_H_
#define ZEPHYR_DRIVERS_IEEE802154_IEEE802154_MCR20A_H_
#include <zephyr/linker/sections.h>
#include <zephyr/sys/atomic.h>
#include <zephyr/drivers/spi.h>
struct mcr... | /content/code_sandbox/drivers/ieee802154/ieee802154_mcr20a.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,360 |
```unknown
# TI CC1200 configuration options
menuconfig IEEE802154_CC1200
bool "TI CC1200 Driver support"
default y
depends on DT_HAS_TI_CC1200_ENABLED
if IEEE802154_CC1200
config IEEE802154_CC1200_RX_STACK_SIZE
int "Driver's internal RX thread stack size"
default 800
help
This option sets the driver's sta... | /content/code_sandbox/drivers/ieee802154/Kconfig.cc1200 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,164 |
```c
/*
*
*/
#define DT_DRV_COMPAT ti_cc13xx_cc26xx_ieee802154_subghz
#define LOG_LEVEL CONFIG_IEEE802154_DRIVER_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(ieee802154_cc13xx_cc26xx_subg);
#include <errno.h>
#include <string.h>
#include <zephyr/device.h>
#include <zephyr/net/ieee802154.h>
#inclu... | /content/code_sandbox/drivers/ieee802154/ieee802154_cc13xx_cc26xx_subg.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 10,892 |
```objective-c
/* ieee802154_rf2xx_regs.h - ATMEL RF2XX transceiver registers */
/*
*
*/
#ifndef ZEPHYR_DRIVERS_IEEE802154_IEEE802154_RF2XX_REGS_H_
#define ZEPHYR_DRIVERS_IEEE802154_IEEE802154_RF2XX_REGS_H_
/*- Definitions ------------------------------------------------------------*/
#define RF2XX_AES_BLOCK_SIZE ... | /content/code_sandbox/drivers/ieee802154/ieee802154_rf2xx_regs.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,146 |
```unknown
# TI CC13xx / CC26xx IEEE 802.15.4 configuration options
menuconfig IEEE802154_CC13XX_CC26XX
bool "TI CC13xx / CC26xx IEEE 802.15.4 driver support"
select CRC
default y
depends on DT_HAS_TI_CC13XX_CC26XX_IEEE802154_ENABLED
if IEEE802154_CC13XX_CC26XX
config IEEE802154_CC13XX_CC26XX_INIT_PRIO
int "TI... | /content/code_sandbox/drivers/ieee802154/Kconfig.cc13xx_cc26xx | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,023 |
```c
/*
*
*/
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(dw1000, LOG_LEVEL_INF);
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/arch/cpu.h>
#include <zephyr/debug/stack.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/net/net_if.h>
#include <zephyr/net/net_pkt.h>
#inc... | /content/code_sandbox/drivers/ieee802154/ieee802154_dw1000.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 15,166 |
```objective-c
/* ieee802154_mcr20a_regs.h - Registers definition for NXP MCR20A */
/*
*
*
* This file is based on MCR20reg.h, it was modified to meet the
* coding style and restructured to make it easier to read.
* Additional identifiers was inserted (_MASK and _SHIFT endings),
* which are used in the macros fo... | /content/code_sandbox/drivers/ieee802154/ieee802154_mcr20a_regs.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 8,465 |
```c
/*
*
*/
#define DT_DRV_COMPAT ti_cc13xx_cc26xx_ieee802154
#define LOG_LEVEL CONFIG_IEEE802154_DRIVER_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(ieee802154_cc13xx_cc26xx);
#include <zephyr/device.h>
#include <errno.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/net/ieee802154_radio.h>... | /content/code_sandbox/drivers/ieee802154/ieee802154_cc13xx_cc26xx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7,250 |
```unknown
menuconfig IEEE802154_UPIPE
bool "UART PIPE fake radio driver support for QEMU"
default y
depends on (BOARD_QEMU_X86 || BOARD_QEMU_CORTEX_M3) && \
DT_HAS_ZEPHYR_IEEE802154_UART_PIPE_ENABLED
select UART_PIPE
if IEEE802154_UPIPE
config IEEE802154_UPIPE_HW_FILTER
bool "Hw Filtering"
default y
hel... | /content/code_sandbox/drivers/ieee802154/Kconfig.uart_pipe | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 333 |
```c
/* ieee802154_cc2520.c - TI CC2520 driver */
#define DT_DRV_COMPAT ti_cc2520
/*
*
*/
#define LOG_MODULE_NAME ieee802154_cc2520
#define LOG_LEVEL CONFIG_IEEE802154_DRIVER_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <errno.h>
#include <zephyr/kernel.h>
#include <z... | /content/code_sandbox/drivers/ieee802154/ieee802154_cc2520.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 10,138 |
```objective-c
/* ieee802154_nrf5.h - nRF5 802.15.4 driver */
/*
*
*/
#ifndef ZEPHYR_DRIVERS_IEEE802154_IEEE802154_NRF5_H_
#define ZEPHYR_DRIVERS_IEEE802154_IEEE802154_NRF5_H_
#include <zephyr/net/ieee802154_radio.h>
#define NRF5_PHR_LENGTH (1)
struct nrf5_802154_rx_frame {
void *fifo_reserved; /* 1st word res... | /content/code_sandbox/drivers/ieee802154/ieee802154_nrf5.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 894 |
```c
/* ieee802154_rf2xx.c - ATMEL RF2XX IEEE 802.15.4 Driver */
#define DT_DRV_COMPAT atmel_rf2xx
/*
*
*/
#define LOG_MODULE_NAME ieee802154_rf2xx
#define LOG_LEVEL CONFIG_IEEE802154_DRIVER_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <errno.h>
#include <stdio.h>
#inc... | /content/code_sandbox/drivers/ieee802154/ieee802154_rf2xx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 10,461 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_IEEE802154_IEEE802154_CC1200_RF_H_
#define ZEPHYR_DRIVERS_IEEE802154_IEEE802154_CC1200_RF_H_
#include <zephyr/drivers/ieee802154/cc1200.h>
#define CC1200_RF_NON_EXT_SPACE_REGS 42
#define CC1200_RF_EXT_SPACE_REGS 58
/* About PKTCFGn from Kconfig:
* CONFIG_IEEE802154_C... | /content/code_sandbox/drivers/ieee802154/ieee802154_cc1200_rf.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,565 |
```unknown
# TI CC2520 configuration options
menuconfig IEEE802154_CC2520
bool "TI CC2520 Driver support"
default y
depends on DT_HAS_TI_CC2520_ENABLED
if IEEE802154_CC2520
config IEEE802154_CC2520_RX_STACK_SIZE
int "Driver's internal RX thread stack size"
default 800
help
This option sets the driver's sta... | /content/code_sandbox/drivers/ieee802154/Kconfig.cc2520 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 613 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_IEEE802154_IEEE802154_B91_H_
#define ZEPHYR_DRIVERS_IEEE802154_IEEE802154_B91_H_
/* Timeouts */
#define B91_TX_WAIT_TIME_MS (10)
#define B91_ACK_WAIT_TIME_MS (10)
/* Received data parsing */
#define B91_PAYLOAD_OFFSET (5)... | /content/code_sandbox/drivers/ieee802154/ieee802154_b91.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,463 |
```unknown
# Nordic Semiconductor nRF5 802.15.4 configuration options
menuconfig IEEE802154_NRF5
bool "nRF52 series IEEE 802.15.4 Driver"
default y
depends on DT_HAS_NORDIC_NRF_IEEE802154_ENABLED
select NRF_802154_RADIO_DRIVER if HAS_HW_NRF_RADIO_IEEE802154
select NRF_802154_SER_HOST if !HAS_HW_NRF_RADIO_IEEE802... | /content/code_sandbox/drivers/ieee802154/Kconfig.nrf5 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 886 |
```objective-c
/* ieee802154_cc2520.h - Registers definition for TI CC2520 */
/*
*
*/
#ifndef ZEPHYR_DRIVERS_IEEE802154_IEEE802154_CC2520_H_
#define ZEPHYR_DRIVERS_IEEE802154_IEEE802154_CC2520_H_
#include <zephyr/linker/sections.h>
#include <zephyr/sys/atomic.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/dr... | /content/code_sandbox/drivers/ieee802154/ieee802154_cc2520.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,914 |
```c
/* ieee802154_mcr20a.c - NXP MCR20A driver */
#define DT_DRV_COMPAT nxp_mcr20a
/*
*
*/
#define LOG_MODULE_NAME ieee802154_mcr20a
#define LOG_LEVEL CONFIG_IEEE802154_DRIVER_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <errno.h>
#include <zephyr/kernel.h>
#include ... | /content/code_sandbox/drivers/ieee802154/ieee802154_mcr20a.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 11,336 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.