text stringlengths 14 100k | source stringclasses 1
value | repo stringclasses 810
values | language stringclasses 13
values |
|---|---|---|---|
<|fim_suffix|>stance of NUS service. NULL if using default instance.
* @param cb Pointer to callbacks structure. Must be valid throughout the
* lifetime of the application.
* @param ctx User context to be provided through the callback.
*
* @return 0 on success
* @return -EINVAL in case @p cb is NULL
*/... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2020-2022 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_SERVICES_OTS_H_
#define ZEPHYR_INCLUDE_BLUETOOTH_SERVICES_OTS_H_
/**
* @brief Object Transfer Service (OTS)
* @defgroup bt_ots Object Transfer Service (OTS)
* @ingroup... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/* Copyright (c) 2024 Nordic Semiconductor ASA
* SPDX-License-Identifier: Apache-2.0
*/
/** @brief Internal testing interfaces for Bluetooth
* @file
* @internal
*
* The interfaces in this file are internal and not stable.
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_<|fim_suffix|>oid bt_testing_trace_e... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2015 Wind River Systems, Inc.
* Copyright (c) 2022 Carlo Caione <ccaione@baylibre.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_CACHE_H_
#define ZEPHYR_INCLUDE_CACHE_H_
/**
* @file
* @brief cache API interface
*/
#include <zephyr/kernel.h>
#include <z... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>buf *act_frag;
/* buffer currently processed in isotp_recv */
struct net_buf *recv_buf;
sys_snode_t alloc_node;
uint32_t length;
int error_nr;
struct k_work work;
struct k_timer timer;
struct k_fifo fifo;
struct isotp_msg_id rx_addr;
struct isotp_msg_id tx_addr;
struct isotp_fc_opts opts;
uint... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/**
* SPDX-FileCopyrightText: Copyright The Zephyr Project Contributors
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_CLEANUP_KERNEL_H_
#define ZEPHYR_INCLUDE_CLEANUP_KERNEL_H_
/**
* @file
* @brief cleanup helper macros for kernel functions
*/
#if <|fim_suffix|>; @endcode
*/
SC... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>er(k_mutex_unlock)(&my_mutex); @endcode
*/
#define scope_defer(_name) scope_var(defer_##_name, Z_UNIQUE_ID(defer))
/**
* @}
*/
#endif /* defined(CONFIG_SCOPE_CLEANUP_HELPERS) || defined(__DOXYGEN__) */
#endif /* ZEPHYR_INCLUDE_CLEANUP_H_ */
<|fim_prefix|>/**
* SPDX-FileCopyrightText: Copyright The ... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>imeout expired). errno
* variable is also set.
*/
ssize_t console_write(void *dummy, const void *buf, size_t size);
/** @brief Get next char from console input buffer.
*
* Return next input character from console. If no characters available,
* this function will block. This function is... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2018 Linaro Limited
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_CONSOLE_TTY_H_
#define ZEPHYR_INCLUDE_CONSOLE_TTY_H_
#include <sys/types.h>
#include <zephyr/types.h>
#include <zephyr/kernel.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief serial port... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2025 Analog Devices, Inc.
*
<|fim_suffix|> It is not guaranteed that the performance state will be set immediately, or at all.
*
* @param state Pointer to performance state.
*
*
* @return 0 if request received successfully, -errno in case of failure.
*/
int cpu_freq_pstate_set(c... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2025 Analog Devices, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @ingroup subsys_cpu_freq_policy
* @brief Header file for CPU frequency scaling policy.
*/
#ifndef ZEPHYR_SUBSYS_CPU_FREQ_POLICY_H_
#define ZEPHYR_SUBSYS_CPU_FREQ_POLICY_H_
#ifdef __cplusplus
ex... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>* @brief Get a pstate reference from a devicetree node identifier.
*
* To be used in DT_FOREACH_CHILD() or similar macros
*
* @param _node Node identifier.
*/
#define PSTATE_DT_GET(_node) &PSTATE_DT_SYM(_node)
/**
* @brief CPU performance state (pstate) struct.
*
* This struct holds information ... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2016 Intel Corporation.
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @brief Crypto Cipher structure definitions
* @ingroup crypto_cipher
*
* This file contains the Crypto Abstraction layer structures.
*
* [Experimental] Users should note that the Structures can c... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2016 Intel Corporation.
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @brief Crypto Cipher APIs
* @ingroup crypto
*
* This file contains the Crypto Abstraction layer APIs.
*/
#ifndef ZEPHYR_INCLUDE_CRYPTO_H_
#define ZEPHYR_INCLUDE_CRYPTO_H_
#include <zephyr/devic... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>
* the duration of the operation. This can be NULL for in-place
* operations, in which case the driver writes the result to @p in_buf.
*/
uint8_t *out_buf;
/**
* Context this packet relates to.
*
* This can be useful to get the session details, especially for async
* ops. This is populate... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>ckend.
*
* @param[in] dap_link_ctx Context to update.
* @param[in] pkt_size Packet size (in bytes).
*
*/
void dap_link_set_pkt_size(struct dap_link_context *const dap_link_ctx,
const uint16_t pkt_size);
/**
* @brief Initialize the DAP Link USB backend.
*
* @param[in] dap_link_ctx Context to... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2024 Kelly Helmut Lord
* Copyright (c) 2026 Basalte bv
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_DATA_COBS_H_
#define ZEPHYR_INCLUDE_DATA_COBS_H_
#include <stddef.h>
#include <sys/types.h>
#include <zephyr/sys/util.h>
#if defined(CONFIG_NET_BUF)
#include ... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2017 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_DATA_JSON_H_
#define ZEPHYR_INCLUDE_DATA_JSON_H_
#include <zephyr/sys/util.h>
#include <stddef.h>
#include <zephyr/toolchain.h>
#include <zephyr/types.h>
#include <sys/types.h>
#ifdef __cplus... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>is not valid.
*/
bool overflowed;
/* Pending bytes yet to be converted to base64. */
unsigned char wip[3];
/* Number of pending bytes. */
int pending;
};
/**
* @brief Initialize the JWT builder.
*
* Initialize the given JWT builder for the creation of a fresh token.
* The buffer size should ... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>2_t speed;
/** Altitude above MSL in millimeters */
int32_t altitude;
};
/**
* @brief Calculate the distance between two navigation points along the
* surface of the sphere they are relative to.
*
* @param distance Destination for calculated distance in millimeters
* @param p1 First navigation poi... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>ddress of memory region to be dumped
*/
/**
* @fn int coredump_buffer_output(uint8_t *buf, size_t buflen);
* @brief Output the buffer via coredump
*
* This outputs the buffer of byte array to the coredump backend.
* For example, this can be called to output the coredump section
* containing regist... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>onst uint8_t *data, size_t len);
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* ZEPHYR_INCLUDE_DEBUG_CORESIGHT_CS_TRACE_DEFMT_H__ */
<|fim_prefix|>/*
* Copyright (c) 2024 Nordic Semiconductor ASA.
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_DEBUG_CORESIGHT_CS_TRACE_DEFMT_H__... | fim | zephyrproject-rtos/zephyr | c |
/*
* Copyright (c) 2024, Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_DEBUG_CPU_LOAD_H_
#define ZEPHYR_INCLUDE_DEBUG_CPU_LOAD_H_
#include <stdbool.h>
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
/** @defgroup cpu_load CPU load monitor
* @ingroup debu... | fim | zephyrproject-rtos/zephyr | c |
/*
* Copyright (c) 2018 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_DEBUG_GCOV_H_
#define ZEPHYR_INCLUDE_DEBUG_GCOV_H_
#ifdef CONFIG_COVERAGE_GCOV
void gcov_coverage_dump(void);
void gcov_coverage_semihost(void);
void gcov_static_init(void);
#else
static inline void gcov_co... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2020 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_DEBUG_GDBSTUB_H_
#define ZEPHYR_INCLUDE_DEBUG_GDBSTUB_H_
/* Map from CPU exceptions to GDB */
#define GDB_EXCEPTION_INVALID_INSTRUCTION 4UL
#define GDB_EXCEPTION_BREAKPOINT 5UL
#... | fim | zephyrproject-rtos/zephyr | c |
/*
* Copyright (c) 2024 Nordic Semiconductor ASA.
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_DEBUG_MIPI_STP_DECODER_H__
#define ZEPHYR_INCLUDE_DEBUG_MIPI_STP_DECODER_H__
#include <zephyr/kernel.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* @defgroup mipi_stp_decoder_apis STP Decoder AP... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>E_THREAD_MONITOR_H_
#define ZEPHYR_INCLUDE_THREAD_MONITOR_H_
#include <zephyr/kernel.h>
/**
* @brief Head element of the thread monitor list.
*
* @details Access the head element of the thread monitor list.
*
*/
#define SYS_THREAD_MONITOR_HEAD ((struct k_thread *)(_kernel.threads))
/**
* @brief G... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_DEBUG_SPARSE_H
#define ZEPHYR_INC<|fim_suffix|>fine __sparse_force __attribute__((force))
#else
#define __sparse_cache
#define __sparse_force
#endif
#endif
<|fim_middle|>LUDE_DEBUG_SPARSE_H
#... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/**
* @file d<|fim_suffix|>ude <zephyr/kernel.h>
#include <zephyr/toolchain.h>
#include <stdbool.h>
static inline void log_stack_usage(const struct k_thread *thread)
{
#if defined(CONFIG_INIT_STACKS) && defined(CONFIG_THREAD_STACK_INFO)
size_t unused, size = thread->stack_info.size;
TOOLCHAIN_DISABLE... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>s returned.
*/
const char *symtab_find_symbol_name(uintptr_t addr, uint32_t *offset);
/**
* @}
*/
#ifdef __cplusplus
}
#endif
#endif /* ZEPHYR_INCLUDE_DEBUG_SYMTAB_H_ */
<|fim_prefix|>/*
* Copyright (c) 2024 Meta Platforms
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_DEBUG_... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2019 - 2020 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef __STACK_SIZE_ANALYZER_H
#define __STACK_SIZE_ANALYZER_H
#include <stddef.h>
#include <zephyr/kernel/thread.h>
#ifdef __cplusplus
extern "C" {
#endif
/** @defgroup thread_analyzer Thread analy... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|> @brief Writes a "device not ready" warning message to the log.
*
* @details Writes a "device not ready" warning message to the log using the
* device name as reference, meant to be used in device_is_ready checks.
*
* @param dev pointer to a struct device.
*/
#define LOG_WRN_DEVICE_NOT_READY(dev) \
... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/**
* @file
* @brief CAN devicetree macro public API header file.
*/
/*
* Copyright (c) 2022 Vestas Wind Systems A/S
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_DEVICETREE_CAN_H_
#define ZEPHYR_INCLUDE_DEVICETREE_CAN_H_
#ifdef __cplusplus
extern "C" {
#endif
/**
* @defgro... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/**
* @file
* @brief Clocks Devicetree macro public API header file.
*/
/*
* Copyright (c) 2020, Linaro Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_DEVICETREE_CLOCKS_H_
#define ZEPHYR_INCLUDE_DEVICETREE_CLOCKS_H_
#ifdef __cplusplus
extern "C" {
#endif
/**
* @defgroup... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>e-3
* @endcode
*
* @param idx logical index of display node's phandle in "displays" property
*
* @return display node identifier, @ref DT_INVALID_NODE otherwise
*/
#define DT_ZEPHYR_DISPLAY(idx) \
DT_PHANDLE_BY_IDX(DT_COMPAT_GET_AN... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>V_COMPAT instance number
* @return the node identifier for the DMA controller at index 0
* in the instance's "dmas" property
* @see DT_DMAS_CTLR_BY_IDX()
*/
#define DT_INST_DMAS_CTLR(inst) DT_INST_DMAS_CTLR_BY_IDX(inst, 0)
/**
* @brief Get a DMA specifier's cell value at an index
*
* Examp... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/**
* @file
* @brief Flash Devicetree macro public API header file.
*/
/*
* Copyright (c) 2020, Linaro Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_DEVICETREE_FIXED_PARTITION_H_
#define ZEPHYR_INCLUDE_DEVICETREE_FIXED_PARTITION_H_
#ifdef __cplusplus
extern "C" {
#endif
... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/**
* @file
* @brief GPIO Devicetree macro public API header file.
*/
/*
* Copyright (c) 2020, Linaro Ltd.
* Copyright (c) 2020 Nordic Semiconductor
*
* SP<|fim_suffix|>le devicetree fragment:
*
* gpio1: gpio@... {
* compatible = "vnd,gpio";
* #gpio-cells = <2>;
*
* n1:... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2025 Sequans Communications
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @brief HW spinlock Devicetree macro public API header file.
*/
#ifndef ZEPHYR_INCLUDE_DEVICETREE_HWSPINLOCK_H_
#define ZEPHYR_INCLUDE_DEVICETREE_HWSPINLOCK_H_
#ifdef __cplusplus
extern "C" {
#... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>stance of an interrupt controller
*
* @return Level of the interrupt controller
*/
#define DT_INST_INTC_GET_AGGREGATOR_LEVEL(inst) DT_INTC_GET_AGGREGATOR_LEVEL(DT_DRV_INST(inst))
/**
* @}
*/
#ifdef __cplusplus
}
#endif
#endif /* ZEPHYR_INCLUDE_DEVICETREE_INTERRUPT_CONTROLLER_H_ */
<|fim_prefix|>/*... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/**
* @file
* @brief IO channels devicetree macro public API header file.
*/
/*
* Copyright (c) 2020, Linaro Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_DEVI<|fim_suffix|>property
* @return the output cell in the specifier at index "idx"
* @see DT_IO_CHANNELS_OUTPUT_B... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|> entry in the @p map with separator.
*
* @param node_id node identifier
* @param prop The map property name. i.e. "gpio_map"
* @param fn macro to invoke
* @param sep Separator (e.g. comma or semicolon). Must be in parentheses;
* this is required to enable providing a comma as separator.
... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/**
* @file
* @brief Flash Devicetree macro public API header file, for memory-mapped partitions.
*/
/*
* Copyright (c) 2020, Linaro Ltd.
* Copyright (c) 2026 Nordic Semiconductor ASA.
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_DEVICETREE_MAPPED_PARTITION_H_
#define ZEPHYR... | fim | zephyrproject-rtos/zephyr | c |
/**
* @file
* @brief MBOX Devicetree macro public API header file.
*/
/*
* Copyright (c) 2022 Carlo Caione <ccaione@baylibre.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_DEVICETREE_MBOX_H_
#define ZEPHYR_INCLUDE_DEVICETREE_MBOX_H_
#ifdef __cplusplus
extern "C" {
#endif
/**
* @defgr... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>instance number.
*
* @return A node identifier for the nvmem cell at index 0
* in nvmem-cells.
*
* @see DT_NVMEM_CELL()
*/
#define DT_INST_NVMEM_CELL(inst) DT_INST_NVMEM_CELL_BY_IDX(inst, 0)
/**
* @brief Get the node identifier for the controller phandle from an
* nvmem-cells phand... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>@brief Devicetree node dependency ordinals
*/
/**
* @defgroup devicetree-dep-ord Dependency tracking
* @ingroup devicetree
* @{
*/
/**
* @brief Get a node's dependency ordinal
* @param node_id Node identifier
* @return the node's dependency ordinal as an integer literal
*/
#define DT_DEP_ORD(no... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>ITION(node_id)), \
(DT_MTD_FROM_FIXED_PARTITION(node_id)))
/**
* @brief Get the absolute address of a partition
* This macro can only be used with partitions of internal memory
* addressable by the CPU. Otherwise, it may produce a compile-time
* error, such as: `'__REG_IDX_0_VAL_ADDRESS' unde... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2021 Nordic Semiconductor ASA
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_DEVICETREE_PINCTRL_H_
#define ZEPHYR_INCLUDE_DEVICETREE_PINCTRL_H_
/**
* @file
* @brief Devicetree pin control helpers
*/
/**
* @defgroup devicetree-pinctrl Pin control
* @ingroup de... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/**
* @file
* @brief Port / Endpoint Devicetree macro public API header file.
*/
/*
* Copyright 2024 NXP
* Copyright (c) 2024 tinyVision.ai Inc
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_DEVICETREE_PORT_ENDPOINT_H_
#define ZEPHYR_INCLUDE_DEVICETREE_PORT_ENDPOINT_H_
#ifdef... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/**
* @file
* @brief PWMs Devicetree macro public API header file.
*/
/*
* Copyright (c) 2020, Linaro Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_DEVICETREE_PWMS_H_
#define ZEPHYR_INCLUDE_DEVICETREE_PWMS_H_
#ifdef __cplusplus
extern "C" {
#endif
/**
* @defgroup devic... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>d) // 10
*
* @param node_id node identifier for a node with a resets property
* @param name lowercase-and-underscores name of a resets element
* as defined by the node's reset-names property
* @param cell lowercase-and-underscores cell name
* @return the cell value in the specifier at th... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>\
COND_CODE_1(DT_SPI_HAS_CS_GPIOS(spi), \
(DT_PROP_LEN(spi, cs_gpios)), (0))
/**
* @brief Does a SPI device have a chip select line configured?
* Example devicetree fragment:
*
* spi1: spi@... {
* compatible = "vnd,spi";
* cs-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>,
... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>sram))
#endif
/**
* @}
*/
#ifdef __cplusplus
}
#endif
#endif /* ZEPHYR_INCLUDE_DEVICETREE_SRAM_H_ */
<|fim_prefix|>/**
* @file
* @brief Chosen SRAM Devicetree macro public API header file.
*/
/*
* Copyright (c) 2026 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef... | fim | zephyrproject-rtos/zephyr | c |
/**
* @file
* @brief Wakeup Controller Devicetree macro public API header file.
*/
/*
* Copyright 2026 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_DEVICETREE_WUC_H_
#define ZEPHYR_INCLUDE_DEVICETREE_WUC_H_
#ifdef __cplusplus
extern "C" {
#endif
/**
* @defgroup devicetree-wakeup-con... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>e written up to the next
* multiple of CONFIG_IMG_BLOCK_BUF_SIZE is padded with 0xff.
*
* @param ctx context
* @param data data to write
* @param len Number of bytes to write
* @param flush when true this forces any buffered
* data to be written to flash
*
* @return 0 on success, negative errno ... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2017 Nordic Semiconductor ASA
* Copyright (c) 2016 Linaro Limited
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @brief MCUboot public API for MCUboot control of image boot process
*
* The header declares API functions that can be used to get information
* on and se... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>n success, negative value otherwise
*/
int cfb_framebuffer_finalize(const struct device *dev);
/**
* @brief Get display parameter.
*
* @param dev Pointer to device structure for driver instance
* @param cfb_display_param One of the display parameters
*
* @return Display parameter value
*/
int cfb... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/** @file
* @brief BBC micro:bit display APIs.
*/
/*
* Copyright (c) 2017 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_DISPLAY_MB_DISPLAY_H_
#define ZEPHYR_INCLUDE_DISPLAY_MB_DISPLAY_H_
/**
* @brief BBC micro:bit display APIs
* @defgroup mb_display BBC mi... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright 2023 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @brief Display definitions for MIPI devices
* @ingroup mipi_interface
*/
#ifndef ZEPHYR_INCLUDE_DISPLAY_MIPI_DISPLAY_H_
#define ZEPHYR_INCLUDE_DISPLAY_MIPI_DISPLAY_H_
/**
* @brief MIPI Display definitions
* @defg... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>_buffer_descriptor *desc,
void *buf);
/** @} */
#endif /* ZEPHYR_INCLUDE_DISPLAY_SSD16XX_H_ */
<|fim_prefix|>/*
* Copyright (c) 2022 Andreas Sandberg
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @brief Header file for extended Display API of SSD16XX
* @ingroup ssd16xx_interfac... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/**
* @file
*
* @brief Backend API for emulated ADC
*/
/*
* Copyright 2021 Google LLC
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_DRIVERS_ADC_ADC_EMUL_H_
#define ZEPHYR_INCLUDE_DRIVERS_ADC_ADC_EMUL_H_
#include <zephyr/types.h>
#include <zephyr/drivers/adc.h>
#ifdef __cplus... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _ADC_NPCX_THRESHOLD_H_
#define _ADC_NPCX_THRESHOLD_H_
#include <zephyr/device.h>
enum adc_npcx_threshold_param_l_h {
ADC_NPCX_THRESHOLD_PARAM_L_H_HIGHER,
ADC_NPCX_THRESHOLD_PARAM_L_H_LOWER,
};
enum adc_n... | fim | zephyrproject-rtos/zephyr | c |
/*
* Copyright (c) 2025 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _ADC_NPCX_V2T_H_
#define _ADC_NPCX_V2T_H_
#include <zephyr/device.h>
#ifdef CONFIG_ADC_V2T_NPCX
/**
* @brief Set ADC V2T channels
*
*
* @param dev Pointer to the ADC device instance.
* @param channels Bit-ma... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>* 16 sample delay */
ADS131M02_GC_DELAY_16,
/** 32 sample delay */
ADS131M02_GC_DELAY_32,
/** 64 sample delay */
ADS131M02_GC_DELAY_64,
/** 128 sample delay */
ADS131M02_GC_DELAY_128,
/** 256 sample delay */
ADS131M02_GC_DELAY_256,
/** 512 sample delay */
ADS131M02_GC_DELAY_512,
/** 1024 sampl... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2023 SILA Embedded Solutions GmbH
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @brief Header file for extended API of ADS1x4s0x ADC
* @ingroup ads1x4s0x_interface
*/
#ifndef ZEPHYR_INCLUDE_DRIVERS_ADC_ADS1X4S0X_H_
#define ZEPHYR_INCLUDE_DRIVERS_ADC_ADS1X4S0X_H_
#i... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2023 The ChromiumOS Authors
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @brief Header file for extended ADC API of Current Sense Amplifier
* @ingroup adc_current_sense_amplifier_interface
*/
#ifndef ZEPHYR_INCLUDE_DRIVERS_ADC_CURRENT_SENSE_AMPLIFIER_H_
#define ZEP... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2023 The ChromiumOS Authors
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @brief Header file for extended ADC API of Current Sense Shunt
* @ingroup adc_current_sense_shunt_interface
*/
#ifndef ZEPHYR_INCLUDE_DRIVERS_ADC_CURRENT_SENSE_SHUNT_H_
#define ZEPHYR_INCLUDE_... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>ill level of a FIFO buffer.
*
* Returns the number of data words currently stored in the specified
* FIFO buffer.
*
* @param dev ADC device (infineon,autanalog-sar-adc instance).
* @param buf_idx FIFO buffer index (0 to 7, depending on split config).
* @param size Pointer to store t... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2019 Vestas Wind Systems A/S
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @brief Header file for extended API of LMP90xxx ADC
* @ingroup lmp90xxx_interface
*/
#ifndef ZEPHYR_INCLUDE_DRIVERS_ADC_LMP90XXX_H_
#define ZEPHYR_INCLUDE_DRIVERS_ADC_LMP90XXX_H_
#include <z... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2024 Syslin<|fim_suffix|> <zephyr/dt-bindings/adc/mcp356xr-adc.h>
#endif /* ZEPHYR_INCLUDE_DRIVERS_ADC_MCP356XR_H_ */
<|fim_middle|>bit SCOP SAS
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_DRIVERS_ADC_MCP356XR_H_
#define ZEPHYR_INCLUDE_DRIVERS_ADC_MCP356XR_H_... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2023 The ChromiumOS Authors
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @brief Header file for extended API of Voltage Divider
* @ingroup adc_voltage_divider_interface
*/
#ifndef ZEPHYR_INCLUDE_DRIVERS_ADC_VOLTAGE_DIVIDER_H_
#define ZEPHYR_INCLUDE_DRIVERS_ADC_VOLT... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>dc_channel_cfg ch1_cfg_dt =
* ADC_CHANNEL_CFG_DT(DT_CHILD(DT_NODELABEL(adc), channel_1));
*
* // Initializes 'ch0_cfg_dt' to:
* // {
* // .channel_id = 0,
* // .gain = ADC_GAIN_1_6,
* // .reference = ADC_REF_INTERNAL,
* // .acquisition_time = ADC_ACQ_TIME(ADC_ACQ_TIME_MICROSECO... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2022-2023 Jamie McCrae
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @ingroup auxdisplay_interface
* @brief Main header file for auxiliary (textual/non-graphical) display driver API.
*/
#ifndef ZEPHYR_INCLUDE_DRIVERS_AUXDISPLAY_H_
#define ZEPHYR_INCLUDE_DRIVERS_AUXD... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>back API to check for standby power failure
* See bbram_check_standby_power() for argument description
*/
typedef int (*bbram_api_check_standby_power_t)(const struct device *dev);
/**
* @brief Callback API to check for V CC1 power failure
* See bbram_check_power() for argument description
*/
typedef... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2026 Siratul Islam <email@sirat.me>
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
*
* @brief Test helper APIs for the biometrics emulator.
*/
#ifndef ZEPHYR_INCLUDE_DRIVERS_BIOMETRICS_EMUL_H_
#define ZEPHYR_INCLUDE_DRIVERS_BIOMETRICS_EMUL_H_
#include <stdbool.h>
#inc... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2025 Siratul Islam <email@sirat.me>
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @ingroup biometrics_interface
* @brief Main header file for biometrics driver API.
*/
#ifndef ZEPHYR_INCLUDE_DRIVERS_BIOMETRICS_H_
#define ZEPHYR_INCLUDE_DRIVERS_BIOMETRICS_H_
/**
* ... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>ndif /* ZEPHYR_INCLUDE_DRIVERS_BLUETOOTH_HCI_DRIVER_BLUENRG_H_ */
<|fim_prefix|>/** @file
* @brief BlueNRG HCI extended API.
*/
/*
* Copyright (c) 2024 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_DRIVERS_BLUETOOTH_HCI_DRIVER_BLUENRG_H_
#define ZEPHYR_INCLUD... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/** @file
* @brief NXP HCI extended API.
*/
/*
* Copyright 2026 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_ZEPHYR_DRIVERS_BLUETOOTH_HCI_NXP_SETUP_H_
#define ZEPHYR_INCLUDE_ZEPHYR_DRIVERS_BLUETOOTH_HCI_NXP_SETUP_H_
#include <zephyr/device.h>
/**
* @brief Trigger Indep... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>ommon to all Bluetooth HCI drivers and must be the first member
* in the driver's data struct.
*/
struct bt_hci_driver_data {
/** Callback for the driver to deliver data received from the controller to the host. */
bt_hci_recv_t recv;
};
/**
* @brief Callback API to open the HCI transport.
* See bt... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|> buzzer_beep_t beep;
/** @driver_ops_mandatory @copybrief buzzer_stop */
buzzer_stop_t stop;
};
/** @} */
/**
* @brief Play a single tone at @p freq_hz for @p duration_ms.
*
* The call returns after the hardware has been configured; it does not
* wait for @p duration_ms to elapse. The buzzer keeps... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright 2021 Carlo Caione <ccaione@baylibre.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @ingroup cache_external_interface
* @brief Main header file for external cache controller driver API.
*/
#ifndef ZEPHYR_INCLUDE_DRIVERS_CACHE_H_
#define ZEPHYR_INCLUDE_DRIVERS_CACHE_H... | fim | zephyrproject-rtos/zephyr | c |
/*
* Copyright (c) 2022 Vestas Wind Systems A/S
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_DRIVERS_CAN_CAN_FAKE_H_
#define ZEPHYR_INCLUDE_DRIVERS_CAN_CAN_FAKE_H_
#include <zephyr/drivers/can.h>
#include <zephyr/fff.h>
#ifdef __cplusplus
extern "C" {
#endif
DECLARE_FAKE_VALUE_FUNC(int, fak... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Vestas Wind Systems A/S
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @ingroup can_transceiver
* @brief Header file for CAN transceiver driver API
*/
#ifndef ZEPHYR_INCLUDE_DRIVERS_CAN_TRANSCEIVER_H_
#define ZEPHYR_INCLUDE_DRIVERS_CAN_TRANSCEIVER_H_
#include <... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2021 Vestas Wind Systems A/S
* Copyright (c) 2018 Karsten Koenig
* Copyright (c) 2018 Alexander Wachter
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @brief Header file for Controller Area Network (CAN) controller driver API.
* @ingroup can_controller
*/
#ifndef Z... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|> dev);
if (api->set_callback == NULL) {
return -ENOSYS;
}
return api->set_callback(dev, mask, cb, user_data);
}
#ifdef __cplusplus
}
#endif
/**
* @}
*/
#endif /* ZEPHYR_INCLUDE_DRIVERS_CELLULAR_H_ */
<|fim_prefix|>/*
* Copyright (c) 2023 Bjarki Arge Andreasen
* Copyright (c) 2023 Lucas Denef... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>0XX_CHARGER_VTHROTTLE_275MV,
/** Throttle voltage is 300mV below termination voltage */
NPM10XX_CHARGER_VTHROTTLE_300MV,
/** Throttle voltage is 325mV below termination voltage */
NPM10XX_CHARGER_VTHROTTLE_325MV,
/** Throttle voltage is 350mV below termination voltage */
NPM10XX_CHARGER_VTHROTTLE_35... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright 2023 Cirrus Logic, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @ingroup charger_interface
* @brief Main header file for battery charger driver API.
*/
#ifndef ZEPHYR_INCLUDE_DRIVERS_CHARGER_H_
#define ZEPHYR_INCLUDE_DRIVERS_CHARGER_H_
/**
* @brief Interfaces fo... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>X32_SYSCLK_PRESCALER)
#endif
#if DT_SAME_NODE(DT_GCR_CLOCKS_CTRL, DT_NODELABEL(clk_ebo))
#define ADI_MAX32_SYSCLK_SRC ADI_MAX32_CLK_EBO
#define ADI_MAX32_SYSCLK_FREQ (ADI_MAX32_CLK_EBO_FREQ / ADI_MAX32_SYSCLK_PRESCALER)
#endif
#ifndef ADI_MAX32_SYSCLK_SRC
#define ADI_MAX32_SYSCLK_SRC ADI_MAX32_CLK_IPO
... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2026 Realtek Semiconductor Corp.
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @brief Realtek Ameba clock control interface.
*
* This heade<|fim_suffix|>/*
* Select the appropriate Ameba clock Devicetree binding header
* according to the SoC series in use.
*/
#if ... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>,
SOC_DEEPSLEEP,
};
struct arm_clock_control_t {
/* ARM family SoCs supported Bus types */
enum arm_bus_type_t bus;
/* Clock can be configured for 3 states: Active, Sleep, Deep Sleep */
enum arm_soc_state_t state;
/* Identifies the device on the bus */
uint32_t device;
};
#endif /* ZEPHYR_INCLUDE... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2023 Gerson Fernando Budke <nandojve@gmail.com
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_DRIV<|fim_suffix|>t-bindings/clock/atmel_sam_pmc.h>
#define SAM_DT_PMC_CONTROLLER DEVICE_DT_GET(DT_NODELABEL(pmc))
struct atmel_sam_pmc_config {
uint32_t clock_type;
... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2026,<|fim_suffix|> Control Driver Header
*/
#include <zephyr/device.h>
/**
* @brief Global device handle for the BEE clock controller.
*
* This macro retrieves the device structure for the primary clock controller
* defined in the devicetree with the label `cctl`.
*
* @return... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>_H_
#include <adsp_clk.h>
#endif /* CLOCK_CONTROL_ADSP_H_ */
<|fim_prefix|>/*
* Copyright (c) 2022 Intel Corporation
*
* SPDX-License-I<|fim_middle|>dentifier: Apache-2.0
*/
#ifndef CLOCK_CONTROL_ADSP_H_
#define CLOCK_CONTROL_ADSP<|endoftext|> | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>TAL,
CLOCK_CONTROL_AMBIQ_TYPE_MAX
};
#ifdef __cplusplus
}
#endif
#endif /* ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_CLOCK_CONTROL_AMBIQ_H_ */
<|fim_prefix|>/*
* Copyright (c) 2023 Ambiq Micro Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCL<|fim_middle|>UDE_DRIVERS_CLOCK_CONTROL_CLO... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>op ; .endr");
}
static inline void clock_bflb_set_root_clock(uint32_t clock)
{
uint32_t tmp;
/* invalid value, fallback to internal 32M */
if (clock > BFLB_MAIN_CLOCK_PLL_XTAL) {
clock = BFLB_MAIN_CLOCK_RC32M;
}
tmp = sys_read32(HBN_BASE + HBN_GLB_OFFSET);
tmp = (tmp & HBN_ROOT_CLK_SEL_UMSK) | (... | fim | zephyrproject-rtos/zephyr | c |
/*
* Copyright (c) 2025 Cypress Semiconductor Corporation (an Infineon company) or
* an affiliate of Cypress Semiconductor Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <cy_sysclk.h>
#include <cy_systick.h>
#define IFX_CAT1_PERIPHERAL_GROUP_GET_DIVIDER_TYPE(block) ((cy_en_divider_types_t)((bloc... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>rate;
uint16_t phase;
uint8_t duty;
};
/**
* @}
*/
#endif /* CLK_CTRL_LITEX_H */
<|fim_prefix|>/*
* Copyright (c) 2020 Antmicro <www.antmicro.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @brief LiteX Clock Control driver interface
*/
#ifndef CLK_CTRL_LITEX_H
#define CLK_CTR... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2023 Nuvoton Technology Corporation.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdint.h>
#ifndef ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_NUMAKER_H_
#define ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_NUMAKER_H_
/**
* @brief Enable/disable oscillators or other clocks
*/
#define... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2026 Fiona Behrens
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdint.h>
/**
* @file clock_control_numicro.h
* @brief Clock control header file for Nuvoton Numicro family.
*
* This file provides clock driver interface definitions and structures
* fur Nuvoton Numicro ... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>div;
};
#endif /* ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_RTS591X_H_ */
<|fim_prefix|>/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyrigh<|fim_middle|>t (c) 2024 Realtek Semiconductor Corporation, SIBG-SD7
* Author: Lin Yu-Cheng <lin_yu_cheng@realtek.com>
*/
#include <stdint.h>
#ifndef ZEPHYR_INCLU... | fim | zephyrproject-rtos/zephyr | c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.