text
stringlengths
14
100k
source
stringclasses
1 value
repo
stringclasses
810 values
language
stringclasses
13 values
<|fim_suffix|>define ADP5585_PWM_OFFT_HIGH 0x30 #define ADP5585_PWM_ONT_LOW 0x31 #define ADP5585_PWM_ONT_HIGH 0x32 #define ADP5585_PWM_CFG 0x33 #define ADP5585_LOGIC_CFG 0x34 #define ADP5585_LOGIC_FF_CFG 0x35 #define ADP5585_LOGIC_INT_EVENT_EN 0x36 #define ADP5585_POLL_PTIME_...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>*/ #ifndef ZEPHYR_INCLUDE_DRIVERS_MFD_AW9523B_H_ #define ZEPHYR_INCLUDE_DRIVERS_MFD_AW9523B_H_ struct k_sem; struct device; #define AW9523B_REG_INPUT0 0x00 #define AW9523B_REG_INPUT1 0x01 #define AW9523B_REG_OUTPUT0 0x02 #define AW9523B_REG_OUTPUT1 0x03 #define AW9523B_REG_CONFIG0 0x04 #define AW9523...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>O0 * [1]: GPIO1 * [2]: GPIO2 * [3]: GPIO3 * [4]: GPIO4 * [5]: EXTEN * * @ingroup mfd_interfaces * @{ */ /** * @brief Request a GPIO pin to be configured to a specific function. GPIO0..5 * of AXP192 feature various functions (see @ref axp192_gpio_func for details). * A GPIO can only be us...
fim
zephyrproject-rtos/zephyr
c
/* * Copyright (c) 2024 SILA Embedded Solutions GmbH * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIVERS_MFD_BD8LB600FS_H_ #define ZEPHYR_INCLUDE_DRIVERS_MFD_BD8LB600FS_H_ #ifdef __cplusplus extern "C" { #endif #include <zephyr/device.h> /** * @defgroup mdf_interface_bd8lb600fs MFD BD8LB600F...
fim
zephyrproject-rtos/zephyr
c
/* * Copyright (c) 2024 Gergo Vari <work@gergovari.com> * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIVERS_MFD_DS3231_H_ #define ZEPHYR_INCLUDE_DRIVERS_MFD_DS3231_H_ #include <zephyr/drivers/i2c.h> /** * @brief Get specified number of registers from an I2C device * starting at the given ...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2026 The Zephyr Project Contributors * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @ingroup mfd_interface_m5pm1 * @brief Header file for the M5Stack M5PM1 MFD driver. */ #ifndef ZEPHYR_INCLUDE_DRIVERS_MFD_M5PM1_H_ #define ZEPHYR_INCLUDE_DRIVERS_MFD_M5PM1_H_ #includ...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>N GENMASK(5, 4) #define MAX22017_GEN_INTEN_OVC_INTEN GENMASK(3, 2) #define MAX22017_GEN_INTEN_CRC_INTEN BIT(1) #define MAX22017_GEN_INTEN_GPI_INTEN BIT(0) #define MAX22017_GEN_RST_CTRL_OFF 0x0A #define MAX22017_GEN_RST_CTRL_AO_COEFF_RELOAD GENMASK(15, 14) ...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2025 Analog Devices Inc. * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Public API for MAX2221X MFD driver * @ingroup mfd_interface_max2221x */ #ifndef ZEPHYR_INCLUDE_DRIVERS_MFD_MAX2221X_H_ #define ZEPHYR_INCLUDE_DRIVERS_MFD_MAX2221X_H_ #ifdef __cplusplus ex...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2024 SILA Embedded Solutions GmbH * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIVERS_MFD_MAX31790_H_ #define ZEPHYR_INCLUDE_DRIVERS_MFD_MAX31790_H_ #include <zephyr/sys/util.h> #include <zephyr/sys/util_macro.h> #define MAX31790_OSCILLATOR_FREQUENCY_IN_HZ 3276...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2025 Intel Corporation. * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIVERS_MFD_MC146818_H_ #define ZEPHYR_INCLUDE_DRIVERS_MFD_MC146818_H_ #ifdef __cplusplus extern "C" { #end<|fim_suffix|>offset to be read. * @retval value at the offset */ uint8_t mfd_mc14...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|> \ { \ .gpiocr = IT8801_DEV_MFD(idx, inst), \ .pin = IT8801_DEV_MFD_PIN(idx, inst), \ .alt_func = IT880...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2025 Vogl Electronic GmbH * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIVERS_MFD_MAXQ10XX_H_ #define ZEPHYR_INCLUDE_DRIVERS_MFD_MAXQ10XX_H_ #include <zephyr/device.h> #include <zephyr/kernel.h> #ifdef __cplusplus extern "C" { #endif /** * @brief Get the sema...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>n Address of the I2C DT spec */ const struct i2c_dt_spec *mfd_nct38xx_get_i2c_dt_spec(const struct device *dev); #ifdef __cplusplus } #endif #endif /* ZEPHYR_INCLUDE_DRIVERS_MFD_NCT38XX_H_ */ <|fim_prefix|>/* * Copyright (c) 2023 Google, LLC * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_I...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2026 Nordic Semiconductor A<|fim_suffix|>_t)(const struct device *mfd_npm10xx_dev, struct mfd_npm10xx_event_callback *cb, npm10xx_event_t events); /** * @brief nPM10xx MFD callback structure * * Used to register a callback in the driver instance callback list. * As...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>f Write npm13xx timer register * * @param dev npm13xx mfd device * @param time_ms timer value in ms * @return 0 on success, negative errno value on failure (see i2c_write_dt()). * @retval -EINVAL Time value is too large. */ int mfd_npm13xx_set_timer(const struct device *dev, uint32_t time_ms); /** ...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2024 Nordic Semiconductor ASA * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIVERS_MFD_NPM2100_H_ #define ZEPHYR_INCLUDE_DRIVERS_MFD_NPM2100_H_ #ifdef __cplusplus extern "C" { #endif /** * @defgroup mdf_interface_npm2100 MFD NPM2100 Interface * @ingroup mfd_in...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|> */ <|fim_prefix|>/* * Copyright 2024 NXP * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_DRIVERS_NXP_LP_FLEXCOMM_H_ #define ZEPHYR_DRIVERS_NXP_LP_FLEXCOMM_H_ #include "fsl_lpflexcomm.h" typedef void (*child_isr_t)(const struct device *dev); void nxp_lp_flexcomm_setirqhandler(const struct...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright 2025 NXP * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIVERS_MFD_PCA9422_H_ #define ZEPHYR_INCLUDE_DRIVERS_MFD_PCA9422_H_ #ifdef __cplusplus extern "C" { #endif /** * @defgroup mdf_interface_pca9422 MFD PCA9422 Interface * @ingroup mfd_interfaces * @{ */ #i...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2025 Baylibre SAS * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIVERS_MFD_RV3032_H_ #define ZEPHYR_INCLUDE_DRIVERS_MFD_RV3032_H_ #ifdef __cplusplus extern "C" { #endif #include <stddef.h> #include <stdint.h> #include <zephyr/device.h> /* RV3032 RAM registe...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2024 SILA Embedded Solutions GmbH * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIVERS_MFD_TLE9104_H_ #define ZEPHYR_INCLUDE_DRIVERS_MFD_TLE9104_H_ #include <stdbool.h> #include <zephyr/device.h> #define TLE9104_GPIO_COUNT 4 enum tle9104_on_state_diagnostics ...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2025 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef __ZE<|fim_suffix|>nclude <errno.h> #include <stdbool.h> #include <zephyr/kernel.h> #include <zephyr/spinlock.h> #include <zephyr/devicetree.h> enum mic_privacy_policy { MIC_PRIVACY_DISABLED = 0, MIC_PRIVAC...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright 2023 NXP * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @ingroup mipi_dbi_interface * @brief Main header file for MIPI-DBI (Display Bus Interface) driver API. * * MIPI-DBI defines the following 3 interfaces: * - Type A: Motorola 6800 type parallel bus * - Type B: Intel...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>the * transfer bus will enter ULPS. */ #define MCUX_DSI_2L_ULPS BIT(0x2) #endif /* ZEPHYR_INCLUDE_DRIVERS_MIPI_DSI_MCUX_2L_ */ <|fim_prefix|>/* * Copyright 2023,2025 NXP * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIVERS_MIPI_DSI_MCUX_2L_ #define ZEPHYR_INCLUDE_DRIVERS_MIPI_D...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>r. */ ssize_t mipi_dsi_generic_read(const struct device *dev, uint8_t channel, const void *params, size_t nparams, void *buf, size_t len); /** * @brief MIPI-DSI generic write. * * @param dev MIPI-DSI host device. * @param channel Device channel (VID). * @param buf Transmission buf...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>@param index the index representing the desired selection * @retval 0 On success * @retval -EINVAL If @p dev is invalid * @retval -ENODEV If the multiplexed device at @p index is not ready */ __syscall int devmux_select_set(struct device *dev, size_t index); /** * @} */ #ifdef __cplusplus } #endif...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|> * * @param ocram_addr: An address in OCRAM to set magic function on. * @retval 0 on success * @retval -EINVAL if ocram_addr is not in OCRAM * @retval -ENODEV if there is no OCRAM allocation in flexram */ int flexram_set_ocram_magic_addr(uint32_t ocram_addr); /** @brief Sets magic address for ITCM ...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>); /** * @brief Set callback executed when FT8xx triggers interrupt * * This function configures FT8xx to trigger interrupt when touch event changes * tag value. * * When touch event changes tag value, FT8xx activates INT line. The line is * kept active until ft8xx_get_touch_tag() is called. It re...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2020 Hubert Miś * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief FT8XX common functions */ #ifndef ZEPHYR_DRIVERS_MISC_FT8XX_FT8XX_COMMON_H_ #define ZEPHYR_DRIVERS_MISC_FT8XX_FT8XX_COMMON_H_ #include <stdint.h> #include <zephyr/device.h> #ifdef __cplusplus exte...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2020 Hubert Miś * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief FT8XX coprocessor functions */ #ifndef ZEPHYR_DRIVERS_MISC_FT8XX_FT8XX_COPRO_H_ #define ZEPHYR_DRIVERS_MISC_FT8XX_FT8XX_COPRO_H_ #includ<|fim_suffix|>tracker is rotary, * and reports an angl...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2020 Hubert Miś * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief FT8XX display list commands */ #ifndef ZEPHYR_DRIVERS_MISC_FT8XX_FT8XX_DL_H_ #define ZEPHYR_DRIVERS_MISC_FT8XX_FT8XX_DL_H_ #include <stdint.h> #ifdef __cplusplus extern "C" { #endif /** * @brief...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2020 Hubert Miś * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief FT8XX memory map */ #ifndef ZEPHYR_DRIVERS_MISC_FT8XX_FT8XX_MEMORY_H_ #define ZEPHYR_DRIVERS_MISC_FT8XX_FT8XX_MEMORY_H_ #ifdef __cplusplus extern "C" { #endif /** * @brief FT8xx memory addresses ...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|> * * The calibration procedure collects three touches from the touch screen, then * computes and loads an appropriate matrix into REG_TOUCH_TRANSFORM_A-F. To * use it, create a display list and then use CMD_CALIBRATE. The co-processor * engine overlays the touch targets on the current display list, g...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* grove_lcd.h - Public API for the Grove RGB LCD device */ /* * Copyright (c) 2015 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DISPLAY_GROVE_LCD_H_ #define ZEPHYR_INCLUDE_DISPLAY_GROVE_LCD_H_ #include <stdint.h> #include <zephyr/device.h> #ifdef __cplusplus ...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2025 Renesas Electronics Corporation * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Public APIs for the Renesas ELC driver * @ingroup renesas_elc_interface */ #ifndef ZEPHYR_INCLUDE_DRIVERS_MISC_RENESAS_ELC_H_ #define ZEPHYR_INCLUDE_DRIVERS_MISC_RENESAS_ELC_H_...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2025 Analog Devices Inc. * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Public API for MAX2221X MISC driver * @ingroup max2221x_interface */ #ifndef ZEPHYR_INCLUDE_DRIVERS_MISC_MAX2221X_MAX2221X_H_ #define ZEPHYR_INCLUDE_DRIVERS_MISC_MAX2221X_MAX2221X_H_ #ifd...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>tance * @param child Pointer to flexio child * @retval 0 if successful * @retval -ENOBUFS if there are not enough available resources */ int nxp_flexio_child_attach(const struct device *dev, const struct nxp_flexio_child *child); /** * @} */ #endif /* ZEPHYR_DRIVERS_MISC_NXP_FLEXIO_NXP_FLEXIO_H_ ...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>@brief Stops (stalls) the DSP. * * @param dev DSP device */ static inline void nxp_rtxxx_dsp_ctrl_disable(const struct device *dev) { ((struct nxp_rtxxx_dsp_ctrl_api *)dev->api)->disable(dev); } #endif <|fim_prefix|>/* * Copyright 2025 NXP * * SPDX-License-Identifier: Apache-2.0 */ #include <zep...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>DT_PROP_BY_IDX( \ DT_CHILD(DT_PINCTRL_BY_NAME(node_id, p_name, p_idx), g_name), pinmux, g_idx)) /** * @brief Get a pin number from a pinctrl / group name and index * * @param inst instance number * @param p_name pinctrl name * @param p_idx pinctrl index * @param g_name group name * @param...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2024 Renesas Electronics Corporation * * SPDX-License-Identifier: Apache-2.0 */ /** * @file<|fim_suffix|>A_EXTERNAL_INTERRUPT_H_ #define ZEPHYR_DRIVERS_MISC_RENESAS_RA_EXTERNAL_INTERRUPT_H_ #include <zephyr/drivers/gpio.h> /** * @brief Callback configuration for an external RA ...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2025 Renesas Electronics Corporation * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Renesas RX DTC Driver Header File */ #ifndef ZEPHYR_DRIVERS_MISC_RENESAS_RX_DTC_H_ #define ZEPHYR_DRIVERS_MISC_RENESAS_RX_DTC_H_ #include <zephyr/drivers/gpio.h> /** * @name ...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>* @param pin Pin number. */ void gpio_rx_interrupt_unset(const struct device *dev, uint8_t port_num, uint8_t pin); /** @} */ #endif /* ZEPHYR_DRIVERS_MISC_RENESAS_RX_EXTERNAL_INTERRUPT_H_ */ <|fim_prefix|>/* * Copyright (c) 2025 Renesas Electronics Corporation * * SPDX-License-Identifier: Apac...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2024 STMicroelectronics * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Public APIs for STM32 PWR wake-up pins configuration */ #ifndef ZEPHYR_DRIVERS_MISC_STM32_WKUP_PINS_H_ #define ZEPHYR_DRIVERS_MISC_STM32_WKUP_PINS_H_ #include <zephyr/drivers/gpio.h> #ifde...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>unmapping of a page in the specified memory bank * * This function is used to update the number of unmapped pages within the * specified memory bank. * * @param[in,out] bank Pointer to the memory bank's data structure * * @return The number of unmapped pages within the memory bank */ uint32_t sys_...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* SPDX-License-Identifier: Apache-2.0 */ /* * Copyright (c) 2022 Intel Corporation. * * Author: Marcin Szkudlinski <marcin.szkudlinski@linux.intel.com> * */ #ifndef ZEPHYR_INCLUDE_DRIVERS_INTEL_ADSP_MTL_TLB #define ZEPHYR_INCLUDE_DRIVERS_INTEL_ADSP_MTL_TLB /* * This function will save contents o...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>ion_size_32K, address_trans_region_size_64K, address_trans_region_size_128K, address_trans_region_size_256K, address_trans_region_size_512K, address_trans_region_size_1M, address_trans_region_size_2M, address_trans_region_size_4M, address_trans_region_size_8M, address_trans_region_size_16M, addr...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|> void *virt, uintptr_t phys, uint32_t flags); /** * @brief Map a region of physical memory into the virtual address space * * This maps a region of physical memory into the virtual address space. * Behavior when providing unaligned addresses/sizes is undefined, these * are assumed to be page aligne...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/** @file * @brief HL7800 modem public API header file. * * Allows an application to control the HL7800 modem. * * Copyright (c) 2020 Laird Connectivity * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIVERS_MODEM_HL7800_H_ #define ZEPHYR_INCLUDE_DRIVERS_MODEM_HL7800_H_ #ifdef...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>egister * @return 0 on success, negative errno on failure */ int hl78xx_evt_monitor_unregister(struct hl78xx_evt_monitor_entry *mon); /** * @brief Convert HL78xx RAT mode to standard cellular API * * Maps HL78xx-specific radio access technology enum to the * standard Zephyr cellular API access tech...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>LAR_DEFINE_INSTANCE(inst, vendor_config) \ BUILD_ASSERT(vendor_config != NULL, "vendor_config must be non-NULL"); \ static const struct modem_cellular_config MODEM_CELLULAR_INST_NAME(config, inst) = { \ .uart = DEVICE_DT_GET(DT_INST_BUS(...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/** @file * @brief Simcom SIM7080 modem public API header file. * * Copyright (C) 2021 metraTec GmbH * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIVERS_MODEM_SIMCOM_SIM7080_H #define ZEPHYR_INCLUDE_DRIVERS_MODEM_SIMCOM_SIM7080_H #include <zephyr/types.h> #include <stdbool.h...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|> info */ #define GNSS_FORMAT_ST_ORIENTATION 0 /** * Parameters used if NMEA format enabled for GNSS. */ /** $GPGGA info */ #define GNSS_NMEA_GPGGA 1 /** $GPGSA info */ #define GNSS_NMEA_GPGSA 0 /** $GPGSV info */ #define GNSS_NMEA_GPGSV 0 /** $GPGLL info */ #define GNSS_NMEA_GPGLL 1 /*...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|> * * This helper macro check whether <tt>xip_config</tt> binding exist first * before calling <tt>MSPI_XIP_CONFIG_DT_NO_CHECK</tt>. * * @param mspi_dev Devicetree node identifier for the MSPI device whose * struct mspi_xip_cfg to create an initializer for */ #define MSPI_XIP_CONFIG_...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2025 Tenstorrent AI ULC * * SPD<|fim_suffix|>egister for MSPI DW SSI */ #define MSPI_DW_RX_TIMING_CFG BIT(0) #ifdef __cplusplus } #endif #endif /* ZEPHYR_INCLUDE_DRIVERS_MSPI_DW_H_ */ <|fim_middle|>X-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIVERS_MSPI_DW_H_ #def...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2025, Ambiq Micro Inc. <www.ambiq.com> * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @ingroup mspi_interface * @brief Main header file for MSPI (Multi-bit Serial Peripheral Interface) driver API. */ #ifndef ZEPHYR_INCLUDE_MSPI_H_ #define ZEPHYR_INCLUDE_MSPI_H_ #inc...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>dev_idx; }; /** Definition of the MSPI controller emulator API */ __subsystem struct emul_mspi_driver_api { /* The struct mspi_driver_api has to be first in * struct emul_mspi_driver_api to make pointer casting working */ struct mspi_driver_api mspi_api; /* The rest, emulator specific functi...
fim
zephyrproject-rtos/zephyr
c
/* * Copyright 2025 NXP * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @ingroup opamp_interface * @brief Main header file for OPAMP (Operational Amplifier) driver API. */ #ifndef ZEPHYR_INCLUDE_DRIVERS_OPAMP_H_ #define ZEPHYR_INCLUDE_DRIVERS_OPAMP_H_ /** * @brief Interfaces for operational amplifi...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2025 STMicroelectronics * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @ingroup otp_interface * @brief Main header file for OTP driver API. */ #ifndef ZEPHYR_INCLUDE_DRIVERS_OTP_H_ #def<|fim_suffix|>@brief Program data to the given OTP memory * * @param dev OTP devic...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>P_ID_SECDEV 0x0FU /**< Secure Device */ #define PCI_CAP_ID_EXP 0x10U /**< PCI Express */ #define PCI_CAP_ID_MSIX 0x11U /**< MSI-X */ #define PCI_CAP_ID_SATA 0x12U /**< Serial ATA Data/Index Configuration */ #define PCI_CAP_ID_AF 0x13U /**< PCI Advanced Features */ #define PCI_CAP_ID_EA 0x14U /**< PCI...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>roller} */ __subsystem struct pcie_ctrl_driver_api { /** @driver_ops_mandatory @copybrief pcie_ctrl_conf_read */ pcie_ctrl_conf_read_t conf_read; /** @driver_ops_mandatory @copybrief pcie_ctrl_conf_write */ pcie_ctrl_conf_write_t conf_write; /** @driver_ops_mandatory @copybrief pcie_ctrl_region_allo...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>gion has to be used, * this is useful in cases where bus master cannot generate * more than 32-bit address; it becomes essential to use * lowmem outbound region * * @return Mapped size : If mapped size is less than requested size, * then requester has to call the same API aga...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>I_MCR_EN 0x00010000U /* enable MSI */ #define PCIE_MSI_MCR_MMC 0x000E0000U /* Multi Messages Capable mask */ #define PCIE_MSI_MCR_MMC_SHIFT 17 #define PCIE_MSI_MCR_MME 0x00700000U /* mask of # of enabled IRQs */ #define PCIE_MSI_MCR_MME_SHIFT 20 #define PCIE_MSI_MCR_64 0x00800000U /* 64-bit MSI */ ...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>param bdf_p PCIe endpoint BDF * @param irq_p IRQ line number. * @param priority_p Interrupt priority. * @param isr_p Address of interrupt service routine. * @param isr_param_p Parameter passed to interrupt service routine. * @param flags_p Architecture-specific IRQ configuration flags.. */ #define P...
fim
zephyrproject-rtos/zephyr
c
/* * Copyright (c) 2021 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Header file for PCIe Precision Time Measurement (PTM) host API. * @ingroup pcie_host_ptm_interface */ #ifndef ZEPHYR_INCLUDE_DRIVERS_PCIE_PTM_H_ #define ZEPHYR_INCLUDE_DRIVERS_PCIE_PTM_H_ /** * @brief P...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2023 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIVERS_PCIE_VC_H_ #define ZEPHYR_INCLUDE_DRIVERS_PCIE_VC_H_ /** * @brief PCIe Virtual Channel Host Interface * @defgroup pcie_vc_host_interface PCIe Virtual Channel Host Interface * @ingro...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|> DEVICE_API_GET(peci, dev)->enable(dev); } /** * @brief Disable PECI interface. * * @param dev Pointer to the device structure for the driver instance. * * @return 0 on success, negative errno value on failure. */ __syscall int peci_disable(const struct device *dev); static inline int z_impl_peci_...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2022-2026 Espressif Systems (Shanghai) Co., Ltd. * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIVERS_PINCTRL_PINCTRL_ESP32_COMMON_H_ #define ZEPHYR_INCLUDE_DRIVERS_PINCTRL_PINCTRL_ESP32_COMMON_H_ /** @cond INTERNAL_HIDDEN */ /** @brief Get GPIO port index fr...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright 2022, 2024 NXP * * SPDX-License-Identifier: Apache-2.0 */ /* * @file * NXP PORT SOC specific helpers for pinctrl driver */ #ifndef ZEPHYR_INCLUDE_DRIVERS_PINCTRL_PINCTRL_NXP_PORT_COMMON_H_ #define ZEPHYR_INCLUDE_DRIVERS_PINCTRL_PINCTRL_NXP_PORT_COMMON_H_ /** @cond INTERNAL_HIDDEN...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright 2022-2025 NXP * * SPDX-Lice<|fim_suffix|>de <zephyr/devicetree.h> #include <zephyr/types.h> /** @cond INTERNAL_HIDDEN */ struct pinctrl_soc_reg { uint8_t inst; uint16_t idx; uint32_t val; }; /** @brief Type for NXP SIUL2 pin configuration. */ typedef struct { struct pinctrl_soc_re...
fim
zephyrproject-rtos/zephyr
c
/* * Copyright (c) 2023 IoT.bzh * * SPDX-License-Identifier: Apache-2.0 * */ #ifndef ZEPHYR_SOC_ARM_RENESAS_RCAR_COMMON_PINCTRL_SOC_H_ #define ZEPHYR_SOC_ARM_RENESAS_RCAR_COMMON_PINCTRL_SOC_H_ #include <zephyr/devicetree.h> #include <zephyr/dt-bindings/pinctrl/renesas/pinctrl-rcar-common.h> #include <stdint.h> #...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>e_id Node identifier. * @param prop Property name describing state pins. */ #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ {DT_FOREACH_PROP_ELEM(node_id, prop, Z_PINCTRL_STATE_PIN_INIT)} /** Type for R-Car DRVCTRLn registers */ struct pfc_drive_reg { uint32_t drvctrl0; /**< Driving contr...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>OS) \ ), /** * @brief Utility macro to initialize state pins contained in a given property. * * @param node_id Node identifier. * @param prop Property name describing state pins. */ #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ {DT_FOREACH_CHILD_VARGS(DT_PHANDLE(node_id, prop), ...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>L_PULLUP_POS (SAM_PINCTRL_FLAGS_POS) #define SAM_PINCTRL_PULLUP (1U << SAM_PINCTRL_PULLUP_POS) #define SAM_PINCTRL_PULLDOWN_POS (SAM_PINCTRL_PULLUP_POS + 1U) #define SAM_PINCTRL_PULLDOWN (1U << SAM_PINCTRL_PULLDOWN_POS) #define SAM_PINCTRL_OPENDRAIN_POS (SAM_P...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2021 Nordic Semiconductor ASA * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Main header file for pin control driver API. * @ingroup pinctrl_interface */ #ifndef ZEPHYR_INCLUDE_DRIVERS_PINCTRL_H_ #define ZEPHYR_INCLUDE_DRIVERS_PINCTRL_H_ /** * @brief Interfaces...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright 2020 Carlo Caione <ccaione@baylibre.com> * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIVERS_PM_CPU_OPS_PSCI_H_ #define ZEPHYR_INCLUDE_DRIVERS_PM_CPU_OPS_PSCI_H_ #include <zephyr/types.h> #include <zephyr/arch/arm64/arm-smccc.h> #include <stddef.h> #include <zeph...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright 2021 Carlo Caione <ccaione@baylibre.com> * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIVERS_PM_CPU_OPS_H_ #define ZEPHYR_INCLUDE_DRIVERS_PM_CPU_OPS_H_ /** * @file * @brief Public API for CPU Power Management */ #include <zephyr/types.h> #in<|fim_suffix|>stem...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>_ID(DT_DRV_INST(inst)) #endif /* ZEPHYR_INCLUDE_DRIVERS_POWER_ATMEL_SAM_SUPC_H_ */ <|fim_prefix|>/* * Copyright (c) 2023 Bjarki Arge Andreasen * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIVERS_POWER_ATMEL_SAM_SUPC_H_ #define ZEPHYR<|fim_middle|>_INCLUDE_DRIVERS_POWER_ATMEL_SA...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>dev, ps2_callback_t callback_isr) { return DEVICE_API_GET(ps2, dev)->config(dev, callback_isr); } /** * @brief Write to a PS/2 device. * * @param dev Pointer to the device structure for the driver instance. * @param value Data for the PS2 device. * * @return 0 on success, negative errno va...
fim
zephyrproject-rtos/zephyr
c
/* * Copyright 2025 NXP * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Peripheral Sensor Interface (PSI5) driver API. */ #ifndef ZEPHYR_INCLUDE_DRIVERS_PSI5_H_ #define ZEPHYR_INCLUDE_DRIVERS_PSI5_H_ #include <zephyr/kernel.h> #include <zephyr/device.h> #ifdef __cplusplus extern "C" { #endif ...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|> * @param increment Increment of the clock in nanoseconds * * @return 0 if ok, <0 if error */ static inline int ptp_clock_adjust(const struct device *dev, int increment) { return DEVICE_API_GET(ptp_clock, dev)->adjust(dev, increment); } /** * @brief Adjust the PTP clock rate ratio based on its nomin...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>. * * @param master_freq Master frequency (in Hz) set to the PWM. HW specific. * @param period Period (in microseconds) set to the PWM. HW specific. * @param freq_divisor Master frequency divisor set per channel. * * @return 0 on success, or a negative error code on failure. */ int max2221x_calcula...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>ls about these values can be found * in the datasheet of the MAX31790. * * @{ */ /** Fastest rate of change (0ms per step in PWM mode). */ #define PWM_MAX31790_FLAG_PWM_RATE_OF_CHANGE_0 (0 << PWM_MAX31790_FLAG_PWM_RATE_OF_CHANGE_POS) /** Fast rate of change (1.953125 ms per step). */ #define PWM_MAX31...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2024, Kickmaker * * SPDX-License-Identifier: Apache-2.0 */ #ifndef INCLUDE_DRIVERS_PWM_PWM_FAKE_H_ #define INCLUDE_DRIVERS_PWM_PWM_FAKE_H_ #include <ze<|fim_suffix|> DECLARE_FAKE_VALUE_FUNC(int, fake_pwm_set_cycles, const struct device *, uint32_t, uint32_t, uint32_t, pwm_flag...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2025 Basalte bv * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIVERS_PWM_PWM_UTILS_H_ #define ZEPHYR_INCLUDE_DRIVERS_PWM_PWM_UTILS_H_ #include <stdbool.h> #include <stdint.h> #include <errno.h> #include <zephyr/devicetree.h> #include <zephyr/drivers/pwm.h> #i...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>tatic inline int pwm_remove_event_callback(const struct device *dev, struct pwm_event_callback *callback) { const struct pwm_driver_api *api = DEVICE_API_GET(pwm, dev); if (api->manage_event_callback == NULL) { return -ENOSYS; } return api->manage_event_callback(dev, callback, false); } #...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>_limit, const struct device *, unsigned int, int32_t *); DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_set_current_limit, const struct device *, int32_t, int32_t); DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_get_current_limit, const struct device *, int32_t *); DECLARE_FAKE_VALUE_FUNC(int, regulato...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>us } #endif #endif /* ZEPHYR_INCLUDE_DRIVERS_REGULATOR_PCA9420_H_ */ <|fim_prefix|>/* * Copyright (c) 2022 Nordic Semiconductor ASA * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIVERS<|fim_middle|>_REGULATOR_PCA9420_H_ #define ZEPHYR_INCLUDE_DRIVERS_REGULATOR_PCA9420_H_ #ifdef __...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|> starting from * zero. The total number of supported voltage levels can be used together with * regulator_list_voltage() to list all supported voltage levels. * * @param dev Regulator device instance. * * @return Number of supported voltages. */ static inline unsigned int regulator_count_voltages(c...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2025 Microchip Technology Inc. * * SPDX-License-Identifier: Apache-2.0 */ /** * @file mchp_reset.h * @brief Microchip R<|fim_suffix|>E_ZEPHYR_DRIVERS_RESET_MCHP_RESET_H_ #define INCLUDE_ZEPHYR_DRIVERS_RESET_MCHP_RESET_H_ #if defined(CONFIG_RESET_MCHP_RSTC_G1) #include "mchp_rstc_...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2025-2026 Microchip Technology Inc. * * SPDX-License-Identifier: Apache-2.0 */ /** * @file mchp_rstc_g1.h * @brief Microchip RSTC G1 reset controller header * * This header includes the Microchip RSTC G1 macro definitions. */ #ifndef INCLUDE_ZEPHYR_DRIVERS_RESET_MCHP_RSTC_G1...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>static inline int z_impl_reset_line_toggle(const struct device *dev, uint32_t id) { const struct reset_driver_api *api = DEVICE_API_GET(reset, dev); if (api->line_toggle == NULL) { return -ENOSYS; } return api->line_toggle(dev, id); } /** * @brief Reset the device from a @p reset_dt_spec. * * ...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2024 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZE<|fim_suffix|>DE_DRIVERS_RETAINED_MEM_NRF_RETAINED_MEM_H */ <|fim_middle|>PHYR_INCLUDE_DRIVERS_RETAINED_MEM_NRF_RETAINED_MEM_H #define ZEPHYR_INCLUDE_DRIVERS_RETAINED_MEM_NRF_RETAINED_MEM_H #ifdef _...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2023 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @ingroup retained_mem_interface * @brief Main header file for retained memory driver API. */ #ifndef ZEPHYR_INCLUDE_DRIVERS_RETAINED_MEM_ #define ZEPHYR_INCLUDE_DRIVERS_RETAINED_MEM_ #inclu...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>nization is performed in asynchronously, and may take as * long as 1 s to complete; notification of completion is provided * through the @p notify parameter. * * Applications should use maxim_ds3231_get_syncpoint() to retrieve the * synchronization data collected by this operation. * * @note This f...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2021 Laird Connectivity * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIVERS_RTC_MCP7940N_H_ #define ZEPHYR_INCLUDE_DRIVERS_RTC_MCP7940N_H_ #include <zephyr/sys/timeutil.h> #include <time.h> struct mcp7940n_rtc_sec { uint8_t sec_one : 4; uint8_t sec_ten : 3...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>-up * * the counter has a fixed 1Hz period */ #ifndef ZEPHYR_INCLUDE_DRIVERS_RTC_MCUX_SNVS_H_ #define ZEPHYR_INCLUDE_DRIVERS_RTC_MCUX_SNVS_H_ #include <zephyr/device.h> #ifdef __cplusplus extern "C" { #endif /** @brief Set the current counter value * * As the counter advances at 1Hz this will usual...
fim
zephyrproject-rtos/zephyr
c
/* * Copyright (c) 2023 Prevas A/S * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIVERS_RTC_RTC_FAKE_H_ #define ZEPHYR_INCLUDE_DRIVERS_RTC_RTC_FAKE_H_ #include <zephyr/drivers/rtc.h> #include <zephyr/fff.h> #ifdef __cplusplus extern "C" { #endif DECLARE_FAKE_VALUE_FUNC(int, rtc_fake_set_tim...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>index (0–3). * @param flags Pointer to variable receiving timestamp flags. * * @retval 0 If successful. * @retval negative errno code otherwise. */ int rtc_max31331_get_timestamps(const struct device *dev, struct rtc_time *timeptr, uint8_t index, uint8_t *flags); /** * @brief Register a times...
fim
zephyrproject-rtos/zephyr
c
<|fim_prefix|>/* * Copyright (c) 2023 Trackunit Corporation * Copyright (c) 2023 Bjarki Arge Andreasen * * SPDX-License-Identifier: Apache-2.0 */ /** * @file drivers/rtc.h * @ingroup rtc_interface * @brief Main header file for real-time clock (RTC) driver API. */ #ifndef ZEPHYR_INCLUDE_DRIVERS_RTC_H_ #define...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>->enable_interrupt) { return -ENOSYS; } return api->enable_interrupt(dev, callback, sources, user_data); } /** * @brief Disable SDHC interrupt sources * * Disables SDHC interrupt sources. If multiple sources are enabled, only * the ones specified in "sources" will be masked. * @param dev: SDHC ...
fim
zephyrproject-rtos/zephyr
c
<|fim_suffix|>CX_THRCTL3, ADC_CMP_NPCX_THRCTL4, ADC_CMP_NPCX_THRCTL5, ADC_CMP_NPCX_THRCTL6, ADC_CMP_NPCX_THRCTL_COUNT, }; enum adc_cmp_npcx_sensor_attribute { SENSOR_ATTR_LOWER_VOLTAGE_THRESH = SENSOR_ATTR_PRIV_START, SENSOR_ATTR_UPPER_VOLTAGE_THRESH, }; #endif /* _ADC_CMP_NPCX_H_ */ <|fim_prefix|>/* * Copyrig...
fim
zephyrproject-rtos/zephyr
c