text
stringlengths
14
100k
source
stringclasses
1 value
repo
stringclasses
810 values
language
stringclasses
13 values
<|fim_suffix|>_13BIT_3MS (BIT(6) | BIT(4)) /** @} */ /** * @name apds9253 measurement rate * @{ */ #define APDS9253_MEASUREMENT_RATE_2000MS (BIT(2) | BIT(1) | BIT(0)) #define APDS9253_MEASUREMENT_RATE_1000MS (BIT(2) | BIT(0)) #define APDS9253_MEASUREMENT_RATE_500MS BIT(2) #define APDS9253_MEASUREMENT_RATE_200M...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>_COEFF_63 0x06 /**< 63 */ #define BMP581_DT_IIR_FILTER_COEFF_127 0x07 /**< 127 */ /** @} */ /** @} */ #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_BOSCH_BMP581_H_*/ <|fim_prefix|>/* * Copyright (c) 2025 Croxel Inc. * Copyright (c) 2025 CogniPilot Foundation * * SPDX-License-Identifier: Apache-2.0 */ /** ...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2023 The Zephyr Contributors. * * SPDX-License-Identifier: Apache-2.0 * * Relevant documents: * - BQ27421 * <|fim_suffix|>echnical reference manual: https://www.ti.com/lit/pdf/sluucd5 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_SENSOR_BQ274XX_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_SE...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2024 Intel Corporation <|fim_suffix|>T_ACCEL_ODR_4000 #define ICM42686_DT_ACCEL_ODR_2000 ICM4268X_DT_ACCEL_ODR_2000 #define ICM42686_DT_ACCEL_ODR_1000 ICM4268X_DT_ACCEL_ODR_1000 #define ICM42686_DT_ACCEL_ODR_200 ICM4268X_DT_ACCEL_ODR_200 #define ICM42686_DT_ACCEL_ODR_100 ICM4268X_...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2024 Intel Corporation * Copyright (c) 2025 Croxel, Inc. * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_TDK_ICM42688P_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_TDK_ICM42688P_H_ #include "icm4268x.h" /** * @defgroup icm42688 Invensense (TDK) ICM42688 DT...
fim
zephyrproject-rtos/zephyr
c
/* * Copyright (c) 2024 Intel Corporation * Copyright (c) 2025 Croxel, Inc. * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_TDK_ICM4268X_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_TDK_ICM4268X_H_ #include "sensor_axis_align.h" /** * @defgroup ICM4268X Invensense (TDK) ICM4268X DT Option...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2024 Intel Corporation * Copyright (c) 2025 Croxel Inc. * Copyright (c) 2025 CogniPilot Foundation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_TDK_ICM45686_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_TDK_ICM45686_H_ /** * @defgroup ICM45686 Invensense...
fim
zephyrproject-rtos/zephyr
c
/* * Copyright (c) 2023 STMicroelectronics * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_ST_IIS2DLPC_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_ST_IIS2DLPC_H_ /* power-modes */ #define IIS2DLPC_DT_LP_M1 0 #define IIS2DLPC_DT_LP_M2 1 #define IIS2DLPC_DT_LP_M3 2 #define IIS2DLPC_DT_L...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>/ #define IIS2ICLX_DT_ODR_OFF 0x0 #define IIS2ICLX_DT_ODR_12Hz5 0x1 #define IIS2ICLX_DT_ODR_26H 0x2 #define IIS2ICLX_DT_ODR_52Hz 0x3 #define IIS2ICLX_DT_ODR_104Hz 0x4 #define IIS2ICLX_DT_ODR_208Hz 0x5 #define IIS2ICLX_DT_ODR_416Hz 0x6 #define IIS2ICLX_DT_ODR_833Hz 0x7 #endif /* ZEPHYR_INC...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2025 STMicroelectronics * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_IIS3DWB_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_IIS3DWB_H_ #include <zephyr/dt-bindings/dt-util.h> /* Data rate */ #define IIS3DWB_DT_ODR_OFF 0 #define IIS3DWB_DT_ODR_26k7Hz ...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>#define INA226_CONV_TIME_8244 0x07 /* Operating Mode. */ #define INA226_OPER_MODE_POWER_DOWN 0x00 #define INA226_OPER_MODE_SHUNT_VOLTAGE_TRIG 0x01 #define INA226_OPER_MODE_BUS_VOLTAGE_TRIG 0x02 #define INA226_OPER_MODE_SHUNT_BUS_VOLTAGE_TRIG 0x03 #define INA226_OPER_MODE_SHUNT_VOLTAGE_CONT 0x05 #d...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|> \ (((avg) << 9) | ((bvct) << 6) | ((svct) << 3) | (mode)) #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_INA230_H_ */ <|fim_prefix|>/* * Copyright 2021 The Chromium OS Authors * Copyright (c) 2021<|fim_middle|> Grinn * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_INA230_H_ #de...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2021 Grinn * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_INA237_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_INA237_H_ #include <zephyr/dt-bindings/dt-util.h> /* Operating Mode */ #define INA237_CFG_HIGH_PRECISION BIT(4) #define INA237_OPER_MODE_SHUTDOWN...
fim
zephyrproject-rtos/zephyr
c
/* * Copyright (c) 2023 STMicroelectronics * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_ST_ISM330DHCX_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_ST_ISM330DHCX_H_ /* Accel and Gyro Data rates */ #define ISM330DHCX_DT_ODR_OFF 0x0 #define ISM330DHCX_DT_ODR_12Hz5 0x1 #define ISM330DHCX_...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>AT_3840Hz 0x6 #define ISM6HG256X_HG_XL_ODR_AT_7680Hz 0x7 /* Accel range */ #define ISM6HG256X_DT_FS_2G 2 #define ISM6HG256X_DT_FS_4G 4 #define ISM6HG256X_DT_FS_8G 8 #define ISM6HG256X_DT_FS_16G 16 #define ISM6HG256X_DT_FS_32G 32 #define ISM6HG256X_DT_FS_64G 64 #define ISM6HG256X_DT_FS_128G ...
fim
zephyrproject-rtos/zephyr
c
/* * Copyright (c) 2025 ITE Technology Corporation. * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_SENSOR_ITE_TACH_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_SENSOR_ITE_TACH_H_ /** * @name Tachometer input pin * @{ */ /** Tachometer input from pin A */ #define IT51XXX_TACH_INPUT_PIN_A...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>CLUDE_DT_BINDINGS_SENSOR_ITE_TACH_H_ */ <|fim_prefix|>/* * Copyright (c) 2021 ITE Technology Corporation. * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_SENSOR_ITE_TACH_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_SENSOR_ITE_TACH_H_ /** * @name Tachometer channels * @{ */ ...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2022 ITE Technology Corporation. * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_SENSOR_IT8XXX2_VCMP_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_SENSOR_IT8XXX2_VCMP_H_ /** * @name it8xxx2 voltage comparator channel references * @{ */ #define VCMP_CHANNEL...
fim
zephyrproject-rtos/zephyr
c
/* * Copyright (c) 2024 STMicroelectronics * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_ST_LIS2DE12_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_ST_LIS2DE12_H_ /* Accel range */ #define LIS2DE12_DT_FS_2G 0 #define LIS2DE12_DT_FS_4G 1 #define LIS2DE12_DT_FS_8G 2 #define LIS2DE12_DT_F...
fim
zephyrproject-rtos/zephyr
c
/* * Copyright (c) 2023 STMicroelectronics * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_ST_LIS2DH_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_ST_LIS2DH_H_ /* GPIO interrupt configuration */ #define LIS2DH_DT_GPIO_INT_EDGE_BOTH 0 #define LIS2DH_DT_GPIO_INT_EDGE_RISING 1 #define LIS2DH...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2023 STMicroelectronics * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_ST_LIS2DS12_H<|fim_suffix|> 6 /* available in LP and HR mode */ #define LIS2DS12_DT_ODR_400Hz 7 /* available in LP and HR mode */ #define LIS2DS12_DT_ODR_800Hz 8 /* availab...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>R_TRIG_PIN 0x0e /* Single-shot high latency by INT2 */ #define LIS2DU12_DT_ODR_TRIG_SW 0x0f /* Single-shot high latency by IF */ #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_ST_LIS2DU12_H_ */ <|fim_prefix|>/* * Copyright (c) 2023 STMicroelectronics * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2023 STMicroelectronics * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_LIS2DUX12_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_LIS2DUX12_H_ #include <zephyr/dt-bindings/dt-util.h> /* Operating Mode */ #define LIS2DUX12_OPER_MODE_POWER_DOWN 0 #define L...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2023 STMicroelectronics * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_ST_LIS2DW12_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_ST_LIS2DW12_H_ /* power-modes */ #define LIS2DW12_DT_LP_M1 0 #define LIS2DW12_DT_LP_M2 1 #define LIS2DW12_DT_LP_<|fim_suffix|>...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>_H_ */ <|fim_prefix|>/* * Copyright (c) 2023 STMicroelectronics * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_ST_LPS22HH_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_ST_LPS22HH_H_ /* Data rate */ #define LPS22HH_DT_ODR_POWER_DOWN 0 #define LPS22HH_DT_ODR_1HZ 1 #define LPS2...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>ER_ODR_9 3 /* Average (number of samples) filter */ #define LPS2xDF_DT_AVG_4_SAMPLES 0 #define LPS2xDF_DT_AVG_8_SAMPLES 1 #define LPS2xDF_DT_AVG_16_SAMPLES 2 #define LPS2xDF_DT_AVG_32_SAMPLES 3 #define LPS2xDF_DT_AVG_64_SAMPLES 4 #define LPS2xDF_DT_AVG_128_SAMPLES 5 #define LPS2xDF_DT_AVG_256_SAMP...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2023 STMicroelectronics * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_ST_LSM6DSO_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_ST_LSM6DSO_H_ /* Accel power-modes */ #define LSM6DSO_DT_XL_HP_MODE 0 #define LSM6DSO_DT_XL_LP_NORMAL_MODE 1 #define LSM6DSO_DT_...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>2000DPS 0x3 #define LSM6DSO16IS_DT_FS_125DPS 0x10 /* Accel and Gyro Data rates */ #define LSM6DSO16IS_DT_ODR_OFF 0x0 #define LSM6DSO16IS_DT_ODR_12Hz5_HP 0x1 #define LSM6DSO16IS_DT_ODR_26H_HP 0x2 #define LSM6DSO16IS_DT_ODR_52Hz_HP 0x3 #define LSM6DSO16IS_DT_ODR_104Hz_HP 0x4 #define LSM6DSO16IS_DT_...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2023 STMicroelectronics * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_ST_LSM6DSV16X_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_ST_LSM6DSV16X_H_ <|fim_suffix|>fine LSM6DSV16X_DT_FS_1000DPS 0x3 #define LSM6DSV16X_DT_FS_2000DPS 0x4 #define LSM6DSV16X_DT_FS...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2025 STMicroelectronics * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_ST_LSM6DSV320X_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_ST_LSM6DSV320X_H_ #include "lsm6dsvxxx.h" /* Accel High-g odr */ #define LSM6DSV320X_HG_XL_ODR_OFF 0x0 #define LSM6DSV320X_HG...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>6DSV32X_DT_FS_500DPS 0x2 #define LSM6DSV32X_DT_FS_1000DPS 0x3 #define LSM6DSV32X_DT_FS_2000DPS 0x4 #define LSM6DSV32X_DT_FS_4000DPS 0xc #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_ST_LSM6DSV32X_H_ */ <|fim_prefix|>/* * Copyright (c) 2023 STMicroelectronics * * SPDX-License-Identifier: Apache-2.0 */ #if...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2025 STMicroelectronics * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_ST_LSM6DSV80X_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_ST_LSM6DSV80X_H_ #include "lsm6dsvxxx.h" /* Accel High-g odr */ #define LSM6DSV80X_HG_XL_ODR_OFF 0x0 #define LSM6DSV80X_HG_XL_...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2025 STMicroelectronics * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_ST_LSM6DSVXXX_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_ST_LSM6DSVXXX_H_ /** * @name STMicroelectronics LSM6DSVXXX sensor DT Options * @ingroup sensor_interface * @{ */ /** * @na...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2024 Bootlin * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_ST_LSM9DS1_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_ST_LSM9DS1_H_ /* Accel range */ #define LSM9DS1_DT_FS_2G 0 #define LSM9DS1_DT_FS_16G 1 #define LSM9DS1_DT_FS_4G 2 #define LSM9DS1_DT_FS_8G ...
fim
zephyrproject-rtos/zephyr
c
/* * Copyright (c) 2024 Croxel Inc * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_MEMSIC_MC3419_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_MEMSIC_MC3419_H_ /** * @defgroup mc3419 Memsic DT Options * @ingroup sensor_interface * @{ */ /** * @defgroup mc3419_lpf_configs Lowe pass filte...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>T 0x0 #define MCP9600_DT_ADC_RES_16BIT 0x1 #define MCP9600_DT_ADC_RES_14BIT 0x2 #define MCP9600_DT_ADC_RES_12BIT 0x3 /** @} */ /** * @defgroup mcp9600_cold_junction_temp_resolution Cold junction temperature resolution * @{ */ #define MCP9600_DT_COLD_JUNC_TMP_RES_0_0625C 0x0 #define MCP9600_DT_COLD_JUN...
fim
zephyrproject-rtos/zephyr
c
/* * Copyright (c) 2025 Microchip Technology Inc. * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_SENSOR_MTCH9010_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_SENSOR_MTCH9010_H_ /* Operating Mode */ #define MTCH9010_CAPACITIVE 0x0 #define MTCH9010_CONDUCTIVE 0x1 /* Output UART Data Formats ...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2021 Nuvoton T<|fim_suffix|>R_INCLUDE_DT_BINDINGS_SENSOR_NPCX_TACH_H_ /* NPCX tachometer port type */ #define NPCX_TACH_PORT_A 0 #define NPCX_TACH_PORT_B 1 /* NPCX tachometer specific operate frequency */ #define NPCX_TACH_FREQ_LFCLK 32768 #endif /* ZEPHYR_INCLUDE_DT_BINDING...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>PAC_ACCUM_VSENSE 1 /** Accumulate Voltage data */ #define PAC_ACCUM_VBUS 2 /** Refresh mode manual */ #define PAC_REFRESH_MANUAL 0 /** Refresh mode */ #define PAC_REFRESH_AUTO_WAIT 1 /** Refresh mode */ #define PAC_REFRESH_AUTO_NOWAIT 2 #endif /* PAC194X_H_DTS_BINDINGS */ <|fim_prefix|>/* * Copyrig...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>AMPLEPER_512US 2 #define SAMPLEPER_1024US 3 #define SAMPLEPER_2048US 4 #define SAMPLEPER_4096US 5 #define SAMPLEPER_8192US 6 #define SAMPLEPER_16384US 7 #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_QDEC_NRF_H_ */ <|fim_prefix|>/* * Copyright 2025 Mark Geiger <MarkGeige<...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright 2023 NXP * * SPDX-License-Identifier: Apache-2.0 */ /* Logic Trigger Numbers. See Trgmux_Ip_Init_PBcfg.h */ #define TRGMUX_LOGIC_GROUP_0_TRIGGER_0 (0) /* Logic Trigger 0 */ #define TRGMUX_LOGIC_GROUP_0_TRIGGER_1 (1) /* Logic Trigger 1 */ #define TRGMUX_LOGIC_GROUP_1_TRIGGER_0 (2) /* Lo...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyrigh<|fim_suffix|>ier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_QDEC_STM32_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_QDEC_STM32_H_ #define NO_FILTER 0 #define FDIV1_N2 1 #define FDIV1_N4 2 #define FDIV1_N8 3 #define FDIV2_N6 4 #define FDIV2_N8 5 #define FDIV4_N6 6 #define FDIV4_N8 7 #defin...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>0x99 #define RM3100_DT_ODR_2_3 0x9A #define RM3100_DT_ODR_1_2 0x9B #define RM3100_DT_ODR_0_6 0x9C #define RM3100_DT_ODR_0_3 0x9D #define RM3100_DT_ODR_0_015 0x9E #define RM3100_DT_ODR_0_0075 0x9F /** @} */ /** @} */ #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_PNI_RM3100_H_ */ <|fim_prefix|>/* * Copyright (c) ...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>/** * @defgroup sensor_axis_align_dt Axis description for sensor alignment * @{ */ #define SENSOR_AXIS_ALIGN_DT_NEG 0 #define SENSOR_AXIS_ALIGN_DT_POS 2 /** @} */ /** @} */ #endif /*ZEPHYR_INCLUDE_DT_BINDINGS_SENSOR_AXIS_ALIGN_H_ */ <|fim_prefix|>/* * Copyright 2025 CogniPilot Foundation * SPDX-...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>INCLUDE_DT_BINDINGS_STCC4_H_ */ <|fim_prefix|>/* * Copyright The Zephyr Project Contributors * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Devicetree constants for the Sensirion STCC4 CO2 sensor */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_STCC4_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_ST...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright<|fim_suffix|>ta Rates */ #define STTS22H_POWER_DOWN 0x00 #define STTS22H_ONE_SHOT 0x01 #define STTS22H_1Hz 0x04 #define STTS22H_25Hz 0x02 #define STTS22H_50Hz 0x12 #define STTS22H_100Hz 0x22 #define STTS22H_200Hz 0x32 #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_ST_STTS22H_H_ */ <|fim_middle...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2023 deveritec GmbH * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_TMAG5273_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_TMAG5273_H_ #include <zephyr/dt-bindings/dt-util.h> /* Operating Mode */ #define TMAG5273_DT_OPER_MODE_CONTINUOUS 0 #define TMAG5273_DT_...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>define TMP114_DT_ODR_2000_MS 7 /** @} */ /** @} */ #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_TI_TMP114_H_ */ <|fim_prefix|>/* * Copyright (c) 2024 Fredrik Gihl * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_TI_TMP114_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_TI_TMP114_H_ /** ...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|><|fim_prefix|>/* * Copyright (c) 2025 Prevas A/S * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_TI_TMP11X_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_TI_TMP11X_H_ /** * @defgroup tmp11x Texas Instruments (TI) TMP11X DT Options * @ingroup sensor_interface * @{ */ /** * @...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>/** Include CRC status in fast message */ #define FAST_CRC_STATUS_INCLUDE 4 /** @} */ /** * @name Short Serial Message CRC Configuration Flags * @{ */ /** Legacy CRC algorithm for short serial message */ #define SHORT_CRC_LEGACY_IMPLEMENTATION 0 /** Recommended CRC algorithm for sho...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2021 Intel Corporation * * SPDX-License-Identif<|fim_suffix|>HYR_INCLUDE_DT_BINDINGS_SPI_SPI_H_ */ <|fim_middle|>ier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_SPI_SPI_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_SPI_SPI_H_ /** * @addtogroup spi_interface * @{ */ /** * @name S...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>IDER_4 2 #define NUCLEI_SYSTIMER_DIVIDER_8 3 #define NUCLEI_SYSTIMER_DIVIDER_16 4 #define NUCLEI_SYSTIMER_DIVIDER_32 5 #define NUCLEI_SYSTIMER_DIVIDER_64 6 #define NUCLEI_SYSTIMER_DIVIDER_128 7 #define NUCLEI_SYSTIMER_DIVIDER_256 8 #define NUCLEI_SYS...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2022 Georgij Cernysiov * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_TIMER_STM32_TIMER_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_TIMER_STM32_TIMER_H_ /* Ti<|fim_suffix|>0x00000020U #define STM32_TIM_COUNTERMODE_CENTER_UP 0x00000040U #define STM32_T...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2026 Texas Instruments * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Texas Instruments DM Timer Clock Source Def<|fim_suffix|>/ #define CPTS_GENF1 0xC /** CPTS function 2 clock */ #define CPTS_GENF2 0xD /** CPTS function 3 clock */ #define...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2023 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_USB_AUDIO_H #define ZEPHYR_INCLUDE_DT_BINDINGS_USB_AUDIO_H /* USB Device Class Definition for Audio Devices Release 2.0 May 31, 2006 * A.7 Audio Function Category Codes */...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 */ /<|fim_suffix|>3483_I_THRESHOLD_0_800 2 /** Current limit of 1000mA */ #define NX20P3483_I_THRESHOLD_1_000 3 /** Current limit of 1200mA */ #define NX20P3483_I_THRESHOLD_1_200 4 /** Current limit of 1400mA */ #define NX20P3483_I_T...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>@param max_mv Maximum voltage in millivolts * @param max_ma Maximum current in milliamps * @return 32-bit PPS APDO */ #define PDO_PPS_APDO(min_mv, max_mv, max_ma) \ (PDO_TYPE(PDO_TYPE_APDO) | PDO_APDO_TYPE(APDO_TYPE_PPS) | \ PDO_PPS_APDO_MIN_VOLT(min_mv) | PDO_PPS_APDO_MAX_VOLT(max_mv) | \ PD...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright 2024 NXP * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_VIDEO_INTERFACES_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_VIDEO_INTERFACES_H_ /** * @file * @brief Video interface bus type definitions */ /** * @defgroup<|fim_suffix|>1 2 /** SMIA CCP2 (Comp...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>_PIN_13_ANY NXP_LLWU_PIN_WAKEUP(14, NXP_LLWU_PIN_EDGE_ANY) /** PIN 14 wakeup source on rising edge. */ #define NXP_LLWU_PIN_14_RISING NXP_LLWU_PIN_WAKEUP(15, NXP_LLWU_PIN_EDGE_RISING) /** PIN 14 wakeup source on falling edge. */ #define NXP_LLWU_PIN_14_FALLING NXP_LLWU_PIN_WAKEUP(15, NXP_LLWU_PIN_ED...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>P_WUU_PIN(11, NXP_WUU_EDGE_RISING, NXP_WUU_EVENT_INT) /** Pin 11 rising edge DMA */ #define NXP_WUU_PIN_11_RISING_DMA NXP_WUU_PIN(11, NXP_WUU_EDGE_RISING, NXP_WUU_EVENT_DMA) /** Pin 11 rising edge trigger */ #define NXP_WUU_PIN_11_RISING_TRIGGER NXP_WUU_PIN(11, NXP_WUU_EDGE_RISING, NXP_WUU_EVENT_TRI...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>IT(0) #define NXP_S32_XSPI_SECURE BIT(1) #define NXP_S32_XSPI_PRIVILEGE BIT(2) #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_NXP_S32_XSPI_H_ */ <|fim_prefix|>/* * Copyright 2025 NXP * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_NXP_S32_XSPI_H_ #define ZEPHYR_INCLUDE_DT_BINDING...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>rchitecture support, this may be * a simple infinite loop, power off the hardware, or exit an emulator. * * If this function returns, then the currently executing thread will be * aborted. * * A few notes for custom implementations: * * - If the error is determined to be unrecoverable, LOG_PANIC()...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2023 CSIRO. * * SPDX-License-Identifier: Apache-2.0 */ /** @file * @brief Fatal base type definitions */ #ifndef ZEPHYR_INCLUDE_FATAL_TYPES_H #define ZEPHYR_INCLUDE_FATAL_TYPES_H<|fim_suffix|>ror base types * @ingroup fatal_apis * @{ */ enum k_fatal_error_reason { /** Gene...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2023 Antmicro <www.antmicro.com> * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_FS_EXT2_H_ #define ZEPHYR_INCLUDE_FS_EXT2_H_ #include <stdint.h> /** @brief Configuration used to format ext2 file system. * * If a field is set to 0 then default value is used. ...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2017-2023 Nordic Semiconductor ASA * Copyright (c) 2015 Runtime Inc * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_FS_FCB_H_ #define ZEPHYR_INCLUDE_FS_FCB_H_ /* * Flash circular buffer. */ #include <inttypes.h> #include <limits.h> #include <zephyr/storage/fla...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>lled when the file is being closed. * * @param zfp Pointer to the file object * * @retval 0 on success; * @retval -EBADF when invoked on zfp that represents unopened/closed file; * @retval -ENOTSUP when not implemented by underlying file system driver; * @retval <0 a negative errno code on error. ...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2016 Intel Corporation. * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_FS_FS_INTERFACE_H_ #define ZEPHYR_INCLUDE_FS_FS_INTERFACE_H_ #include <stdint.h> #ifdef __cplusplus extern "C" { #endif #if defined(CONFIG_FILE_SYSTEM_MAX_FILE_NAME) && (CONFIG_FILE_SYSTEM_...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2020 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_FS_FS_SYS_H_ #define ZEPHYR_INCLUDE_FS_FS_SYS_H_ #ifdef __cplusplus extern "C" { #endif /** * @ingroup file_system_api * @{ */ /** * @brief File System interface structure */ str...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>pplication is responsible for ensuring the configured * values are consistent with littlefs requirements. * * @note If you use a non-default configuration for cache size, you * must also select @kconfig{CONFIG_FS_LITTLEFS_FC_HEAP_SIZE} to relax * the size constraints on per-file cache allocations. *...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Co<|fim_suffix|>ted, please use zephyr/kvss/nvs.h instead.") #endif /* ZEPHYR_INCLUDE_FS_NVS_H_ */ <|fim_middle|>pyright (c) 2026 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_FS_NVS_H_ #define ZEPHYR_INCLUDE_FS_NVS_H_ /** * @file * @brief Legacy i...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>a { uint32_t max_write; }; #ifdef __cplusplus } #endif #endif /* ZEPHYR_INCLUDE_FS_VIRTIOFS_H_ */ <|fim_prefix|>/* * Copyright (c) 2025 Antmicro <www.a<|fim_middle|>ntmicro.com> * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_FS_VIRTIOFS_H_ #define ZEPHYR_INCLUDE_FS_VIRTIOFS_H_ #...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>R_INCLUDE_FS_ZMS_H_ #define ZEPHYR_INCLUDE_FS_ZMS_H_ /** * @file * @brief Legacy interface header for ZMS API. * @deprecated Please use @ref zephyr/kvss/zms.h instead. * @ingroup zms */ #include <zephyr/kvss/zms.h> __WARN("This header file is deprecated, please use zephyr/kvss/zms.h instead.") #en...
fim
zephyrproject-rtos/zephyr
c
/* * Copyright (c) 2025 Croxel Inc. * Copyright (c) 2025 CogniPilot Foundation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_GNSS_RTK_DECODER_H_ #define ZEPHYR_INCLUDE_GNSS_RTK_DECODER_H_ #include <stdint.h> #include <stddef.h> /** * @brief Get an RTK frame from buffer * * Used by RTK cli...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2023 Trackunit Corporation * Copyright (c) 2025 Croxel Inc. * Copyright (c) 2025 CogniPilot Foundation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef Z<|fim_suffix|>#define GNSS_RTK_DATA_CALLBACK_DEFINE(_dev, _callback) \ static const STRUCT_SECTION_ITERABLE(gnss_rtk...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>+C to stop.\n") webbrowser.open(url) try: server.serve_forever() except KeyboardInterrupt: print("\nStopped.") server.server_close() if __name__ == "__main__": main() <|fim_prefix|>#!/usr/bin/env python3 """Generate and serve a review page for eval results. Rea...
fim
zeroclaw-labs/zeroclaw
python
#!/usr/bin/env python3 """ Aggregate individual run results into benchmark summary statistics. Reads grading.json files from run directories and produces: - run_summary with mean, stddev, min, max for each metric - delta between with_skill and without_skill configurations Usage: python aggregate_benchmark.py <ben...
fim
zeroclaw-labs/zeroclaw
python
<|fim_suffix|>ve the description; the "Test" score shows performance on held-out queries the optimizer hasn't seen. When it's done, Claude will apply the best-performing description to your skill. </div> """] # Summary section best_test_score = data.get('best_test_score') best_train_score = data.get('b...
fim
zeroclaw-labs/zeroclaw
python
<|fim_suffix|>main(): parser = argparse.ArgumentParser(description="Improve a skill description based on eval results") parser.add_argument("--eval-results", required=True, help="Path to eval results JSON (from run_eval.py)") parser.add_argument("--skill-path", required=True, help="Path to skill directory")...
fim
zeroclaw-labs/zeroclaw
python
<|fim_prefix|>#!/usr/bin/env python3 """ Skill Packager - Creates a distributable .skill file of a skill folder Usage: python utils/package_skill.py <path/to/skill-folder> [output-directory] Example: python utils/package_skill.py skills/public/my-skill python utils/package_skill.py skills/public/my-skill ...
fim
zeroclaw-labs/zeroclaw
python
<|fim_prefix|>#!/usr/bin/env python3 """ Quick validation script for skills - minimal version """ import sys import os import re import yaml from pathlib import Path def validate_skill(skill_path): """Basic validation of a skill""" skill_path = Path(skill_path) # Check SKILL.md exists skill_md = skil...
fim
zeroclaw-labs/zeroclaw
python
<|fim_suffix|> query_triggers[query] = [] try: query_triggers[query].append(future.result()) except Exception as e: print(f"Warning: query failed: {e}", file=sys.stderr) query_triggers[query].append(False) for query, triggers in query_tri...
fim
zeroclaw-labs/zeroclaw
python
<|fim_suffix|> parser.add_argument("--trigger-threshold", type=float, default=0.5, help="Trigger rate threshold") parser.add_argument("--holdout", type=float, default=0.4, help="Fraction of eval set to hold out for testing (0 to disable)") parser.add_argument("--model", required=True, help="Model for improve...
fim
zeroclaw-labs/zeroclaw
python
<|fim_prefix|>"""Shared utilities for skill-creator scripts.""" from pathlib import Path def parse_skill_md(skill_path: Path) -> tuple[str, str, str]: """Parse a SKILL.md file, returning (name, description, full_content).""" content = (skill_path / "SKILL.md").read_text() lines = content.split("\n") ...
fim
zeroclaw-labs/zeroclaw
python
<|fim_prefix|>fn main() { #[cfg(target_os = "windows")] { let attrs = tauri_build:<|fim_suffix|> return; } tauri_build::build(); } <|fim_middle|>:Attributes::new().windows_attributes( tauri_build::WindowsAttributes::new() .app_manifest(include_str!("windows/app....
fim
zeroclaw-labs/zeroclaw
rust
<|fim_suffix|>> { #[cfg(target_os = "macos")] { let output = Command::new("/usr/bin/osascript") .args(["-e", &code]) .output() .map_err(|e| format!("osascript spawn failed: {e}"))?; if !output.status.success() { let stderr = String::from_utf8_loss...
fim
zeroclaw-labs/zeroclaw
rust
<|fim_suffix|>pplescript; pub mod screenshot; <|fim_prefix|>//! Capability handlers — Tauri commands the agent (or the dashboard webview) //! can invoke to act on the local machine. v1 minimal scope: a single //! read-only capability (screenshot) and <|fim_middle|>a single risky capability (AppleScript) //! to prove th...
fim
zeroclaw-labs/zeroclaw
rust
<|fim_suffix|>let status = Command::new("/usr/sbin/screencapture") .args(["-x", "-t", "png"]) .arg(&tmp) .status() .map_err(|e| format!("screencapture spawn failed: {e}"))?; if !status.success() { return Err(format!("screencapture exited with {status}...
fim
zeroclaw-labs/zeroclaw
rust
<|fim_prefix|>use crate::gateway_client::GatewayClient; use crate::state::SharedState; use <|fim_suffix|>( state: State<'_, SharedState>, message: String, ) -> Result<serde_json::Value, String> { let s = state.read().await; let client = GatewayClient::new(&s.gateway_url, s.token.as_deref()); drop(s)...
fim
zeroclaw-labs/zeroclaw
rust
<|fim_suffix|>s().await.map_err(|e| e.to_string()) } <|fim_prefix|>use crate::gateway_client::Gatew<|fim_middle|>ayClient; use crate::state::SharedState; use tauri::State; #[tauri::command] pub async fn list_channels(state: State<'_, SharedState>) -> Result<serde_json::Value, String> { let s = state.read().await; ...
fim
zeroclaw-labs/zeroclaw
rust
<|fim_prefix|>use crate::gateway_client::GatewayClient; use crate::state::SharedState; use tauri::State; #[tauri::command] pub async fn get_status(state: State<'_, SharedState>) -> Result<serde_json::Value, String> { let s = state.read().await; let client = GatewayClient::new(&s.gateway_url, s.token.as_deref()...
fim
zeroclaw-labs/zeroclaw
rust
<|fim_suffix|>; pub mod permissions; <|fim_prefix|>pub<|fim_middle|> mod agent; pub mod channels; pub mod gateway; pub mod onboarding; pub mod pairing<|endoftext|>
fim
zeroclaw-labs/zeroclaw
rust
<|fim_prefix|>//! Onboarding state commands. Persisted via tauri-plugin-store. use serde::Serialize; use serde_json::Value; use tauri::{AppHandle, Manager, Runtime}; use tauri_plugin_<|fim_suffix|>c can do. Failure is non-fatal — gateway may be offline or /// the device may not yet have a token. pub fn sync_capabiliti...
fim
zeroclaw-labs/zeroclaw
rust
<|fim_prefix|>use crate::gateway_client::GatewayClient; use crate::stat<|fim_suffix|>haredState>) -> Result<serde_json::Value, String> { let s = state.read().await; let client = GatewayClient::new(&s.gateway_url, s.token.as_deref()); drop(s); client.get_devices().await.map_err(|e| e.to_string()) } <|fim...
fim
zeroclaw-labs/zeroclaw
rust
//! Tauri commands for macOS permission management. use serde::Serialize; use tauri::{AppHandle, Runtime}; #[derive(Debug, Serialize)] pub struct PermissionInfo { pub name: String, pub label: String, pub status: String, } /// Return the status of all macOS permissions the app may need. #[tauri::command] ...
fim
zeroclaw-labs/zeroclaw
rust
<|fim_suffix|>result = client.get_devices().await; assert!(result.is_err(), "devices should fail for unreachable host"); } #[tokio::test] async fn pairing_fails_for_unreachable_host() { let client = GatewayClient::new("http://127.0.0.1:1", None); let result = client.initiate_pairing...
fim
zeroclaw-labs/zeroclaw
rust
<|fim_suffix|>tray.set_tooltip(Some(icon::tooltip_for_state(connected, agent_status))); } let _ = app.emit("zeroclaw://status-changed", healthy); tokio::time::sleep(POLL_INTERVAL).await; } }); } <|fim_prefix|>//! Background health polling for the ZeroClaw gateway. use ...
fim
zeroclaw-labs/zeroclaw
rust
<|fim_prefix|>//! ZeroClaw Desktop — Tauri application library. pub mod capabilities; pub mod commands; pub mod gateway_client; pub mod health; pub mod linux; pub mod macos; pub mod state; pub mod tray; pub mod windows; use commands::onboarding::read_onboarding_complete; use gateway_client::GatewayClient; use state::...
fim
zeroclaw-labs/zeroclaw
rust
<|fim_suffix|>x")] pub mod permissions; <|fim_prefix|>//! Linux-specific inte<|fim_middle|>grations. #[cfg(target_os = "linu<|endoftext|>
fim
zeroclaw-labs/zeroclaw
rust
<|fim_prefix|>//! Linux permission probes. //! //! Linux screenshot capture is not yet implemented <|fim_suffix|>nied" } pub fn check_notifications() -> &'static str { // Linux desktop notifications do not use a centralized user privacy gate. "granted" } pub fn request_notifications() -> &'static str { "g...
fim
zeroclaw-labs/zeroclaw
rust
<|fim_suffix|>tive integrations. #[cfg(target_os = "macos")] pub mod permissions; <|fim_prefix|>//! macOS-s<|fim_middle|>pecific na<|endoftext|>
fim
zeroclaw-labs/zeroclaw
rust