text stringlengths 14 100k | source stringclasses 1
value | repo stringclasses 810
values | language stringclasses 13
values |
|---|---|---|---|
<|fim_prefix|>/**
* @file
* @brief Bluetooth Call Control Profile (CCP) APIs.
*/
/*
* Copyright (c) 2024 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_CCP_H_
#define ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_CCP_H_
/**
* @brief Call Control Profile (CCP)
*
... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/**
* @file
* @brief Bluetooth Coordinated Set Identification Profile (CSIP) APIs.
*/
/*
* Copyright (c) 2021-2024 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_SUBSYS_BLUETOOTH_AUDIO_CSIP_H_
#define ZEPHYR_SUBSYS_BLUETOOTH_AUDIO_CSIP_H_
/**
* @brief Coordin... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>field */
struct bt_gmap_feat {
/** Unicast Game Gateway features */
enum bt_gmap_ugg_feat ugg_feat;
/** Unicast Game Terminal features */
enum bt_gmap_ugt_feat ugt_feat;
/** Remote Broadcast Game Sender features */
enum bt_gmap_bgs_feat bgs_feat;
/** Remote Broadcast Game Receiver features */
enum... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>SET_48_2_G(_loc, _stream_context) \
BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 100U, 1, \
_stream_context), \
BT_BAP_QOS_... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>@param is_last True if preset list update operation can be considered concluded.
*/
void (*preset_availability)(struct bt_has *has, uint8_t index, bool available,
bool is_last);
};
/**
* @brief Registers the callbacks used by the Hearing Access Service client.
*
* @param cb The callback str... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/**
* @file
* @brief Bluetooth LC3 codec handling
*/
/*
* Copyright (c) 2020 Intel Corporation
* Copyright (c) 2022-2024 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_LC3_H_
#define ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_LC3_H_
/**
* @brief L... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/**
* @file
* @brief Bluetooth Media Control Client (MCC) APIs.
*/
/*
* Copyright (c) 2019 - 2024 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_MCC_
#define ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_MCC_
/**
* @brief Bluetooth Media Control Clie... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/**
* @file
* @brief Bluetooth Media Control Service (MCS) APIs.
*/
/*
* Copyright (c) 2019 - 2024 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_MCS_H_
#define ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_MCS_H_
/**
* @brief Media Control Service (M... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/**
* @file
* @brief Bluetooth Media Proxy APIs
*/
/*
* Copyright (c) 2019 - 2024 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_MEDIA_PROXY_H_
#define ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_MEDIA_PROXY_H_
/**
* @brief Media proxy module
*
*... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/**
* @file
* @brief Bluetooth Microphone Control Profile (MICP) APIs.
*/
/*
* Copyright (c) 2020-2024 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_MICP_H_
#define ZEPHYR_INCLUDE_BLUETOOTH_MICP_H_
/**
* @brief Microphone Control Profile (M... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/**
* @file
* @brief Bluetooth Published Audio Capabilities Service (PACS) APIs
*/
/* Copyright (c) 2021 Intel Corporation
* Copyright (c) 2021-2024 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_PACS_H_
#define ZEPHYR_INCLUDE_BLUETOOTH_... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/**
* @file
* @brief Public Broadcast Profile (PBP) APIs.
*/
/*
* Copyright 2023 NXP
* Copyright (c) 2024 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_PBP_
#define ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_PBP_
/**
* @brief Public Broadcast Pro... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|> @param call_index The call index to accept.
*
* @return int 0 on success, errno value on fail.
*
* @note @kconfig{CONFIG_BT_TBS_CLIENT_ACCEPT_CALL} must be set
* for this function to be effective.
*/
int bt_tbs_client_accept_call(struct bt_conn *conn, uint8_t inst_index,
uint8_... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/**
* @file
* @brief Header for Bluetooth TMAP.
*
* Copyright 2023 NXP
* Copyright (c) 2024-2025 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_TMAP_
#define ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_TMAP_
/**
* @brief Telephone and Media Audio P... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>ol_ctlr_unmute_vol_up(struct bt_vcp_vol_ctlr *vol_ctlr);
/**
* @brief Set the absolute volume on a remote Volume Renderer
*
* @param vol_ctlr Volume Controller instance pointer.
* @param volume The absolute volume to set.
*
* @return 0 if success, errno on failure.
*/
int bt_vcp_vol_ctlr_set_v... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|> set_offset;
#endif /* CONFIG_BT_VOCS_CLIENT */
};
/**
* @brief Read the Volume Offset Control Service offset state.
*
* The value is returned in the bt_vocs_cb.state callback.
*
* @param inst Pointer to the Volume Offset Control Service instance.
*
* @return 0 on success, GATT er... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|> bt_buf_get_rx function. However, this callback is called from the context of the buffer
* freeing operation and must not attempt to allocate a new buffer from the same pool.
*
* This callback must only be used for very short non-blocking operations (e.g. submitting a work
* item). When called from th... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/** @file
* @brief Bluetooth byteorder API
*/
/*
* Copyright (c) 2023 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_BYTEORDER_H_
#define ZEPHYR_INCLUDE_BLUETOOTH_BYTEORDER_H_
/**
* @brief Byteorder
* @defgroup bt_byteorder Byteorder
* @in... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/** @file
* @brief Advanced Audio Distribution Profile header.
*/
/*
* Copyright (c) 2015-2016 Intel Corporation
* Copyright 2024 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_A2DP_H_
#define ZEPHYR_INCLUDE_BLUETOOTH_A2DP_H_
/**
* @file
* @brief Advanced Audio ... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/** @file
* @brief Advance Audio Distribution Profile - SBC Codec header.
*/
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright (c) 2015-2016 Intel Corporation
* Copyright (c) 2021 NXP
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compl... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>
/** Stream End Point ID that is the identifier of the stream endpoint */
uint8_t id: 6;
/** Reserved */
uint8_t reserved: 1;
/** Stream End-point Type that indicates if the stream end-point is SNK or SRC */
enum bt_avdtp_sep_type tsep;
/** Media-type of the End Point
* Only @ref BT_AVDTP_AUDIO i... | fim | zephyrproject-rtos/zephyr | c |
/** @file
* @brief Audio Video Remote Control Cover Art Profile header.
*/
/*
* Copyright 2025-2026 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_AVRCP_COVER_ART_H_
#define ZEPHYR_INCLUDE_BLUETOOTH_AVRCP_COVER_ART_H_
/**
* @brief Audio Video Remote Control Cover Art Profile ... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/* bip.h - Bluetooth Basic Imaging Profile handling */
/*
* Copyright 2025-2026 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_BIP_H_
#define ZEPHYR_INCLUDE_BLUETOOTH_BIP_H_
/**
* @brief Basic Imaging Profile (BIP)
* @defgroup bt_bip Basic Imaging Profile (BIP)
*... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/** @file
* @brief Bluetooth subsystem classic core APIs.
*/
/*
* Copyright (c) 2015-2016 Intel Corporation
* Copyright 2024 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_CLASSIC_H_
#define ZEPHYR_INCLUDE_BLUETOOTH_CLASSIC_H_
/**
* @brief Bluetooth APIs
* @def... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>k-pointer in the version-specific object
* @ref bt_goep_transport_v2::goep to point at the parent @ref bt_goep.
* The version-specific object must remain valid for the lifetime of the transport.
*
* @param conn The connection that is requesting authorization.
* @param server Po... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>started.
* The passed codec id could be one of BT_HFP_AG_CODEC_XXX. If the
* codec negotiation feature is supported by both side, the codec id
* could be one of the bitmaps of `ids` notified by callback `codec`.
* Or, the `id` should be BT_HFP_AG_CODEC_CVSD.
*
* @param ag HFP AG object.
* @pa... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>ormat is an international
* number, including the country code prefix. If the plus sign ("+")
* is not included as part of the number and shall be added by the AG
* as needed.
* - values 160-175: National number. No prefix nor escape digits
* included.
* `<speed>`: This optional field is... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>l2cap_br_connless_register() API.
* It's permissible to register multiple instances of this @ref bt_l2cap_br_connless_cb type,
* in case different modules of an application are interested in tracking the connectionless
* data channel frames.
*/
struct bt_l2cap_br_connless_cb {
/** @brief Register PSM... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>ons.
*
* @param mse_mns MNS client instance.
* @param cb Pointer to callback structure (must remain valid).
*
* @return 0 on success, negative error code on failure.
*/
int bt_map_mse_mns_cb_register(struct bt_map_mse_mns *mse_mns, const struct bt_map_mse_mns_cb *cb);
/** @brief Connect MAP Server ... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>EX_RSP_CODE_FORBIDDEN - `Cannot modify the permissions of the destination
* object/folder, permission denied`.
* @ref BT_OBEX_RSP_CODE_DB_FULL - `Cannot create object in destination folder, out of memory`
* @ref BT_OBEX_RSP_CODE_CONFLICT - `Cannot modify the permissions, sharing violation, object or... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>LL_VCARD_LISTING_TYPE
* - Optional application parameters (search, etc.)
*
* @return 0 on success, negative error code on failure.
*/
int bt_pbap_pce_pull_vcard_listing(struct bt_pbap_pce *pbap_pce, struct net_buf *buf);
/** @brief Pull specific vCard entry from PBAP server PSE.
*
* S... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/** @file
* @brief Bluetooth RFCOMM handling
*/
/*
* Copyright (c) 2015-2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_RFCOMM_H_
#define ZEPHYR_INCLUDE_BLUETOOTH_RFCOMM_H_
/**
* @brief RFCOMM
* @defgroup bt_rfcomm RFCOMM
* @ingroup bluetooth
... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/** @file
* @brief Service Discovery Protocol handling.
*/
/*
* Copyright (c) 2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_SDP_H_
#define ZEPHYR_INCLUDE_BLUETOOTH_SDP_H_
/**
* @file
* @brief Service Discovery Protocol (SDP)
* @defgroup bt_s... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>ic address for controller
*
* Should be called before bt_enable().
*
* @param addr Public address
*/
void bt_ctlr_set_public_addr(const uint8_t *addr);
#ifdef __cplusplus
}
#endif
/**
* @}
*/
#endif /* ZEPHYR_INCLUDE_BLUETOOTH_CONTROLLER_H_ */
<|fim_prefix|>/** @file
* @brief Bluetooth subsys... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>ata.
*
* @param key 128 bit MS byte first key for the encryption of the plaintext
* @param plaintext 128 bit MS byte first plaintext data block to be encrypted
* @param enc_data 128 bit MS byte first encrypted data block
*
* @return Zero on success or error code otherwise.
*/
int bt_encrypt_be(... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|> uint8_t config_id;
/* Max. duration for each CS procedure, where T = N * 0.625 ms (0x0001 to 0xFFFF) */
uint16_t max_procedure_len;
/* Min. number of connection events between consecutive CS procedures (0x0001 to 0xFFFF) */
uint16_t min_procedure_interval;
/* Max. number of connection events betw... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/**
* @file
* @brief Bluetooth data types and helpers.
*/
/*
* Copyright (c) 2017 Nordic Semiconductor ASA
* Copyright (c) 2015-2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_DATA_H_
#define ZEPHYR_INCLUDE_BLUETOOTH_DATA_H_
#include <stddef.h>
... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|> if @kconfig{CONFIG_BT_DF_CONNECTION_CTE_REQ} is enabled.
*
* @param conn Connection object.
*
* @return Zero in case of success, other value in case of failure.
*/
int bt_df_conn_cte_req_disable(struct bt_conn *conn);
/**
* @brief Enable Constant Tone Extension response procedure for a connectio... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>ion.
* @retval -EINVAL One of the argument is a NULL pointer or @p
* encrypted_payload_size is less than @ref
* BT_EAD_RANDOMIZER_SIZE + @ref BT_EAD_MIC_SIZE.
*/
int bt_ead_decrypt(const uint8_t session_key[BT_EAD_KEY_SIZE], const uint8_t iv[BT_EAD_IV_SIZE],
const ... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>MAX_INTERVAL 0xFFFF /* 81.91875 s */
/**
* @brief Convert periodic advertising interval (N * 0.625 ms) to microseconds
*
* Value range of @p _interval is @ref BT_LE_ADV_INTERVAL_MIN to @ref BT_LE_ADV_INTERVAL_MAX
*/
#define BT_GAP_ADV_INTERVAL_TO_US(_interval) ((uint32_t)((_interval) * 62... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>e after
* discovery, where the end_handle is available in the
* @ref bt_gatt_service_val.
*/
uint16_t end_handle;
/** 2 or 16 octet UUID. */
const struct bt_uuid *uuid;
} by_uuid;
};
#if defined(CONFIG_BT_EATT) || defined(__DOXYGEN__)
/** Att channel options. */
enum bt_att_chan_... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>d_evt_cb_t cb);
/** @brief Get Random bytes from the LE Controller.
*
* Send the HCI_LE_Rand to the LE Controller as many times as required to
* fill the provided @p buffer.
*
* @note This function is provided as a helper to gather an arbitrary number of
* random bytes from an LE Controller using t... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/** @file
* @brief Bluetooth HCI RAW channel handling
*/
/*
* Copyright (c) 2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_HCI_RAW_H_
#define ZEPHYR_INCLUDE_BLUETOOTH_HCI_RAW_H_
/**
* @brief HCI RAW channel
* @defgroup hci_raw HCI RAW channel
... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/* hci_vs.h - Bluetooth Host Control Interface Vendor Specific definitions */
/*
* Copyright (c) 2017-2018 Nordic Semiconductor ASA
* Copyright (c) 2015-2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_HCI_VS_H_
#define ZEPHYR_INCLUDE_BLUETOOTH_HCI_V... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>* @ref BT_HCI_DATAPATH_DIR_HOST_TO_CTLR. For ISO broadcast channels this can only be
* @ref BT_HCI_DATAPATH_DIR_HOST_TO_CTLR, and for ISO sync receiver channels this can
* only be @ref BT_HCI_DATAPATH_DIR_CTLR_TO_HOST.
* @retval 0 Success
* @retval -EINVAL Invalid par... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|> *
* @return 0 in case of success or negative value in case of error.
*/
int bt_l2cap_ecred_chan_connect(struct bt_conn *conn,
struct bt_l2cap_chan **chans, uint16_t psm);
/** @brief Reconfigure Enhanced Credit Based L2CAP channels
*
* Reconfigure up to 5 L2CAP channels. Channels must be from t... | fim | zephyrproject-rtos/zephyr | c |
/** @file
* @brief Access layer APIs.
*/
/*
* Copyright (c) 2017 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_MESH_ACCESS_H_
#define ZEPHYR_INCLUDE_BLUETOOTH_MESH_ACCESS_H_
#include <zephyr/sys/util.h>
#include <zephyr/settings/settings.h>
#include <zephyr/bluet... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>_blob_xfer *xfer);
/** @brief Block start callback.
*
* Called when a new block is opened for sending. Each block is only
* sent once, and are always sent in increasing order. The data chunks
* inside a single block may be requested out of order and multiple
* times.
*
* @param io ... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>sending the transfer to the Target nodes. Only Target nodes with a
* @c status of @ref BT_MESH_BLOB_SUCCESS will be considered.
*
* The transfer will keep going either until all Target nodes have been dropped, or
* the full BLOB has been sent.
*
* The BLOB transfer may take several minutes, depe... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>
uint8_t area_id;
/** Active stream mode. */
enum bt_mesh_blob_io_mode mode;
/** Offset into the flash area to place the BLOB at (in bytes). */
off_t offset;
/* Internal flash area pointer. */
const struct flash_area *area;
/* BLOB stream. */
struct bt_mesh_blob_io io;
};
/** @brief Initialize... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2020 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_MESH_BLOB_SRV_H_
#define ZEPHYR_INCLUDE_BLUETOOTH_MESH_BLOB_SRV_H_
#include <zephyr/bluetooth/mesh/access.h>
#include <zephyr/bluetooth/mesh/blob.h>
#ifdef __cplusplus
extern... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2024 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_MESH_BRG_CFG_H__
#define ZEPHYR_INCLUDE_BLUETOOTH_MESH_BRG_CFG_H__
#include <stdint.h>
#include <stdbool.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* @defgroup bt_mesh_b... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>sponse and will return immediately after
* sending the command.
*
* @param net_idx Network index to encrypt the message with.
* @param addr Target node address.
* @param net_idx1 NetKey Index of the first subnet
* @param net_idx2 NetKey Index of the second subnet
* @param addr1 A... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2024 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
/** @file
* @brief Bluetooth Mesh Bridge Configuration Server Model APIs.
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_MESH_BRG_CFG_SRV_H__
#define ZEPHYR_INCLUDE_BLUETOOTH_MESH_BRG_CFG_SRV_H__
#include <zephyr/blu... | fim | zephyrproject-rtos/zephyr | c |
/*
* Copyright (c) 2019 Tobias Svehagen
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_MESH_CDB_H_
#define ZEPHYR_INCLUDE_BLUETOOTH_MESH_CDB_H_
#include <stdbool.h>
#include <stdint.h>
#include <zephyr/sys/atomic.h>
#include <zephyr/bluetooth/mesh.h>
#ifdef __cplusplus
extern "C" {
#... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>h Phase 1.
* Once all nodes have received the new Subnet key, Key Refresh Phase 2 can be
* activated through this function to start transmitting with the new network
* key. Finally, to revoke the old key, set the Key Refresh Phase to 3. This
* removes the old keys from the node, and returns the Su... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|> devices:
*
* @code
* NET_BUF_SIMPLE_DEFINE(buf, BT_MESH_RX_SDU_MAX);
* struct bt_mesh_comp_p0 comp;
*
* err = bt_mesh_cfg_cli_comp_data_get(net_idx, addr, 0, &page, &buf);
* if (!err) {
* bt_mesh_comp_p0_get(&comp, &buf);
* }
* @endcode
*
* @param buf Network buffer containi... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/** @file
* @brief Configuration Server Model APIs.
*/
/*
* Copyright (c) 2017 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_<|fim_suffix|>H_CFG_SRV_H_
/**
* @brief Configuration Server Model
* @defgroup bt_mesh_cfg_srv Configuration Server Model
* @ingrou... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2020 Nordic Semiconductor ASA
*
* SPD<|fim_suffix|>YR_INCLUDE_BLUETOOTH_MESH_DFD_H__ */
<|fim_middle|>X-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_MESH_DFD_H__
#define ZEPHYR_INCLUDE_BLUETOOTH_MESH_DFD_H__
#include <zephyr/bluetooth/mesh.h>
#ifdef __cplusp... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>lete(struct bt_mesh_dfd_srv *srv,
const struct bt_mesh_dfu_slot *slot, int status,
uint8_t *fwid, size_t fwid_len);
/** @brief Call when an OOB store has completed or failed
*
* This should be called by the application after an OOB store started after a successful call to
* @c ... | fim | zephyrproject-rtos/zephyr | c |
/*
* Copyright (c) 2020 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_MESH_DFU_H__
#define ZEPHYR_INCLUDE_BLUETOOTH_MESH_DFU_H__
#include <sys/types.h>
#include <zephyr/kernel.h>
#include <zephyr/bluetooth/mesh/blob.h>
#ifdef __cplusplus
extern "C" {
#endif... | fim | zephyrproject-rtos/zephyr | c |
/*
* Copyright (c) 2020 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @defgroup bt_mesh_dfu_cli Firmware Uppdate Client model
* @ingroup bt_mesh_dfu
* @{
* @brief API for the Bluetooth Mesh Firmware Update Client model
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_MESH_DFU_CLI_H__
... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>
* @return 0 on success, or (negative) error code otherwise.
*/
int bt_mesh_dfu_metadata_comp_hash_get(struct net_buf_simple *buf, uint8_t *key, uint32_t *hash);
/** @brief Compute hash of the Composition Data Page 0 of this device.
*
* @param key 128-bit key to be used in the hash computation.
* ... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2020 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @defgroup bt_mesh_dfu_srv Firmware Update Server model
* @ingroup bt_mesh_dfu
* @{
* @brief API for the Bluetooth Mesh Firmware Update Server model
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_MESH... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/** @file
* @brief Health Client Model APIs.
*/
/*
* Copyright (c) 2017 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_MESH_HEALTH_CLI_H_
#define ZEPHYR_INCLUDE_BLUETOOTH_MESH_HEALTH_CLI_H_
#include <zephyr/bluetooth/mesh.h>
/**
* @brief Health Cli... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/** @file
* @brief Health faults
*/
/*
* Copyright (c) 2019 Nordic Semiconductor ASA
*
* SPDX<|fim_suffix|>ing */
#define BT_MESH_HEALTH_FAULT_OVERFLOW_WARNING 0x2B
/** Overflow Error */
#define BT_MESH_HEALTH_FAULT_OVERFLOW_ERROR 0x2C
/** Empty Warning */
#defi... | fim | zephyrproject-rtos/zephyr | c |
/** @file
* @brief Health Server Model APIs.
*/
/*
* Copyright (c) 2017 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_MESH_HEALTH_SRV_H_
#define ZEPHYR_INCLUDE_BLUETOOTH_MESH_HEALTH_SRV_H_
/**
* @brief Health Server Model
* @defgroup bt_mesh_health_srv Health S... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/** @file
* @brief Heartbeat APIs.
*/
/*
* Copyright (c) 2020 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_MESH_HEARTBEAT_H_
#define ZEPHYR_INCLUDE_BLUETOOTH_MESH_HEARTBEAT_H_
#include <stdint.h>
#include <zephyr/sys/iterable_sections.h>
#i... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|> The structure that keeps representation of key. */
struct bt_mesh_key {
/** PSA key representation is the PSA key identifier. */
psa_key_id_t key;
};
#ifdef __cplusplus
}
#endif
#endif /* ZEPHYR_INCLUDE_BLUETOOTH_MESH_KEYS_H_ */
<|fim_prefix|>/** @file
<|fim_middle|> * @brief Keys APIs.
*/
/*
* C... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>op _bt_mesh_large_comp_data_cli_op[];
extern const struct bt_mesh_model_cb _bt_mesh_large_comp_data_cli_cb;
/** @endcond */
/**
* @}
*/
#ifdef __cplusplus
}
#endif
#endif /* BT_MESH_LARGE_COMP_DATA_CLI_H__ */
<|fim_prefix|>/*
* Copyright (c) 2021 Nordic Semiconductor ASA
*
* SPDX-License-Identifie... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>t struct bt_mesh_model_op _bt_mesh_large_comp_data_srv_op[];
extern const struct bt_mesh_model_cb _bt_mesh_large_comp_data_srv_cb;
/** @endcond */
#ifdef __cplusplus
}
#endif
#endif /* BT_MESH_LARGE_COMP_DATA_SRV_H__ */
/**
* @}
*/
<|fim_prefix|>/*
* Copyright (c) 2021 Nordic Semiconductor ASA
*
*... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/** @file
* @brief Bluetooth Mesh Protocol APIs.
*/
/*
* Copyright (c) 2017 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_MESH_MAIN_H_
#define ZEPHYR_INCLUDE_BLUETOOTH_MESH_MAIN_H_
#include <stdbool.h>
#include <stdint.h>
#include <zephyr/kernel.h>... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>de that should respond. */
void *user_data; /**< User specific parameter. */
};
/** @brief Initialize an acknowledged message context.
*
* Initializes semaphore used for synchronization between @ref bt_mesh_msg_ack_ctx_wait and
* @ref bt_mesh_msg_ack_ctx_rx calls. Call this function... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>8_t val, uint8_t *val_rsp);
/** @brief Set the transmission timeout value.
*
* @param timeout The new transmission timeout in milliseconds.
*/
void bt_mesh_od_priv_proxy_cli_timeout_set(int32_t timeout);
/** @cond INTERNAL_HIDDEN */
extern const struct bt_mesh_model_op _bt_mesh_od_priv_proxy_cli_op[... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef BT_MESH_OD_PRIV_PROXY_SRV_H__
#define BT_MESH_OD_PRIV_PROXY_SRV_H__
#include <zephyr/bluetooth/mesh.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* @defgroup bt_mesh_od_priv_proxy_srv Bluetooth Mes... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>
#ifdef __cplusplus
}
#endif
#endif /* BT_MESH_OP_AGG_CLI_H__ */
<|fim_prefix|>/*
* Copyright (c) 2022 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef BT_MESH_OP_AGG_CLI_H__
#define BT_MESH_OP_AGG_CLI_H__
#include <zephyr/bluetooth/mesh.h>
#ifdef __cplusplus
extern "C" ... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>_mesh_op_agg_srv_op[];
extern const struct bt_mesh_model_cb _bt_mesh_op_agg_srv_cb;
/** @endcond */
/**
* @}
*/
#ifdef __cplusplus
}
#endif
#endif /* BT_MESH_OP_AGG_SRV_H__ */
<|fim_prefix|>/*
* Copyright (c) 2022 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef BT_MES... | fim | zephyrproject-rtos/zephyr | c |
/*
* Copyright (c) 2020 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_MESH_PRIV_BEACON_CLI_H__
#define ZEPHYR_INCLUDE_BLUETOOTH_MESH_PRIV_BEACON_CLI_H__
#include <zephyr/bluetooth/mesh.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* @defgroup bt_mesh_priv_... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2020 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_MESH_PRIV_BEACON_SRV_H__
#define ZEPH<|fim_suffix|>del composition data entry.
*/
#define BT_MESH_MODEL_PRIV_BEACON_SRV \
BT_MESH_MOD... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>dule advertising Solicitation PDUs for the amount of time
* defined by @c adv_int * (@c CONFIG_BT_MESH_SOL_ADV_XMIT + 1), where @c adv_int is 20ms
* for Bluetooth v5.0 or higher, or 100ms otherwise.
*
* If the number of advertised Solicitation PDUs reached 0xFFFFFF, the advertisements will
* no l... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>** Change the Device key. */
BT_MESH_RPR_NODE_REFRESH_DEVKEY,
/** Change the Device key and address. Device composition may change. */
BT_MESH_RPR_NODE_REFRESH_ADDR,
/** Change the Device key and composition. */
BT_MESH_RPR_NODE_REFRESH_COMPOSITION,
};
enum bt_mesh_rpr_link_state {
BT_MESH_RPR_LINK... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>ID128_SOME
*
* Additionally, each AD type should only occur once.
*
* @param cli Remote Provisioning Client.
* @param srv Remote Provisioning Server.
* @param uuid Device UUID to start extended scanning for, or NULL to scan
* the remote server.
* @param timeout ... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>T_MESH_RPR_SRV_H__ */
<|fim_prefix|>/*
* Copyright (c) 2020 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BT_MESH_RPR_SRV_H__
#define ZEPHYR_INCLUDE_BT_MESH_RPR_SRV_H__
#include <zephyr/bluetooth/bluetooth.h>
#include <zephyr/bluetooth/mesh/access.h>
#inc... | fim | zephyrproject-rtos/zephyr | c |
/*
* Copyright (c) 2021 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef BT_MESH_SAR_CFG_H__
#define BT_MESH_SAR_CFG_H__
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* @defgroup bt_mesh_sar_cfg SAR Configuration common header
* @ingroup bt_mesh
* @{
*/
/** SAR T... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>r_tx *rsp);
/** @brief Set the SAR Transmitter state of the target node.
*
* @param net_idx Network index to encrypt with.
* @param addr Target node address.
* @param set New SAR Transmitter state to set on the target node.
* @param rsp Status response parameter.
*
* @return 0 on s... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2021 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
/** @file
*<|fim_suffix|>cond INTERNAL_HIDDEN */
extern const struct bt_mesh_model_op bt_mesh_sar_cfg_srv_op[];
extern const struct bt_mesh_model_cb bt_mesh_sar_cfg_srv_cb;
/** @endcond */
#ifdef __cplusplus... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2021 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_MESH_SHELL_H_
#define ZEPHYR_INCLUDE_BLUETOOTH_MESH_SHELL_H_
#include <zephyr/bluetooth/mesh.h>
#ifdef __cplusplus
extern "C" {
#endif
/** Maximum number of faults the health... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef BT_MESH_SOL_PDU_RPL_CLI_H__
#define BT_MESH_SOL_PDU_RPL_CLI_H__
#include <zephyr/bluetooth/mesh.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* @defgroup bt_mesh_sol_pdu_rpl_cli Bluetooth Mesh Soli... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2022 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef BT_MESH_SOL_PDU_RPL_SRV_H__
#define BT_MESH_SOL_PDU_RPL_SRV_H__
#ifdef __cplusplus
extern "C" {
#endif
/**
* @defgroup bt_mesh_sol_pdu_rpl_srv Bluetooth Mesh Solicitation PDU RPL Server
* @ingroup ... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>received
*
* Measured ReceiveDelay = T2 - T1 (actual time before LPN starts listening).
* Measured ReceiveWindow = T3 - T2 (actual listening time until response).
*/
struct bt_mesh_lpn_timing {
/** Measured ReceiveDelay for the last poll cycle in microseconds.
* Time from poll TX end to scanner ... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/** @file
* @brief Bluetooth Mesh Profile APIs.
<|fim_suffix|>
#include <zephyr/bluetooth/mesh/large_comp_data_srv.h>
#include <zephyr/bluetooth/mesh/large_comp_data_cli.h>
#include <zephyr/bluetooth/mesh/od_priv_proxy_srv.h>
#include <zephyr/bluetooth/mesh/od_priv_proxy_cli.h>
#include <zephyr/bluetoo... | fim | zephyrproject-rtos/zephyr | c |
/*
* Copyright 2024 - 2025 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_LIB_SBC_H_
#define ZEPHYR_INCLUDE_LIB_SBC_H_
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <zephyr/toolchain.h>
#include "sbc_encoder.h"
#include "oi_codec_sbc.h"
#include "oi_status.h"
/** @b... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/*
* Copyright (c) 2025 Sean Kyer
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_SERVICES_ANS_H_
#define ZEPHYR_INCLUDE_BLUETOOTH_SERVICES_ANS_H_
/**
* @brief Alert Notification Service (ANS)
* @defgroup bt_ans Alert Notification Service (ANS)
*
* @since 4.4
* @vers... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>ly. */
BT_BAS_BLS_CHARGE_STATE_DISCHARGING_ACTIVE = 2,
/** Battery is discharging but inactive. */
BT_BAS_BLS_CHARGE_STATE_DISCHARGING_INACTIVE = 3
};
/** @brief Battery Charge Level
*
* Enumeration for the level of charge in the battery.
*/
enum bt_bas_bls_battery_charge_level {
/** Battery char... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>cts_init(const struct bt_cts_cb *cb);
/**
* @brief Notify all connected clients with CTS enabled
*
* @param reason update reason to be sent to the clients
*
* @return 0 on success, negative error code on failure
*/
int bt_cts_send_notification(enum bt_cts_update_reason reason);
/**
* @brief Conve... | fim | zephyrproject-rtos/zephyr | c |
<|fim_prefix|>/** @file
* @brief GATT Device Information Service
*/
/*
* Copyright (c) 2018<|fim_suffix|>#ifndef ZEPHYR_INCLUDE_BLUETOOTH_SERVICES_DIS_H_
#define ZEPHYR_INCLUDE_BLUETOOTH_SERVICES_DIS_H_
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
#endif /* ZEPHYR_INCLUDE_BLUETOOTH_SERVICE... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|> errno on failure.
*/
int (*read_elapsed_time)(struct bt_ets_elapsed_time *time);
/**
* @brief Read clock status (@ref BT_ETS_CLOCK_STATUS) callback (MANDATORY).
*
* Called when a BLE client reads the Current Elapsed Time characteristic.
* Application must return the current clock status flag... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>EPHYR_INCLUDE_BLUETOOTH_SERVICES_HRS_H_ */
<|fim_prefix|>/*
* Copyright (c) 2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_SERVICES_HRS_H_
#define ZEPHYR_INCLUDE_BLUETOOTH_SERVICES_HRS_H_
/**
* @brief Heart Rate Service (HRS)
* @defgroup bt_hrs H... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>void);
/**
* @brief Callback function for alert level value.
*
* This callback is called when peer commands to alert.
*/
void (*mild_alert)(void);
/**
* @brief Callback function for alert level value.
*
* This callback is called when peer commands to alert in the strongest possible way.... | fim | zephyrproject-rtos/zephyr | c |
<|fim_suffix|>c = &_name##_svc, \
.cbs = &_name##_cbs, \
}
#ifdef __cplusplus
}
#endif
#endif /* ZEPHYR_INCLUDE_BLUETOOTH_SERVICES_NUS_INST_H_ */
<|fim_prefix|>/*
* Copyright (c) 2024 Croxel, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_SERVICES_NUS_INST... | 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.