text
stringlengths
14
100k
source
stringclasses
1 value
repo
stringclasses
810 values
language
stringclasses
13 values
<|fim_prefix|>/* * Copyright (c) 2025 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef _ADC_V2T_NPCX_H_ #define _ADC_V2T_NPCX_H_ #include <zephyr/drivers/sensor.h> /* V2T sensor attributes */ enum npcx_adc_v2t_sensor<|fim_suffix|>{ SENSOR_ATTR_NPCX_V2T_CHANNEL_CFG = SENSOR_ATTR_PRIV_START, }...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * SPDX-FileCopyrightText: Copyright (c) 2024 Jilay Sandeep Pandya * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Header file for extended sensor API of ADLTC2990 sensor * @ingroup adltc2990_interface */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_ADLTC2990_H_ #define ZEPHYR_INCLUDE_DR...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>420_H_ #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_ADT7420_H_ /** * @brief Analog Devices ADT7420 Temperature Sensor * @defgroup adt7420_interface ADT7420 * @ingroup sensor_interface_ext * @{ */ #include <zephyr/drivers/sensor.h> /** Critical temperature trigger channel for use with sensor_trigger_set()...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2026 Analog Devices Inc. * SPDX-License-Identifier: Apache-2.0 */ /** * @file adxl355.h * @brief Header file for extended sensor API of ADXL355 sensor * */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_ADXL355_ADXL355_H_ #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_ADXL355_ADXL355_H_ #includ...
fim
zephyrproject-rtos/zephyr
c
/* * Copyright (c) 2025 Croxel Inc. * Copyright (c) 2025 CogniPilot Foundation * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Header file for extended sensor API of AFBR-S50 sensor * @ingroup afbr_s50_interface */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_AFBR_S50_H_ #define ZEPHYR_INCLUDE_DRIVE...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>nsor_value.val2 is unused (always 0). */ SENSOR_CHAN_APDS9960_GESTURE = SENSOR_CHAN_PRIV_START, }; /** * @brief Gesture values reported in @c sensor_value.val1 of the @ref SENSOR_CHAN_APDS9960_GESTURE * channel. */ enum apds9960_gesture { /** No gesture detected. */ APDS9960_GESTURE_NONE, /** Up...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>ge to SoC */ return linear_interpolate(ocv_table, soc_axis, BATTERY_OCV_TABLE_LEN, voltage_uv); } /** * @} */ #ifdef __cplusplus } #endif #endif /* ZEPHYR_INCLUDE_DRIVERS_SENSOR_BATTERY_H_ */ <|fim_prefix|>/* * Copyright 2024 Embeint Inc * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>HM Semiconductor BD8LB600FS open load and over-current detection * @defgroup bd8lb600fs_interface BD8LB600FS * @ingroup sensor_interface_ext * @{ */ #include <zephyr/drivers/sensor.h> /** * @brief Custom sensor channels for BD8LB600FS */ enum sensor_channel_bd8lb600fs { /** * Open load detected...
fim
zephyrproject-rtos/zephyr
c
/* * Copyright (c) 2025 Meta Platforms * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Header file for extended sensor API of BMM350 sensor * @ingroup bmm350_interface */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_BMM350_H_ #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_BMM350_H_ /** * @brief Bosch BMM350...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2022 Badgerd Technologies B.V. * * SPDX-License-Identifier: Apache-2.0 * * Driver is developed to be used with Zephyr. And it only supports i2c interface. * * Author: Talha Can Havadar <havadartalha@gmail.com> * */ /** * @file * @brief Header file for extended sensor API of ...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2018 Peter Bigot Consulting, LLC * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Extended public API for CCS811 Indoor Air Quality Sensor * * Some capabilities and operational requirements for this sensor * cannot be expressed within the sensor driver abstracti...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2024 Gustavo Silva * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Header file for extended sensor API of ENS160 sensor * @ingroup ens160_interface */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_ENS160_H_ #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_ENS160_H_ /** * @defgroup...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>UDE_DRIVERS_SENSOR_EXPLORIR_M_H_ */ <|fim_prefix|>/* * Copyright (c) 2025 Prevas A/S * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Header file for extended sensor API of ExplorIR-M sensor * @ingroup explorir_m_interface */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_EXPLORIR_M_H_ #de...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Header file for extended sensor API of F75303 sensor * @ingroup f75303_interface */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_F75303_H_ #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_F75303_H_ /** * @brief Finte...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2025 Prevas A/S * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Header file for extended sensor API of FCX-MLDX5 sensor * @ingroup fcx_mldx5_interface */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_FCX_MLDX5_H_ #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_FCX_MLDX5_H_ /** ...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2020 arithmetics.io * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Header file for extended sensor API of FDC2X1X sensor * @ingroup fdc2x1x_interface */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_FDC2X1X_H_ #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_FDC2X1X_H_ /** * @...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>the record index for template to be stored in the sensor device's * flash */ SENSOR_ATTR_R502A_RECORD_ADD, /** Find requested data in record storage * * sensor_value.val1 is the matched record index. * sensor_value.val2 is the matching score. */ SENSOR_ATTR_R502A_RECORD_FIND, /** Delete me...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright The Zephyr Project Contributors * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Header file for extended sensor API of HTU31D sensor * @ingroup htu31d_interface * * This exposes APIs for the on-chip heater, diagnostics register, and * factory-programmed serial num...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2026 Zephyr Project Developers * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Header file for extended sensor API of HX711 sensor * @ingroup hx711_interface */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_HX711_H_ #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_HX711_H_ /** * @...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|> }; #endif /* ZEPHYR_INCLUDE_DRIVERS_SENSOR_ICM4268X_H_ */ <|fim_prefix|>/* * Copyright The Zephyr Project Contributors * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_ICM4268X_H_ #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_ICM4268X_H_ #include <zephyr/drivers/sensor.h> ...
fim
zephyrproject-rtos/zephyr
c
/* * Copyright (c) 2024 TDK Invensense * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_ICM42X70_H_ #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_ICM42X70_H_ #include <zephyr/drivers/sensor.h> /** * @file * @brief Extended public API for ICM42X70 MEMS sensor * * Some capabilities and ...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>tion register value. * * - @c sensor_value.val1 is the raw 16-bit ADC configuration register. * - @c sensor_value.val2 is unused (always 0). */ SENSOR_ATTR_ADC_CONFIGURATION = SENSOR_ATTR_PRIV_START, }; #ifdef __cplusplus } #endif /** * @} */ #endif /* ZEPHYR_INCLUDE_DRIVERS_SENSOR_INA2XX_H_...
fim
zephyrproject-rtos/zephyr
c
/* * Copyright (c) 2022 ITE Technology Corporation. * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_IT8XXX2_VCMP_H_ #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_IT8XXX2_VCMP_H_ #ifdef __cplusplus extern "C" { #endif #include <zephyr/drivers/sensor.h> enum it8xxx2_vcmp_sensor_attribute ...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright The Zephyr Project Contributors * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Header file for extended sensor API of LIS2DH sensor * @ingroup lis2dh_interface */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_LIS2DH_H_ #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_LIS2DH_H_ /** ...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>95234 sensor * @ingroup lm95234_interface */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_LM95234_H_ #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_LM95234_H_ /** * @defgroup lm95234_interface LM95234 * @ingroup sensor_interface_ext * @brief LM95234 Quad Remote Diode and Local Temperature Sensor * @{ */ #includ...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright The Zephyr Project Contributors * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Header file for extended sensor API of LSM6DSVXXX sensor * @ingroup lsm6dsvxxx_interface */ #ifn<|fim_suffix|>e @ref lsm6dsvxxx_self_test_result for possible values. */ SENSOR_ATTR_G...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright 2022 Google LLC * * SPDX-License-Identifier<|fim_suffix|>x17055 { /** Battery Open Circuit Voltage. */ SENSOR_CHAN_MAX17055_VFOCV = SENSOR_CHAN_PRIV_START, }; /** * @} */ #endif /* ZEPHYR_INCLUDE_DRIVERS_SENSOR_MAX17055_H_ */ <|fim_middle|>: Apache-2.0 */ /** * @file * @brief H...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2025 Analog Devices Inc. * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Header file for extended sensor API of MAX30210 sensor * @ingroup max30210_interface */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_MAX30210_H_ #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_MAX30210_H_ /*...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>ask. * - @c sensor_value.val2 is unused (always 0). */ SENSOR_CHAN_MAX31790_FAN_FAULT = SENSOR_CHAN_PRIV_START, }; #ifdef __cplusplus } #endif /** * @} */ #endif /* ZEPHYR_INCLUDE_DRIVERS_SENSOR_MAX31790_H_ */ <|fim_prefix|>/* * SPDX-FileCopyrightText: Copyright (c) 2024 SILA Embedded Solutions...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2023 SILA Embedded Solutions * * SPDX-License-Identifier: Apache-2.0 *<|fim_suffix|>#ifndef _MAX31865_PUB_H #define _MAX31865_PUB_H #define SENSOR_ATTR_MAX31865_THREE_WIRE SENSOR_ATTR_PRIV_START #endif /* _MAX31865_PUB_H */ <|fim_middle|>/ <|endoftext|>
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>d the R value, * SpO2, SpO2 confidence level, heart rate, heart rate confidence level, RR value, and * activity class are reported. Furthermore, automatic gain control (AGC) is enabled. * Because AGC is a subset of AEC functionality, to enable AGC, AEC still needs to be * enabled. However, automat...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>r sensor_value.val1 of a @ref * SENSOR_ATTR_MCP9600_THERMOCOUPLE_TYPE attribute. * @{ */ #define MCP9600_ATTR_VALUE_TYPE_K 0x0 /**< Type K thermocouple */ #define MCP9600_ATTR_VALUE_TYPE_J 0x1 /**< Type J thermocouple */ #define MCP9600_ATTR_VALUE_TYPE_T 0x2 /**< Type T thermocouple */ #define MCP9600_...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>MCUX_ACMP_DAC_VOLTAGE_REFERENCE, /** Analog Comparator Digital-to-Analog Converter value. */ SENSOR_ATTR_MCUX_ACMP_DAC_VALUE, /** Analog Comparator positive port input. */ SENSOR_ATTR_MCUX_ACMP_POSITIVE_PORT_INPUT, /** Analog Comparator positive mux input. */ SENSOR_ATTR_MCUX_ACMP_POSITIVE_MUX_INPUT...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>lpcmp attribute types. */ enum sensor_attribute_mcux_lpcmp { /** LPCMP positive input mux. */ SENSOR_ATTR_MCUX_LPCMP_POSITIVE_MUX_INPUT = SENSOR_ATTR_COMMON_COUNT, /** LPCMP negative input mux. */ SENSOR_ATTR_MCUX_LPCMP_NEGATIVE_MUX_INPUT, /** * LPCMP internal DAC enable. * 0b: disable * 1b...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>erface MH-Z19B * @ingroup sensor_interface_ext * @brief Winsen MH-Z19B CO<sub>2</sub> sensor * @{ */ #ifdef __cplusplus extern "C" { #endif #include <zephyr/drivers/sensor.h> /** * @brief Custom sensor attributes for MH-Z19B */ enum sensor_attribute_mhz19b { /** * Automatic Baseline Correction...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|> @{ */ #ifdef __cplusplus extern "C" { #endif #include <zephyr/drivers/sensor.h> /** * @brief Custom sensor attributes for MLX90394 */ enum mlx90394_sensor_attribute { /** * Low noise mode. (SENSOR_CHAN_MAGN_XYZ channel only) */ MLX90394_SENSOR_ATTR_MAGN_LOW_NOISE = SENSOR_ATTR_PRIV_START, /*...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|> for details. */ SENSOR_ATTR_BANDWIDTH_SELECTION_BITS_1, /** * Automatic self reset. * * Enable automatic self-reset function. * Affects ODR; see datasheet for details. */ SENSOR_ATTR_AUTOMATIC_SELF_RESET, }; #ifdef __cplusplus } #endif /** * @} */ #endif /* ZEPHYR_INCLUDE_DRIVERS_SEN...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2025 Microchip Technology Inc. * * SPDX-License-Identifier: <|fim_suffix|>pache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_MTCH9010_H_ #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_MTCH9010_H_ #include <stdint.h> #include <zephyr/device.h> #include <zephyr/kernel.h> #include <zephyr/dr...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>RIV_START, /** VBUS voltage, in volts */ NPM10XX_SENSOR_CHAN_VBUS, /** ADC offset value */ NPM10XX_SENSOR_CHAN_OFFSET, }; /** @} */ #ifdef __cplusplus } #endif #endif /* ZEPHYR_INCLUDE_DRIVERS_SENSOR_NPM10XX_H_ */ <|fim_prefix|>/* * Copyright (c) 2026 Nordic Semiconductor ASA * SPDX-Licens<|fim_m...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2023 Nordic Semiconductor ASA * SPDX-License-Identifier: Apache-2.0 */ #ifndef <|fim_suffix|>charger specific channels */ enum sensor_channel_npm13xx_charger { SENSOR_CHAN_NPM13XX_CHARGER_STATUS = SENSOR_CHAN_PRIV_START, SENSOR_CHAN_NPM13XX_CHARGER_ERROR, SENSOR_CHAN_NPM13XX_CHAR...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2024 Nordic Semiconductor ASA * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIV<|fim_suffix|>NPM2100_ADC_DELAY = SENSOR_ATTR_PRIV_START, }; #endif <|fim_middle|>ERS_SENSOR_NPM2100_VBAT_H_ #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_NPM2100_VBAT_H_ #include <zephyr/dri...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2026 Google, LLC * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Header file for extended sensor API of PAC194x/PAC195x sensor */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSORS_PAC194X_H #define ZEPHYR_INCLUDE_DRIVERS_SENSORS_PAC194X_H #ifdef __cplusplus extern "C"...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|> * by the PAJ7620_FLAG_GES_X macros */ SENSOR_CHAN_PAJ7620_GESTURES = SENSOR_CHAN_PRIV_START }; #ifdef __cplusplus } #endif /* __cplusplus */ /** * @} */ #endif /* ZEPHYR_INCLUDE_DRIVERS_SENSOR_PAJ7620_H_ */ <|fim_prefix|>/* * Copyright (c) 2025 Paul Timke <ptimkec@live.com> * * SPDX-License-...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>RIVERS_SENSOR_PAT9136_H_ */ <|fim_prefix|>/* * Copyright (c) 2025 Croxel Inc. * Copyright (c) 2025 CogniPilot Foundation * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Header file for extended sensor API of PAT9136 sensor * @ingroup pat9136_interface */ #ifndef ZEPHYR_INCLUDE_D...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2025 Srishtik Bhandarkar * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_PZEM004T_H_ #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_PZEM004T_H_ #include <zephyr/drivers/sensor.h> /* PZEM004T specific channels */ enum sensor_channel_pzem004t { /* Energy co...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>_CHAN_QDEC_Y_COUNT, /** Z-axis raw count */ SENSOR_CHAN_QDEC_Z_COUNT, }; /** * @} */ #endif /* ZEPHYR_INCLUDE_DRIVERS_SENSOR_QDEC_BEE_H_ */ <|fim_prefix|>/* * Copyri<|fim_middle|>ght (c) 2026, Realtek Semiconductor Corporation * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief He...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2022, Prevas A/S * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Header file for extended sensor API of QDEC MCUX sensor * @ingroup sensor_qdec_mcux */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_QDEC_MCUX_H_ #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_QDEC_MCUX_H_ /** *...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2022, Prevas A/S * Copyright (c) 2025 NXP * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_QDEC_NXP_TPM_H_ #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_QDEC_NXP_TPM_H_ #include <zephyr/drivers/sensor.h> enum sensor_attribute_qdec_tpm { /* Number of coun...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|> <|fim_prefix|>/* * SPDX-FileCopyrightText: Copyright The Zephyr Project Contributors * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Header file for extended sensor API of Iclegend S3KM1110 sensor * @ingroup s3km1110_interface */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_S3KM1110_H_ #d...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>ation. This command * should only be sent when persistence is required and if actual changes to the configuration have * been made. The EEPROM is guaranteed to withstand at least 2000 write cycles * * @param dev Pointer to the sensor device * * @return 0 if successful, negative errno code if failure...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|> (only the integer part is used). */ SENSOR_ATTR_SGP40_TEMPERATURE = SENSOR_ATTR_PRIV_START, /** * Relative Humidity in % (only the integer part is used). */ SENSOR_ATTR_SGP40_HUMIDITY }; #ifdef __cplusplus } #endif /** * @} */ #endif /* ZEPHYR_INCLUDE_DRIVERS_SENSOR_SGP40_H_ */ <|fim_prefix...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|> and cannot be expressed within the * sensor driver abstraction. */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_SHT4X_H_ #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_SHT4X_H_ /** * @defgroup sht4x_interface SHT4X * @ingroup sensor_interface_ext * @brief Sensirion SHT4X temperature and humidity sensor * @{ */ ...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>tegration Cycles * * - sensor_value.val1 should be between 1 and 256. */ SENSOR_ATTR_TCS3400_INTEGRATION_CYCLES = SENSOR_ATTR_PRIV_START, }; /** * @} */ #endif /* ZEPHYR_INCLUDE_DRIVERS_SENSOR_TCS3400_H_ */ <|fim_prefix|>/* * Copyright 2023 Google LLC * * SPDX-License-Identifier: Apache-2.0 ...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2024 TDK Invensense * <|fim_suffix|> APEX (Advanced Pedometer and Event Detection – neXt gen) features of * TDK MEMS consist of: * ** Pedometer: Tracks step count. * ** Tilt Detection: Detect the Tilt angle exceeds 35 degrees. * ** Wake on Motion (WoM): Detects motion when accele...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>TTR_HEATER_LEVEL, /* Heater level (0-14) */ }; enum sensor_power_mode_hdc302x { HDC302X_SENSOR_POWER_MODE_0, /* (lowest noise) */ HDC302X_SENSOR_POWER_MODE_1, HDC302X_SENSOR_POWER_MODE_2, HDC302X_SENSOR_POWER_MODE_3, /* (lowest power) */ HDC302X_SENSOR_POWER_MODE_MAX }; enum sensor_measurement_int...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2024 SILA Embedded So<|fim_suffix|> * @defgroup tle9104_interface TLE9104 * @ingroup sensor_interface_ext * @brief TLE9104 4-channel powertrain switch * @{ */ #include <zephyr/drivers/sensor.h> /** Custom sensor channels for TLE9104 */ enum sensor_channel_tle9104 { /** * Open ...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>ions */ /** Additional channels supported by the TMAG5273 */ enum tmag5273_sensor_channel { /** * Magnitude measurement result between two axis in Gs. */ TMAG5273_CHAN_MAGNITUDE = SENSOR_CHAN_PRIV_START, /** * Magnitude measurement MSB as returned by the sensor. */ TMAG5273_CHAN_MAGNITUDE_MS...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|> for the TMP108 which can be used for * setting the on-chip Temperature Mode and alert parameters. */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_TMP108_H_ #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_TMP108_H_ #ifdef __cplusplus extern "C" { #endif enum sensor_attribute_tmp_108 { /** Turn on power saving/one sh...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>*/ #define TMP11X_ALERT_PIN_DR_SEL 1 /**< Alert pin reflects the status of the data ready flag */ /** @} */ /** * @brief EEPROM size for TMP11X */ #define EEPROM_TMP11X_SIZE (4 * sizeof(uint16_t)) /** * @brief Read from EEPROM * @param dev Pointer to a tmp11x device * @param offset Offset in t...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|> period) */ TMP451_RATE_0_125_HZ = 125000, /** 0.25 Hz (4 s period) */ TMP451_RATE_0_25_HZ = 250000, /** 0.5 Hz (2 s period) */ TMP451_RATE_0_5_HZ = 500000, /** 1 Hz (1 s period) */ TMP451_RATE_1_HZ = 1000000, /** 2 Hz (500 ms period) */ TMP451_RATE_2_HZ = 2000000, /** 4 Hz (250 ms period) */ T...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2022 T-Mobile USA, Inc. * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Extended public API for AMS's TSL2540 ambient light s<|fim_suffix|>_SENSOR_TSL2540_H_ */ <|fim_middle|>ensor * * This exposes attributes for the TSL2540 which can be used for * setting the ...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2023 Kurtis Dinelle * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Extended public API for AMS's TSL2591 ambient light sensor * * This exposes attributes for the TSL2591 which can be used for * setting the on-chip gain, integration time, and persist filter par...
fim
zephyrproject-rtos/zephyr
c
/* * Copyright (c) 2025 Prevas A/S * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Header file for extended sensor API of VEAA X-3 sensor * @ingroup veaa_x_3_interface */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_VEAA_X_3_H_ #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_VEAA_X_3_H_ /** * @brief Festo VE...
fim
zephyrproject-rtos/zephyr
c
/* * Copyright (c) 2025 Andreas Klinger * * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr/drivers/sensor/veml60xx-common.h> /** * @file * @brief Header file for extended sensor API of VEML6031 sensor * @ingroup veml6031_interface */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_VEML6031_H_ #define ZEPHYR_I...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2025 Andreas Klinger * * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr/drivers/sensor/veml60xx-common.h> /** * @file * @brief Header file for extended sensor API of VEML6046 sensor. * @ingroup veml6046_interface */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_VEML6046_H_ #...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>02, /**< 4 measurements */ VEML60XX_PERS_8 = 0x03, /**< 8 measurements */ }; static inline bool veml60xx_gain_in_range(int32_t gain) { return (gain >= VEML60XX_GAIN_1) && (gain <= VEML60XX_GAIN_0_5); } static inline bool veml60xx_it_in_range(int32_t it) { return (it >= VEML60XX_IT_3_125) && (it <= V...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2023 Andreas Kilian * Copyright (c) 2024 Jeff Welder (Ellenby Technologies, Inc.) * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_VEML7700_H_ #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_VEML7700_H_ #ifdef __cplusplus extern "C" { #endif /** * @brief N...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2024 Michal Piekos * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Custom channels and values for VL53L0X ToF Sensor * @ingroup vl53l0x_interface */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_VL53L0X_H_ #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_VL53L0X_H_ /** * @brief ST...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2022, Thomas Stranger * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Extended public API for 1-Wire Sensors * * This header file exposes an attribute an helper function to allow the * runtime configuration of ROM IDs for 1-Wire Sensors. */ #ifndef ZEPHYR_INC...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2024 Würth Elektronik eiSos GmbH & Co. KG * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Extended public API for WSEN-HIDS-2525020210002 Sensor * */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_WSEN_HIDS_2525020210002_H_ #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_WSEN_HID...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|> { /** Pressure rose above the upper threshold. */ SENSOR_TRIG_WSEN_PADS_2511020213301_THRESHOLD_UPPER = SENSOR_TRIG_PRIV_START, /** Pressure fell below the lower threshold. */ SENSOR_TRIG_WSEN_PADS_2511020213301_THRESHOLD_LOWER, }; #endif /* CONFIG_WSEN_PADS_2511020213301_PRESSURE_THRESHOLD */ #ifde...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2025 Würth Elektronik eiSo<|fim_suffix|>RIG_PRIV_START, /** Temperature fell below the lower threshold. */ SENSOR_TRIG_WSEN_TIDS_2521020222501_THRESHOLD_LOWER, }; #ifdef __cplusplus } #endif /** * @} */ #endif /* ZEPHYR_INCLUDE_DRIVERS_SENSOR_WSEN_TIDS_2521020222501_H_ */ <|fim_...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2024, MASSDRIVER EI (massdriver.space) * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Header file for extended sensor API of XBR818 sensor * * This exposes 4 additional attributes used to configure the IC */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_XBR818_H_ #de...
fim
zephyrproject-rtos/zephyr
c
/* * Copyright (c) 2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_H_ #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_H_ /** * @file * @ingroup sensor_interface * @brief Main header file for sensor driver API. */ /** * @brief Interfaces for sensors. * @defgroup sens...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>xtern "C" { #endif /** * Used by the following channel/attribute pairs: * - SENSOR_CHAN_ACCEL_XYZ * - SENSOR_ATTR_OFFSET * - SENSOR_CHAN_GYRO_XYZ * - SENSOR_ATTR_OFFSET * - SENSOR_CHAN_MAGN_XYZ * - SENSOR_ATTR_OFFSET */ struct sensor_three_axis_attribute { int8_t shift; union { struct {...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2024 Cienet * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_DRIVERS_SENSOR_CLOCK_H_ #define ZEPHYR_DRIVERS_SENSOR_CLOCK_H_ #include <stdint.h> #ifdef __cplusplus extern "C" { #endif /** * @brief Retrieve the current sensor clock cycles. * * This function obtains the...
fim
zephyrproject-rtos/zephyr
c
/* * Copyright (c) 2023 Google LLC * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_DATA_TYPES_H #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_DATA_TYPES_H #include <zephyr/dsp/types.h> #include <zephyr/dsp/print_format.h> #include <inttypes.h> #ifdef __cplusplus extern "C" { #endif str...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright 2025 NXP * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Single Edge Nibble Transmission (SENT) driver API. * @ingroup sent_interface */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SENT_H_ #define ZEPHYR_INCLUDE_DRIVERS_SENT_H_ #include <zephyr/kernel.h> #include <zephyr/devic...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>MD_ENABLE_EOP 0x01 #define CMD_DISABLE_EOP 0x02 #endif /* ZEPHYR_DRIVERS_SERIAL_UART_ALTERA_H_ */ <|fim_prefix|>/* * Copyright (c) 2023 Intel Corpor<|fim_middle|>ation * * SPDX-License-Identifier: Apache-2.0 */ /** * Header file for the ALTERA UART */ #ifndef ZEPHYR_DRIVERS_SERIAL_UART_ALTERA_H_ ...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>rief UART asynchronous RX helper structure. */ struct uart_async_rx { /* Pointer to the configuration structure. Structure must be persistent. */ const struct uart_async_rx_config *config; /* Total amount of pending bytes. Bytes may be spread across multiple RX buffers. */ atomic_t pending_bytes; /...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>*dev, uint8_t *buf, size_t len, int32_t timeout); int (*rx_buf_rsp)(const struct device *dev, uint8_t *buf, size_t len); int (*rx_disable)(const struct device *dev); }; /** @brief Structure holding receiver data. */ struct uart_async_to_irq_rx_data { /** Asynchronous RX helper data. */ struct uar...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|> RX buffer * * @param dev The emulated UART device instance * @param data The data to append * @param size Number of bytes to append * * @return Number of bytes appended */ uint32_t uart_emul_put_rx_data(const struct device *dev, const uint8_t *data, size_t size); /** * @brief Read data from TX b...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>_intr_t system_intr, uint8_t intr_priority, cy_israddress irq_handler); #else cy_rslt_t _ifx_cat1_irq_register(IRQn_Type system_intr, uint8_t intr_priority, cy_israddress irq_handler); #endif #if (IFX_CAT1_IRQ_MUXING) void _ifx_cat1_irq_enable(cy_en_intr_t system_irq); #else void _ifx_cat1_irq_...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2023 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ /** * Header file for the INTEL LW UART */ #ifndef ZEPHYR_DRIVERS_SERIAL_UART_INTEL_LW_H_ #define ZEPHYR_DRIVERS_SERIAL_UART_INTEL_LW_H_ /* End of packet feature. * Driver will trigger interrupt upon receiving e...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>50_H_ */ <|fim_prefix|>/* * Copyright (c) 2015 Intel Corporation. * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * * @brief Public header f<|fim_middle|>ile for the NS16550 UART */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SERIAL_UART_NS16550_H_ #define ZEPHYR_INCLUDE_DRIVERS_SERIAL_UART_NS16550_H_...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>omized SDM Mailbox communication * protocol handler. SDM Mailbox protocol will be embedded in * Arm SiP Services SMC protocol and sent to/from SDM via Arm * SiP Services. */ #define SIP_SVP_MB_MAX_WORD_SIZE 1024 #define SIP_SVP_MB_HEADER_TRANS_ID_OFFSET 24 #define SIP_SVP_MB_HEA...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2022-2023, Intel Corporation. * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_SIP_SVC_AGILEX_SMC_H_ #define ZEPHYR_INCLUDE_SIP_SVC_AGILEX_SMC_H_ /** * @file * @brief Intel SoC FPGA Agilex customized Arm SiP Services * SMC protocol. */ /* @brief SMC re...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2023, Intel Corporation. * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_SIP_SVC_DRIVER_H_ #define ZEPHYR_INCLUDE_SIP_SVC_DRIVER_H_ #include <zephyr/device.h> #include <zephyr/kernel.h> #include <zephyr/arch/arm64/arm-smccc.h> #include <zephyr/drivers/sip_svc/sip...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>g a1; unsigned long a2; unsigned long a3; unsigned long a4; unsigned long a5; unsigned long a6; unsigned long a7; uint64_t resp_data_addr; uint32_t resp_data_size; void *priv_data; }; /** @brief SiP Services service communication protocol * response format. * * response header * ...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>s_byte_data_write(dev, addr, cmd, byte); } /** * @brief Perform SMBus Byte Data Read operation * * This routine provides a generic interface to perform SMBus * Byte Data Read operation. * * @param dev Pointer to the device structure for the SMBus driver instance. * @param addr Address of the SMBus...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>L if none. * @param rx_bufs Buffer array where data to be read will be written to, * or NULL if none. * * @retval frames Positive number of frames received in slave mode. * @retval 0 If successful in master mode. * @retval -ENOTSUP means some part of the spi config is not supported either by ...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright 2020 Google LLC * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SPI_SPI_EMUL_H_ #define ZEPHYR_INCLUDE_DRIVERS_SPI_SPI_EMUL_H_ #include <zephyr/device.h> #include <zephyr/drivers/emul.h> #include <zephyr/drivers/spi.h> #include <zephyr/sys/slist.h> #include <...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>or * @retval -EINVAL If the requested resolution is invalid * @retval -ENOTSUP If the requested resolution is not supported * @retval 0 Success */ __syscall int stepper_set_micro_step_res(const struct device *dev, enum stepper_micro_step_resolution res); static inline int z_impl_stepper_set...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|> stepper_ctrl_direction direction); static inline int z_impl_stepper_ctrl_run(const struct device *dev, const enum stepper_ctrl_direction direction) { if (DEVICE_API_GET(stepper_ctrl, dev)->run == NULL) { return -ENOSYS; } return DEVICE_API_GET(stepper_ctrl, dev)->run(dev, direction); } /** ...
fim
zephyrproject-rtos/zephyr
c
/** * @file drivers/stepper/stepper_drv84xx.h * * @brief Public API for DRV84XX Stepper Controller Specific Functions * */ /* * SPDX-FileCopyrightText: Copyright (c) 2024 Navimatix GmbH * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIVERS_STEPPER_STEPPER_DRV84XX_H_ #define ZEPHYR_INCLUDE...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>atus * @return 0 on success, negative errno on failure */ int tmcm3216_get_status(const struct device *dev, struct tmcm3216_status *status); #ifdef __cplusplus } #endif #endif /* ZEPHYR_INCLUDE_DRIVERS_STEPPER_TMCM3216_H_ */ <|fim_prefix|>/* * SPDX-FileCopyrightText: Copyright (c) 2025 Alexis Czezar ...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|> TMC5XXX_IHOLDDELAY(DT_PROP(node, iholddelay))), #define TMC_RAMP_DT_SPEC_GET_TMC50XX(node) \ { \ TMC_RAMP_DT_SPEC_GET_COMMON(node) \ .vhigh = DT_PROP(node, vhigh), \ .vcoolthrs = DT_PROP(node, vcoolthrs), \ } #define TMC_RAMP_DT_SPEC_GET_TMC51XX(node) \ { ...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>/** @} */ #include <zephyr/syscalls/swdp.h> #endif /* ZEPHYR_INCLUDE_SWDP_H_ */ <|fim_prefix|>/* * Copyright (c) 2019 PHYTEC Messtechnik GmbH * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @ingroup swdp_interface * @brief Main header file for SWDP (Serial Wire Debug Port) driver API. ...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2021 Carlo Caione <ccaione@baylibre.com> * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @ingroup syscon_interface * @brief Main header file for SYSCON (System Control) driver API. */ #ifndef ZEPHYR_INCLUDE_DRIVERS_SYSCON_H_ #define ZEPHYR_INCLUDE_DRIVERS_SYSCON_H_ /...
fim
zephyrproject-rtos/zephyr
c
/* * Copyright (c) 2023 EPAM Systems * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @ingroup tee_interface * @brief Main header file for TEE (Trusted Execution Environment) driver API. */ /* * Copyright (c) 2015-2016, Linaro Limited * All rights reserved. * * Redistribution and use in source and...
fim
zephyrproject-rtos/zephyr
c