text stringlengths 9 39.2M | dir stringlengths 25 226 | lang stringclasses 163
values | created_date timestamp[s] | updated_date timestamp[s] | repo_name stringclasses 751
values | repo_full_name stringclasses 752
values | star int64 1.01k 183k | len_tokens int64 1 18.5M |
|---|---|---|---|---|---|---|---|---|
```c
/*
*
*/
#include <autoconf.h>
#include <errno.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <zephyr/bluetooth/audio/cap.h>
#include <zephyr/bluetooth/audio/bap.h>
#include <zephyr/bluetooth/bluetooth.h>
#include <zephyr/bluetooth/hci_types.h>
#include <zephyr/bluetooth/iso.h>
#includ... | /content/code_sandbox/samples/bluetooth/bap_unicast_client/src/stream_tx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,262 |
```objective-c
/*
*
*/
#ifndef STREAM_LC3_H
#define STREAM_LC3_H
#include <stdint.h>
#include <zephyr/bluetooth/audio/audio.h>
#include <zephyr/net/buf.h>
#include <zephyr/sys_clock.h>
/* Since the lc3.h header file is not available when CONFIG_LIBLC3=n, we need to guard the include
* and use of it
*/
#if defin... | /content/code_sandbox/samples/bluetooth/bap_unicast_client/src/stream_lc3.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 305 |
```unknown
# For LC3 the following configs are needed
CONFIG_FPU=y
CONFIG_LIBLC3=y
``` | /content/code_sandbox/samples/bluetooth/bap_unicast_client/boards/nrf52_bsim.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 22 |
```unknown
# For LC3 the following configs are needed
CONFIG_FPU=y
CONFIG_LIBLC3=y
# The LC3 codec uses a large amount of stack. This app runs the codec in the work-queue, hence
# inctease stack size for that thread.
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
CONFIG_BT_BUF_EVT_RX_SIZE=255
CONFIG_BT_BUF_ACL_RX_SIZE=255
CO... | /content/code_sandbox/samples/bluetooth/bap_unicast_client/boards/nrf5340dk_nrf5340_cpuapp.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 112 |
```unknown
# This configuration overlay is used when the controller, host and application are built
# all together in the network core
# For LC3 the following configs are needed
CONFIG_FPU=y
CONFIG_LIBLC3=y
``` | /content/code_sandbox/samples/bluetooth/bap_unicast_client/boards/nrf5340bsim_nrf5340_cpunet.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 46 |
```unknown
CONFIG_LOG_MODE_IMMEDIATE=y
CONFIG_BT_TINYCRYPT_ECC=y
CONFIG_LIBLC3=y
CONFIG_FPU=y
# For LE-audio at 10ms intervals we need the tick counter to occur more frequently
# than every 10 ms as each PDU for some reason takes 2 ticks to process.
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000
CONFIG_NATIVE_POSIX_SLOWDOWN_TO_... | /content/code_sandbox/samples/bluetooth/bap_unicast_client/boards/native_sim.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 91 |
```unknown
# For LC3 the following configs are needed
CONFIG_FPU=y
CONFIG_LIBLC3=y
CONFIG_BT_BUF_EVT_RX_SIZE=255
CONFIG_BT_BUF_ACL_RX_SIZE=255
CONFIG_BT_BUF_ACL_TX_SIZE=251
CONFIG_BT_BUF_CMD_TX_SIZE=255
CONFIG_BT_TINYCRYPT_ECC=y
``` | /content/code_sandbox/samples/bluetooth/bap_unicast_client/boards/nrf5340bsim_nrf5340_cpuapp.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 67 |
```unknown
# For LC3 the following configs are needed
CONFIG_FPU=y
CONFIG_LIBLC3=y
# The LC3 codec uses a large amount of stack. This app runs the decoding codec in the RX thread,
# hence increase the stack size for that thread.
CONFIG_BT_RX_STACK_SIZE=4096
CONFIG_BT_BUF_EVT_RX_SIZE=255
CONFIG_BT_BUF_ACL_RX_SIZE=255
C... | /content/code_sandbox/samples/bluetooth/bap_unicast_client/boards/nrf5340_audio_dk_nrf5340_cpuapp.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 109 |
```restructuredtext
.. _bluetooth-central-past-sample:
Bluetooth: Central Periodic Advertising Sync Transfer (PAST)
############################################################
Overview
********
A simple application demonstrating the BLE Periodic Advertising Sync Transfer
functionality as the sender.
Requirements
*... | /content/code_sandbox/samples/bluetooth/central_past/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 192 |
```unknown
CONFIG_BT=y
CONFIG_BT_CENTRAL=y
CONFIG_BT_EXT_ADV=y
CONFIG_BT_PER_ADV_SYNC=y
CONFIG_LOG=y
CONFIG_BT_DEVICE_NAME="Test Central Periodic Advertising Sync Transfer"
CONFIG_BT_PER_ADV_SYNC_TRANSFER_SENDER=y
``` | /content/code_sandbox/samples/bluetooth/central_past/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 52 |
```yaml
sample:
name: Bluetooth Central Periodic Advertising Sync Transfer
tests:
sample.bluetooth.central_past:
harness: bluetooth
platform_allow:
- qemu_cortex_m3
- qemu_x86
integration_platforms:
- qemu_cortex_m3
tags: bluetooth
``` | /content/code_sandbox/samples/bluetooth/central_past/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 63 |
```c
/*
*
*/
#include <stddef.h>
#include <errno.h>
#include <zephyr/bluetooth/audio/audio.h>
#include <zephyr/bluetooth/audio/bap.h>
#include <zephyr/bluetooth/audio/bap_lc3_preset.h>
#include <zephyr/bluetooth/bluetooth.h>
#include <zephyr/bluetooth/conn.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/byteorde... | /content/code_sandbox/samples/bluetooth/bap_unicast_client/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6,266 |
```unknown
CONFIG_BT_CSIP_SET_MEMBER=y
CONFIG_HAP_HA_HEARING_AID_BINAURAL=y
CONFIG_BT_CAP_ACCEPTOR_SET_MEMBER=y
``` | /content/code_sandbox/samples/bluetooth/hap_ha/binaural.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 32 |
```unknown
CONFIG_HAP_HA_HEARING_AID_BANDED=y
# If the HA supports the Volume Balance feature (see Section 3.1) and the HA
# is a Banded Hearing Aid, the HA shall instantiate two instances of VOCS.
CONFIG_BT_VOCS_MAX_INSTANCE_COUNT=2
CONFIG_BT_VCP_VOL_REND_VOCS_INSTANCE_COUNT=2
``` | /content/code_sandbox/samples/bluetooth/hap_ha/banded.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 78 |
```restructuredtext
.. _bluetooth_hap_ha:
Bluetooth: HAP Hearing Aid (HA)
###############################
Overview
********
Application demonstrating the LE Audio Hearing Aid sample functionality.
Starts advertising and awaits connection from a Hearing Aid Unicast Client (HAUC)
or Hearing Aid Remote Controller (HARC... | /content/code_sandbox/samples/bluetooth/hap_ha/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 139 |
```unknown
#
#
#
mainmenu "Bluetooth: Hearing Aid"
menu "Zephyr"
source "Kconfig.zephyr"
endmenu
menu "Hearing Aid"
config HAP_HA_SET_RANK
int "Device rank in set"
depends on BT_CSIP_SET_MEMBER
range 1 2
help
Rank of this device in set.
choice HAP_HA_HEARING_AID_TYPE_CHOICE
prompt "Hearing Aid Type selecti... | /content/code_sandbox/samples/bluetooth/hap_ha/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 272 |
```c
/*
*
*/
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/bluetooth/bluetooth.h>
#include <zephyr/bluetooth/conn.h>
#include <zephyr/bluetooth/hci.h>
#define NAME_LEN 30
static bool per_adv_found;
static bt_addr_le_t per_addr;
static uint8_t... | /content/code_sandbox/samples/bluetooth/central_past/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,466 |
```yaml
sample:
description: Bluetooth HAP Hearing Aid sample
name: Bluetooth HAP Hearing Aid sample
tests:
sample.bluetooth.hap_ha.monaural:
harness: bluetooth
platform_allow:
- native_posix
- native_sim
tags: bluetooth
build_only: true
sample.bluetooth.hap_ha.monaural_no_presets:
... | /content/code_sandbox/samples/bluetooth/hap_ha/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 251 |
```unknown
CONFIG_BT=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_ISO_PERIPHERAL=y
CONFIG_BT_PRIVACY=y
CONFIG_BT_SMP=y
CONFIG_BT_SMP_SC_PAIR_ONLY=y
CONFIG_BT_SMP_MIN_ENC_KEY_SIZE=16
CONFIG_BT_EXT_ADV=y
CONFIG_BT_DEVICE_NAME="Hearing Aid sample"
# Appearance: Generic Hearing aid (0x0A40)
CONFIG_BT_DEVICE_APPEARANCE=2624
# Mand... | /content/code_sandbox/samples/bluetooth/hap_ha/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 515 |
```c
/** @file
* @brief Bluetooth Microphone Control Profile (MICP) Microphone Device role.
*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
#include <stdlib.h>
#include <stdio.h>
#include <zephyr/bluetooth/conn.h>
#include <zephyr/bluetooth/audio/micp.h>
static void micp_mic_dev_mute_cb(uint8_t... | /content/code_sandbox/samples/bluetooth/hap_ha/src/micp_mic_dev.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,101 |
```c
/** @file
* @brief Bluetooth Volume Control Profile (VCP) Volume Renderer role.
*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
#include <stdlib.h>
#include <stdio.h>
#include <zephyr/bluetooth/conn.h>
#include <zephyr/bluetooth/audio/vcp.h>
static struct bt_vcp_included vcp_included;
sta... | /content/code_sandbox/samples/bluetooth/hap_ha/src/vcp_vol_renderer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,481 |
```c
/** @file
* @brief Bluetooth Coordinated Set Identifier Profile (CSIP) Set Member role.
*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
#include <zephyr/bluetooth/audio/cap.h>
#include <zephyr/bluetooth/audio/csip.h>
#define CSIP_SIRK_DEBUG { 0xcd, 0xcc, 0x72, 0xdd, 0x86, 0x8c, 0xcd, 0xce,... | /content/code_sandbox/samples/bluetooth/hap_ha/src/csip_set_member.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 466 |
```c
/** @file
* @brief Bluetooth Basic Audio Profile (BAP) Unicast Server role.
*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/printk.h>
#include <zephyr/bluetooth/bluetooth.h>
#include <zephyr/bluetooth/conn.h>
#include <zephyr/bluetooth/hci.h>
#include <zephyr/bluetoo... | /content/code_sandbox/samples/bluetooth/hap_ha/src/bap_unicast_sr.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,367 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/printk.h>
#include <zephyr/bluetooth/bluetooth.h>
#include <zephyr/bluetooth/byteorder.h>
#include <zephyr/bluetooth/conn.h>
#include <zephyr/bluetooth/audio/audio.h>
#include <zephyr/bluetooth/audio/bap.h>
#include <zeph... | /content/code_sandbox/samples/bluetooth/hap_ha/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,784 |
```c
/** @file
* @brief Bluetooth Hearing Access Service (HAS) Server role.
*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
#include <zephyr/sys/util.h>
#include <zephyr/bluetooth/audio/has.h>
#define PRESET_INDEX_UNIVERSAL 1
#define PRESET_INDEX_OUTDOOR 5
#define PRESET_INDEX_NOISY_ENV 8
... | /content/code_sandbox/samples/bluetooth/hap_ha/src/has_server.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 635 |
```objective-c
/*
*
*/
#include <zephyr/types.h>
/**
* @brief Initialize the BAP Unicast Server role
*
* @return 0 if success, errno on failure.
*/
int bap_unicast_sr_init(void);
/**
* @brief Initialize the CSIP Set Member role
*
* @return 0 if success, errno on failure.
*/
int csip_set_member_init(void);
... | /content/code_sandbox/samples/bluetooth/hap_ha/src/hap_ha.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 290 |
```unknown
CONFIG_LOG_MODE_IMMEDIATE=y
CONFIG_BT_TINYCRYPT_ECC=y
# For LE-audio at 10ms intervals we need the tick counter to occur more frequently
# than every 10 ms as each PDU for some reason takes 2 ticks to process.
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000
CONFIG_NATIVE_SIM_SLOWDOWN_TO_REAL_TIME=y
``` | /content/code_sandbox/samples/bluetooth/hap_ha/boards/native_sim.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 79 |
```unknown
CONFIG_LOG_MODE_IMMEDIATE=y
CONFIG_BT_TINYCRYPT_ECC=y
# For LE-audio at 10ms intervals we need the tick counter to occur more frequently
# than every 10 ms as each PDU for some reason takes 2 ticks to process.
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000
CONFIG_NATIVE_POSIX_SLOWDOWN_TO_REAL_TIME=y
``` | /content/code_sandbox/samples/bluetooth/hap_ha/boards/native_posix.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 80 |
```c
/** @file
* @brief Bluetooth Call Control Profile (CCP) Call Controller role.
*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
#include <zephyr/sys/util.h>
#include <zephyr/bluetooth/conn.h>
#include <zephyr/bluetooth/hci.h>
#include <zephyr/bluetooth/audio/tbs.h>
enum {
CCP_FLAG_PROFILE_C... | /content/code_sandbox/samples/bluetooth/hap_ha/src/ccp_call_ctrl.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,109 |
```unknown
#
#
#
# Disable AoA Feature (antenna switching) in Rx mode in Controller and Host
CONFIG_BT_CTLR_DF_ANT_SWITCH_RX=n
CONFIG_BT_DF_CTE_RX_AOA=n
``` | /content/code_sandbox/samples/bluetooth/direction_finding_central/overlay-aod.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 42 |
```unknown
#
#
#
menu "Direction Finding Central"
config DF_CENTRAL_APP_IQ_REPORT_PRINT_IQ_SAMPLES
bool "Print IQ samples for received IQ reports"
help
The option enables printing of IQ samples for received IQ report.
endmenu
menu "Zephyr Kernel"
source "Kconfig.zephyr"
endmenu
``` | /content/code_sandbox/samples/bluetooth/direction_finding_central/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 70 |
```unknown
#
#
#
CONFIG_BT=y
CONFIG_LOG=y
CONFIG_BT_DEVICE_NAME="Direction Finding Central"
CONFIG_BT_CENTRAL=y
CONFIG_BT_SMP=y
CONFIG_BT_GATT_CLIENT=y
# Enable Direction Finding Feature RX in connected mode
CONFIG_BT_DF=y
CONFIG_BT_DF_CONNECTION_CTE_RX=y
CONFIG_BT_DF_CONNECTION_CTE_REQ=y
``` | /content/code_sandbox/samples/bluetooth/direction_finding_central/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 74 |
```yaml
sample:
name: Direction Finding Central
description: Sample application showing central role of Direction Finding in connected
mode
tests:
sample.bluetooth.direction_finding.central:
harness: bluetooth
platform_allow:
- nrf52833dk/nrf52833
- nrf52833dk/nrf52820
- nrf5340dk/nr... | /content/code_sandbox/samples/bluetooth/direction_finding_central/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 250 |
```restructuredtext
.. _bluetooth_direction_finding_central:
Bluetooth: Direction Finding Central
####################################
Overview
********
A simple application demonstrating the BLE Direction Finding CTE reception in
connected mode by requesting transmission of a packet containing Constant
Tone Extensi... | /content/code_sandbox/samples/bluetooth/direction_finding_central/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 777 |
```unknown
/*
*
*/
&radio {
status = "okay";
/* This is a number of antennas that are available on antenna matrix
* designed by Nordic. For more information see README.rst.
*/
dfe-antenna-num = <12>;
/* This is a setting that enables antenna 12 (in antenna matrix designed
* by Nordic) for Rx PDU. For more ... | /content/code_sandbox/samples/bluetooth/direction_finding_central/boards/nrf52833dk_nrf52833.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 234 |
```unknown
/*
*
*/
&radio {
status = "okay";
/* This is an example number of antennas that may be available
* on antenna matrix board.
*/
dfe-antenna-num = <10>;
/* This is an example switch pattern that will be used to set an
* antenna for Tx PDU (period before start of Tx CTE).
*/
dfe-pdu-antenna = <0... | /content/code_sandbox/samples/bluetooth/direction_finding_central/boards/nrf52833dk_nrf52820.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 197 |
```unknown
#
#
#
CONFIG_BT_CTLR=y
CONFIG_BT_LL_SW_SPLIT=y
# Enable Direction Finding Feature including AoA and AoD
CONFIG_BT_CTLR_DF=y
CONFIG_BT_CTLR_DF_CTE_RX=y
CONFIG_BT_CTLR_DF_CONN_CTE_RX=y
CONFIG_BT_CTLR_DF_ANT_SWITCH_RX=y
CONFIG_BT_CTLR_DF_CONN_CTE_REQ=y
# Ensure that there is enough control procedure context... | /content/code_sandbox/samples/bluetooth/direction_finding_central/boards/nrf52833dk_nrf52833.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 118 |
```unknown
#
#
#
CONFIG_BT_CTLR=y
CONFIG_BT_LL_SW_SPLIT=y
# Enable Direction Finding Feature including AoA and AoD
CONFIG_BT_CTLR_DF=y
CONFIG_BT_CTLR_DF_CTE_RX=y
CONFIG_BT_CTLR_DF_CONN_CTE_RX=y
CONFIG_BT_CTLR_DF_ANT_SWITCH_RX=y
CONFIG_BT_CTLR_DF_CONN_CTE_REQ=y
# Ensure that there is enough control procedure context... | /content/code_sandbox/samples/bluetooth/direction_finding_central/boards/nrf52833dk_nrf52820.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 118 |
```unknown
/*
*
*/
/* Enable pin forwarding to network core. The selected pins will be used by
* Radio Direction Finding Extension for antenna switching purposes.
*
* Note: Pay attention to assign the same GPIO pins as those provided in
* network core DTS overlay.
*/
&gpio_fwd {
dfe-gpio-if {
gpios = <... | /content/code_sandbox/samples/bluetooth/direction_finding_central/boards/nrf5340dk_nrf5340_cpuapp.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 117 |
```unknown
# Zephyr Bluetooth Controller
CONFIG_BT_LL_SW_SPLIT=y
# Zephyr Controller tested maximum advertising data that can be set in a single HCI command
CONFIG_BT_CTLR_ADV_DATA_LEN_MAX=191
# Enable support for Broadcast ISO in Zephyr Bluetooth Controller
CONFIG_BT_CTLR_ADV_ISO=y
# Sufficient ISO PDU length for t... | /content/code_sandbox/samples/bluetooth/iso_broadcast/overlay-bt_ll_sw_split.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 189 |
```restructuredtext
.. _bluetooth-isochronous-broadcaster-sample:
Bluetooth: Isochronous Broadcaster
##################################
Overview
********
A simple application demonstrating the Bluetooth Low Energy Isochronous
Broadcaster functionality.
Requirements
************
* BlueZ running on the host, or
* A ... | /content/code_sandbox/samples/bluetooth/iso_broadcast/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 220 |
```unknown
source "Kconfig.zephyr"
mainmenu "Bluetooth: ISO Broadcast"
config ISO_PRINT_INTERVAL
int "Interval between each packet report"
range 1 360000
default 1
help
Only print the packet report once in a given interval of ISO packets.
``` | /content/code_sandbox/samples/bluetooth/iso_broadcast/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 59 |
```c
/*
*
*/
#include <zephyr/types.h>
#include <stddef.h>
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/bluetooth/bluetooth.h>
#include <zephyr/bluetooth/hci.h>
#include <zephyr/bluetooth/direction.h>
#include <zephyr/bluetooth/conn.... | /content/code_sandbox/samples/bluetooth/direction_finding_central/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,196 |
```unknown
CONFIG_BT=y
CONFIG_BT_ISO_BROADCASTER=y
CONFIG_LOG=y
CONFIG_BT_DEVICE_NAME="Test ISO Broadcaster"
CONFIG_BT_ISO_MAX_CHAN=2
CONFIG_BT_ISO_TX_BUF_COUNT=4
# Just needs to send a uint32_t value
CONFIG_BT_ISO_TX_MTU=4
``` | /content/code_sandbox/samples/bluetooth/iso_broadcast/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 64 |
```yaml
sample:
name: Bluetooth ISO Broadcaster
tests:
sample.bluetooth.iso_broadcast:
harness: bluetooth
platform_allow:
- qemu_cortex_m3
- qemu_x86
- nrf52_bsim
- nrf52dk/nrf52832
integration_platforms:
- qemu_cortex_m3
tags: bluetooth
sample.bluetooth.iso_broadcast... | /content/code_sandbox/samples/bluetooth/iso_broadcast/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 170 |
```restructuredtext
.. _ble_mesh_demo:
Bluetooth: Mesh Demo
####################
Overview
********
This sample is a Bluetooth Mesh application intended for demonstration
purposes only. The application provisions and configures itself (i.e. no
external provisioner needed) with hard-coded network and application key
v... | /content/code_sandbox/samples/bluetooth/mesh_demo/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 538 |
```unknown
CONFIG_MAIN_STACK_SIZE=512
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
CONFIG_BT=y
CONFIG_BT_OBSERVER=y
CONFIG_BT_BROADCASTER=y
CONFIG_BT_CTLR_DUP_FILTER_LEN=0
CONFIG_BT_CTLR_LE_ENC=n
CONFIG_BT_CTLR_LE_PING=n
CONFIG_BT_DATA_LEN_UPDATE=n
CONFIG_BT_PHY_UPDATE=n
CONFIG_BT_CTLR_MIN_USED_CHAN=n
CONFIG_BT_CTLR_PRIVA... | /content/code_sandbox/samples/bluetooth/mesh_demo/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 216 |
```c
/*
*
*/
#include <zephyr/bluetooth/bluetooth.h>
#include <zephyr/bluetooth/iso.h>
#include <zephyr/sys/byteorder.h>
#define BUF_ALLOC_TIMEOUT (10) /* milliseconds */
#define BIG_TERMINATE_TIMEOUT_US (60 * USEC_PER_SEC) /* microseconds */
#define BIG_SDU_INTERVAL_US (10000)
#define BIS_ISO_CHAN_COUNT 2
NET_BUF... | /content/code_sandbox/samples/bluetooth/iso_broadcast/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,789 |
```yaml
sample:
name: Bluetooth Mesh Demo
tests:
sample.bluetooth.mesh_demo:
harness: bluetooth
platform_allow:
- bbc_microbit
- qemu_x86
- nrf52840dk/nrf52840
- nrf5340dk/nrf5340/cpuapp/ns
integration_platforms:
- qemu_x86
- bbc_microbit
tags: bluetooth
``` | /content/code_sandbox/samples/bluetooth/mesh_demo/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 88 |
```c
/* main.c - Application main entry point */
/*
*
*/
#include <zephyr/sys/printk.h>
#include <zephyr/settings/settings.h>
#include <zephyr/bluetooth/bluetooth.h>
#include <zephyr/bluetooth/mesh.h>
#include "board.h"
#define MOD_LF 0x0000
#define GROUP_ADDR 0xc000
#define PUBLISHER_ADDR 0x000f
#define OP_... | /content/code_sandbox/samples/bluetooth/mesh_demo/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,914 |
```c
/* microbit.c - BBC micro:bit specific hooks */
/*
*
*/
#include <zephyr/drivers/gpio.h>
#include <soc.h>
#include <zephyr/sys/printk.h>
#include <ctype.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/pwm.h>
#include <zephyr/display/mb_display.h>
#include <zephyr/bluetooth/mesh.h>
#include "boa... | /content/code_sandbox/samples/bluetooth/mesh_demo/src/microbit.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,314 |
```unknown
# Enable PSA as a crypto backend in host
CONFIG_BT_USE_PSA_API=y
``` | /content/code_sandbox/samples/bluetooth/mesh_demo/boards/nrf5340dk_nrf5340_cpuapp_ns.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 19 |
```objective-c
/* board.h - Board-specific hooks */
/*
*
*/
#if !defined(NODE_ADDR)
#define NODE_ADDR 0x0b0c
#endif
void board_button_1_pressed(void);
uint16_t board_set_target(void);
void board_play(const char *str);
#if defined(CONFIG_BOARD_BBC_MICROBIT)
int board_init(uint16_t *addr);
void board_play_tune(cons... | /content/code_sandbox/samples/bluetooth/mesh_demo/src/board.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 193 |
```unknown
&sw_pwm {
status = "okay";
channel-gpios = <&edge_connector 0 GPIO_ACTIVE_HIGH>;
};
``` | /content/code_sandbox/samples/bluetooth/mesh_demo/boards/bbc_microbit.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 25 |
```unknown
/*
*
*/
&lptmr1 {
interrupt-parent = <&intmux0_ch2>;
};
&intmux0_ch2 {
status = "okay";
};
&intmux0_ch3 {
status = "okay";
};
&generic_fsk {
interrupt-parent = <&intmux0_ch3>;
status = "okay";
};
``` | /content/code_sandbox/samples/bluetooth/mesh_demo/boards/rv32m1_vega_openisa_rv32m1_ri5cy.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 72 |
```unknown
CONFIG_ISR_STACK_SIZE=768
CONFIG_MAIN_STACK_SIZE=512
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=1200
CONFIG_GPIO=y
CONFIG_DISPLAY=y
CONFIG_MICROBIT_DISPLAY=y
CONFIG_PWM=y
CONFIG_PWM_NRF_SW=y
CONFIG_BT_RX_STACK_SIZE=1280
CONFIG_BT_CTLR_DUP_FILTER_LEN=0
CONFIG_BT_PHY_UPDATE=n
CONFIG_BT_DATA_LEN_UPDATE=n
CONFIG_BT_EXT... | /content/code_sandbox/samples/bluetooth/mesh_demo/boards/bbc_microbit.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 172 |
```unknown
/*
*
*/
&radio {
status = "okay";
/* This is an example number of antennas that may be available
* on antenna matrix board.
*/
dfe-antenna-num = <10>;
/* This is an example switch pattern that will be used to set an
* antenna for Tx PDU (period before start of Tx CTE).
*/
dfe-pdu-antenna = <0... | /content/code_sandbox/samples/bluetooth/hci_ipc/nrf5340_cpunet_df-bt_ll_sw_split.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 197 |
```unknown
CONFIG_IPC_SERVICE=y
CONFIG_MBOX=y
CONFIG_ISR_STACK_SIZE=1024
CONFIG_IDLE_STACK_SIZE=256
CONFIG_MAIN_STACK_SIZE=512
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
CONFIG_IPC_SERVICE_BACKEND_RPMSG_WQ_STACK_SIZE=512
CONFIG_HEAP_MEM_POOL_SIZE=8192
CONFIG_BT=y
CONFIG_BT_HCI_RAW=y
CONFIG_BT_MAX_CONN=2
# Workaround: Un... | /content/code_sandbox/samples/bluetooth/hci_ipc/nrf5340_cpunet_df-bt_ll_sw_split.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 577 |
```unknown
CONFIG_IPC_SERVICE=y
CONFIG_MBOX=y
CONFIG_ISR_STACK_SIZE=1024
CONFIG_IDLE_STACK_SIZE=256
CONFIG_MAIN_STACK_SIZE=512
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
CONFIG_IPC_SERVICE_BACKEND_RPMSG_WQ_STACK_SIZE=512
CONFIG_HEAP_MEM_POOL_SIZE=8192
CONFIG_BT=y
CONFIG_BT_HCI_RAW=y
# Workaround: Unable to allocate comm... | /content/code_sandbox/samples/bluetooth/hci_ipc/nrf5340_cpunet_iso_receive-bt_ll_sw_split.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 262 |
```unknown
CONFIG_IPC_SERVICE=y
CONFIG_MBOX=y
CONFIG_ISR_STACK_SIZE=1024
CONFIG_IDLE_STACK_SIZE=256
CONFIG_MAIN_STACK_SIZE=512
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
CONFIG_IPC_SERVICE_BACKEND_RPMSG_WQ_STACK_SIZE=512
CONFIG_HEAP_MEM_POOL_SIZE=8192
CONFIG_BT=y
CONFIG_BT_HCI_RAW=y
CONFIG_BT_MAX_CONN=2
# Workaround: Un... | /content/code_sandbox/samples/bluetooth/hci_ipc/nrf5340_cpunet_bis-bt_ll_sw_split.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 679 |
```unknown
CONFIG_IPC_SERVICE=y
CONFIG_MBOX=y
CONFIG_ISR_STACK_SIZE=1024
CONFIG_IDLE_STACK_SIZE=256
CONFIG_MAIN_STACK_SIZE=512
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
CONFIG_IPC_SERVICE_BACKEND_RPMSG_WQ_STACK_SIZE=512
CONFIG_HEAP_MEM_POOL_SIZE=8192
CONFIG_BT=y
CONFIG_BT_HCI_RAW=y
CONFIG_BT_MAX_CONN=2
# Workaround: Un... | /content/code_sandbox/samples/bluetooth/hci_ipc/nrf5340_cpunet_cis-bt_ll_sw_split.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 631 |
```unknown
CONFIG_IPC_SERVICE=y
CONFIG_MBOX=y
CONFIG_ISR_STACK_SIZE=1024
CONFIG_IDLE_STACK_SIZE=256
CONFIG_MAIN_STACK_SIZE=512
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
CONFIG_IPC_SERVICE_BACKEND_RPMSG_WQ_STACK_SIZE=512
CONFIG_HEAP_MEM_POOL_SIZE=8192
CONFIG_BT=y
CONFIG_BT_HCI_RAW=y
# Workaround: Unable to allocate comm... | /content/code_sandbox/samples/bluetooth/hci_ipc/nrf5340_cpunet_iso_peripheral-bt_ll_sw_split.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 414 |
```unknown
CONFIG_IPC_SERVICE=y
CONFIG_MBOX=y
CONFIG_HEAP_MEM_POOL_SIZE=8192
CONFIG_MAIN_STACK_SIZE=512
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
CONFIG_BT=y
CONFIG_BT_HCI_RAW=y
CONFIG_BT_MAX_CONN=16
# Workaround: Unable to allocate command buffer when using K_NO_WAIT since
# Host number of completed commands does no... | /content/code_sandbox/samples/bluetooth/hci_ipc/nrf5340_cpunet_bt_mesh-bt_ll_sw_split.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 186 |
```unknown
CONFIG_IPC_SERVICE=y
CONFIG_MBOX=y
CONFIG_ISR_STACK_SIZE=1024
CONFIG_IDLE_STACK_SIZE=256
CONFIG_MAIN_STACK_SIZE=512
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
CONFIG_IPC_SERVICE_BACKEND_RPMSG_WQ_STACK_SIZE=512
CONFIG_HEAP_MEM_POOL_SIZE=8192
CONFIG_BT=y
CONFIG_BT_HCI_RAW=y
# Workaround: Unable to allocate comm... | /content/code_sandbox/samples/bluetooth/hci_ipc/nrf5340_cpunet_iso_broadcast-bt_ll_sw_split.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 291 |
```unknown
CONFIG_LOG=y
CONFIG_ASSERT=y
CONFIG_DEBUG_INFO=y
CONFIG_EXCEPTION_STACK_TRACE=y
``` | /content/code_sandbox/samples/bluetooth/hci_ipc/debug_overlay.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 20 |
```restructuredtext
.. _bluetooth-hci-ipc-sample:
Bluetooth: HCI IPC
##################
Overview
********
This sample exposes :ref:`bluetooth_controller` support
to another device or CPU using IPC subsystem.
Requirements
************
* A board with IPC subsystem and Bluetooth LE support
Building and Running
*****... | /content/code_sandbox/samples/bluetooth/hci_ipc/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 279 |
```unknown
CONFIG_IPC_SERVICE=y
CONFIG_MBOX=y
CONFIG_ISR_STACK_SIZE=1024
CONFIG_IDLE_STACK_SIZE=256
CONFIG_MAIN_STACK_SIZE=512
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
CONFIG_IPC_SERVICE_BACKEND_RPMSG_WQ_STACK_SIZE=512
CONFIG_HEAP_MEM_POOL_SIZE=8192
CONFIG_BT=y
CONFIG_BT_HCI_RAW=y
# Workaround: Unable to allocate comm... | /content/code_sandbox/samples/bluetooth/hci_ipc/nrf5340_cpunet_iso_central-bt_ll_sw_split.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 477 |
```unknown
CONFIG_IPC_SERVICE=y
CONFIG_MBOX=y
CONFIG_HEAP_MEM_POOL_SIZE=8192
CONFIG_MAIN_STACK_SIZE=512
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
CONFIG_BT=y
CONFIG_BT_HCI_RAW=y
CONFIG_BT_MAX_CONN=16
# Workaround: Unable to allocate command buffer when using K_NO_WAIT since
# Host number of completed commands does no... | /content/code_sandbox/samples/bluetooth/hci_ipc/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 153 |
```unknown
CONFIG_IPC_SERVICE=y
CONFIG_MBOX=y
CONFIG_ISR_STACK_SIZE=1024
CONFIG_IDLE_STACK_SIZE=256
CONFIG_MAIN_STACK_SIZE=512
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
CONFIG_IPC_SERVICE_BACKEND_RPMSG_WQ_STACK_SIZE=512
CONFIG_HEAP_MEM_POOL_SIZE=8192
CONFIG_CBPRINTF_REDUCED_INTEGRAL=y
CONFIG_ISR_TABLES_LOCAL_DECLARATION... | /content/code_sandbox/samples/bluetooth/hci_ipc/nrf5340_cpunet_iso-bt_ll_sw_split.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 813 |
```unknown
/* Keep default IRQ priority low for peripherals to reduce Radio ISR latency.
* ARM Cortex-M4 lowest priority value of 5, i.e. considering Zephyr reserved 2
* levels for Exceptions and ZLI (if enabled).
*/
#define NRF_DEFAULT_IRQ_PRIORITY 5
``` | /content/code_sandbox/samples/bluetooth/hci_ipc/dts/arm/nordic/override.dtsi | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 58 |
```yaml
sample:
description: Allows Zephyr to provide Bluetooth connectivity via IPC
name: Bluetooth HCI IPC
tests:
sample.bluetooth.hci_ipc:
harness: bluetooth
tags: bluetooth
platform_allow:
- nrf5340dk/nrf5340/cpunet
- nrf5340_audio_dk/nrf5340/cpunet
- nrf5340bsim/nrf5340/cpunet
... | /content/code_sandbox/samples/bluetooth/hci_ipc/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,269 |
```restructuredtext
.. _bt_handsfree_ag:
Bluetooth: Handsfree Audio Gateway
##################################
Overview
********
Application demonstrating usage of the Hands-free Audio Gateway (AG) APIs.
Requirements
************
* Running on the host with Bluetooth BR/EDR (Classic) support, or
* A board with Blue... | /content/code_sandbox/samples/bluetooth/handsfree_ag/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 123 |
```unknown
#
#
#
mainmenu "Bluetooth: handsfree AG"
config BT_HFP_AG_DISCOVER_RESULT_COUNT
int "Maximum result count per device discovery"
default 10
config BT_HFP_AG_CALL_OUTGOING
bool "The simulate call: outgoing (y), incoming (n)"
config BT_HFP_AG_START_CALL_DELAY_TIME
int "The delay time used to start simul... | /content/code_sandbox/samples/bluetooth/handsfree_ag/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 145 |
```unknown
CONFIG_BT=y
CONFIG_BT_CLASSIC=y
CONFIG_BT_RFCOMM=y
CONFIG_BT_HFP_AG=y
CONFIG_BT_CENTRAL=y
CONFIG_BT_DEVICE_NAME="Handsfree-ag"
``` | /content/code_sandbox/samples/bluetooth/handsfree_ag/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 42 |
```yaml
sample:
name: Bluetooth Handsfree Audio Gateway
tests:
sample.bluetooth.handsfree.ag:
harness: bluetooth
platform_allow:
- qemu_cortex_m3
- qemu_x86
tags: bluetooth
integration_platforms:
- qemu_cortex_m3
extra_configs:
- CONFIG_BT_HFP_AG_CALL_OUTGOING=y
``` | /content/code_sandbox/samples/bluetooth/handsfree_ag/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 80 |
```c
/*
*
*/
#include <errno.h>
#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include <zephyr/device.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/util.h>
#include <zephyr/ipc/ipc_service.h>
#include <zephyr/net/buf.h>
#include <zephyr/bluetooth/bluetooth.h>
#i... | /content/code_sandbox/samples/bluetooth/hci_ipc/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,822 |
```unknown
/*
*
*/
/ {
chosen {
zephyr,sram = &dtcm;
};
};
``` | /content/code_sandbox/samples/bluetooth/handsfree_ag/boards/mimxrt1170_evk_mimxrt1176_cm7_B.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 23 |
```unknown
#select NXP NW612 Chipset
CONFIG_BT_NXP_NW612=y
``` | /content/code_sandbox/samples/bluetooth/handsfree_ag/boards/mimxrt1040_evk_mimxrt1042.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 19 |
```unknown
#select NXP NW612 Chipset
CONFIG_BT_NXP_NW612=y
``` | /content/code_sandbox/samples/bluetooth/handsfree_ag/boards/mimxrt1170_evk_mimxrt1176_cm7_B.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 19 |
```restructuredtext
.. _bluetooth-scan-adv-sample:
Bluetooth: Scan & Advertise
###########################
Overview
********
A simple application demonstrating combined BLE Broadcaster & Observer
role functionality. The application will periodically send out
advertising packets with a manufacturer data element. The ... | /content/code_sandbox/samples/bluetooth/scan_adv/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 158 |
```unknown
CONFIG_BT=y
CONFIG_BT_BROADCASTER=y
CONFIG_BT_OBSERVER=y
CONFIG_LOG=y
``` | /content/code_sandbox/samples/bluetooth/scan_adv/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 22 |
```yaml
sample:
name: Bluetooth Scan & Advertise
description: Demonstrates combined BLE Broadcaster & Observer role functionality
tests:
sample.bluetooth.scan_adv:
harness: bluetooth
platform_allow:
- qemu_cortex_m3
- qemu_x86
tags: bluetooth
integration_platforms:
- qemu_cortex_... | /content/code_sandbox/samples/bluetooth/scan_adv/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 75 |
```c
/* main.c - Application main entry point */
/*
*
*/
#include <zephyr/types.h>
#include <stddef.h>
#include <zephyr/sys/printk.h>
#include <zephyr/sys/util.h>
#include <zephyr/bluetooth/bluetooth.h>
static uint8_t mfg_data[] = { 0xff, 0xff, 0x00 };
static const struct bt_data ad[] = {
BT_DATA(BT_DATA_MANUFA... | /content/code_sandbox/samples/bluetooth/scan_adv/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 440 |
```unknown
/*
*
*/
&lptmr1 {
interrupt-parent = <&intmux0_ch2>;
};
&intmux0_ch2 {
status = "okay";
};
&intmux0_ch3 {
status = "okay";
};
&generic_fsk {
interrupt-parent = <&intmux0_ch3>;
status = "okay";
};
``` | /content/code_sandbox/samples/bluetooth/scan_adv/boards/rv32m1_vega_openisa_rv32m1_ri5cy.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 72 |
```restructuredtext
.. _bluetooth-periodic-advertising-sample:
Bluetooth: Periodic Advertising
###############################
Overview
********
A simple application demonstrating the BLE Periodic Advertising functionality.
Requirements
************
* A board with BLE support
Building and Running
****************... | /content/code_sandbox/samples/bluetooth/periodic_adv/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 136 |
```unknown
CONFIG_BT=y
CONFIG_BT_EXT_ADV=y
CONFIG_BT_PER_ADV=y
CONFIG_LOG=y
CONFIG_BT_DEVICE_NAME="Test Periodic Advertising"
``` | /content/code_sandbox/samples/bluetooth/periodic_adv/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 31 |
```yaml
sample:
name: Bluetooth Periodic Advertising
tests:
sample.bluetooth.periodic_adv:
harness: bluetooth
platform_allow:
- qemu_cortex_m3
- qemu_x86
- nrf52_bsim
- nrf52dk/nrf52832
tags: bluetooth
integration_platforms:
- qemu_cortex_m3
``` | /content/code_sandbox/samples/bluetooth/periodic_adv/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 80 |
```c
/* main.c - Application main entry point */
/*
*
*/
#include <zephyr/types.h>
#include <stddef.h>
#include <string.h>
#include <errno.h>
#include <zephyr/sys/printk.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/kernel.h>
#include <zephyr/bluetooth/bluetooth.h>
#include <zephyr/bluetooth/conn.h>
#inclu... | /content/code_sandbox/samples/bluetooth/handsfree_ag/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,585 |
```restructuredtext
.. _bluetooth-periodic-advertising-rsp-sample:
Bluetooth: Periodic Advertising with Responses (PAwR) Advertiser
################################################################
Overview
********
A simple application demonstrating the BLE Periodic Advertising with
Responses Advertiser functionalit... | /content/code_sandbox/samples/bluetooth/periodic_adv_rsp/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 264 |
```c
/*
*
*/
#include <zephyr/bluetooth/bluetooth.h>
static uint8_t mfg_data[] = { 0xff, 0xff, 0x00 };
static const struct bt_data per_adv_ad[] = {
BT_DATA(BT_DATA_MANUFACTURER_DATA, mfg_data, 3),
};
static const struct bt_data ad[] = {
BT_DATA(BT_DATA_NAME_COMPLETE, CONFIG_BT_DEVICE_NAME, sizeof(CONFIG_BT_DEVI... | /content/code_sandbox/samples/bluetooth/periodic_adv/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 646 |
```unknown
CONFIG_BT=y
CONFIG_BT_BROADCASTER=y
CONFIG_BT_EXT_ADV=y
CONFIG_BT_PER_ADV=y
CONFIG_BT_DEVICE_NAME="PAwR adv sample"
CONFIG_BT_MAX_CONN=1
CONFIG_BT_CENTRAL=y
CONFIG_BT_PER_ADV_SYNC_TRANSFER_SENDER=y
CONFIG_BT_PER_ADV_RSP=y
CONFIG_BT_REMOTE_INFO=y
CONFIG_BT_GATT_CLIENT=y
CONFIG_LOG=y
``` | /content/code_sandbox/samples/bluetooth/periodic_adv_rsp/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 83 |
```yaml
sample:
name: Bluetooth Periodic Advertising with Responses Advertiser
tests:
sample.bluetooth.periodic_adv_rsp:
harness: bluetooth
platform_allow:
- qemu_cortex_m3
- qemu_x86
tags: bluetooth
integration_platforms:
- qemu_cortex_m3
``` | /content/code_sandbox/samples/bluetooth/periodic_adv_rsp/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 66 |
```unknown
CONFIG_BT=y
CONFIG_BT_OBSERVER=y
# Enable Extended Scanning
CONFIG_BT_EXT_ADV=y
CONFIG_BT_EXT_SCAN_BUF_SIZE=1650
# Zephyr Bluetooth LE Controller needs 16 event buffers to generate Extended
# Advertising Report for receiving the complete 1650 bytes of data
CONFIG_BT_BUF_EVT_RX_COUNT=16
# Set maximum scan ... | /content/code_sandbox/samples/bluetooth/observer/prj_extended.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 129 |
```restructuredtext
.. _bluetooth-observer-sample:
Bluetooth: Observer
###################
Overview
********
A simple application demonstrating Bluetooth Low Energy Observer role
functionality. The application will periodically scan for devices nearby.
If any found, prints the address of the device, the RSSI value, ... | /content/code_sandbox/samples/bluetooth/observer/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 171 |
```unknown
CONFIG_BT=y
CONFIG_BT_OBSERVER=y
``` | /content/code_sandbox/samples/bluetooth/observer/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 11 |
```yaml
sample:
name: observer
tests:
sample.bluetooth.observer:
harness: bluetooth
platform_allow:
- qemu_cortex_m3
- qemu_x86
- nrf52840dk/nrf52840
integration_platforms:
- qemu_cortex_m3
tags: bluetooth
sample.bluetooth.observer.extended:
harness: bluetooth
extra... | /content/code_sandbox/samples/bluetooth/observer/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 142 |
```c
/*
*
*/
#include <zephyr/sys/printk.h>
#include <zephyr/bluetooth/bluetooth.h>
#include <zephyr/bluetooth/hci.h>
#define NAME_LEN 30
static void device_found(const bt_addr_le_t *addr, int8_t rssi, uint8_t type,
struct net_buf_simple *ad)
{
char addr_str[BT_ADDR_LE_STR_LEN];
bt_addr_le_to_str(addr, addr... | /content/code_sandbox/samples/bluetooth/observer/src/observer.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 861 |
```c
/*
*
*/
#include <zephyr/sys/printk.h>
#include <zephyr/bluetooth/bluetooth.h>
int observer_start(void);
int main(void)
{
int err;
printk("Starting Observer Demo\n");
/* Initialize the Bluetooth Subsystem */
err = bt_enable(NULL);
if (err) {
printk("Bluetooth init failed (err %d)\n", err);
return 0... | /content/code_sandbox/samples/bluetooth/observer/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 109 |
```unknown
/*
*
*/
&lptmr1 {
interrupt-parent = <&intmux0_ch2>;
};
&intmux0_ch2 {
status = "okay";
};
&intmux0_ch3 {
status = "okay";
};
&generic_fsk {
interrupt-parent = <&intmux0_ch3>;
status = "okay";
};
``` | /content/code_sandbox/samples/bluetooth/observer/boards/rv32m1_vega_openisa_rv32m1_ri5cy.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 72 |
```restructuredtext
.. _bluetooth-periodic-advertising-conn-sample:
Bluetooth: Periodic Advertising Connection Procedure - Initiator
################################################################
Overview
********
A simple application demonstrating the initiator side of the BLE
Periodic Advertising Connection Proc... | /content/code_sandbox/samples/bluetooth/periodic_adv_conn/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 219 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.