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 <zephyr/bluetooth/att.h> #include <zephyr/bluetooth/bluetooth.h> #include <zephyr/bluetooth/conn.h> #include <zephyr/bluetooth/gatt.h> #include <zephyr/bluetooth/hci.h> #define NUM_RSP_SLOTS 5 #define NUM_SUBEVENTS 5 #define PACKET_SIZE 5 #define NAME_LEN 30 static K_SEM_DEFINE(sem_con...
/content/code_sandbox/samples/bluetooth/periodic_adv_rsp/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,666
```unknown CONFIG_BT=y CONFIG_BT_BROADCASTER=y CONFIG_BT_EXT_ADV=y CONFIG_BT_PER_ADV=y CONFIG_BT_DEVICE_NAME="PAwR conn sample" CONFIG_BT_PER_ADV_SYNC_TRANSFER_SENDER=y CONFIG_BT_PER_ADV_RSP=y CONFIG_BT_MAX_CONN=1 CONFIG_BT_CENTRAL=y CONFIG_BT_PRIVACY=y CONFIG_BT_SMP=y CONFIG_LOG=y ```
/content/code_sandbox/samples/bluetooth/periodic_adv_conn/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
82
```yaml sample: name: Bluetooth Periodic Advertising Connection Procedure tests: sample.bluetooth.periodic_adv_conn: harness: bluetooth platform_allow: - qemu_cortex_m3 - qemu_x86 tags: bluetooth integration_platforms: - qemu_cortex_m3 ```
/content/code_sandbox/samples/bluetooth/periodic_adv_conn/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
64
```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_connectionless_rx/overlay-aod.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
42
```restructuredtext .. _bluetooth_direction_finding_connectionless_rx: Bluetooth: Direction Finding Periodic Advertising Locator ######################################################### Overview ******** A simple application demonstrating the BLE Direction Finding CTE Locator functionality by receiving and sampling...
/content/code_sandbox/samples/bluetooth/direction_finding_connectionless_rx/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
814
```c /* * */ #include <zephyr/bluetooth/bluetooth.h> #include <zephyr/bluetooth/conn.h> #include <zephyr/bluetooth/gap.h> #include <zephyr/bluetooth/hci.h> #define NUM_RSP_SLOTS 5 #define NUM_SUBEVENTS 5 #define PACKET_SIZE 5 #define SUBEVENT_INTERVAL 0x30 static const struct bt_le_per_adv_param per_adv_para...
/content/code_sandbox/samples/bluetooth/periodic_adv_conn/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,581
```unknown # # # menu "DF Connectionless Locator App" config DF_LOCATOR_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_connectionless_rx/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
71
```unknown CONFIG_BT=y CONFIG_BT_DEVICE_NAME="DF Connectionless Locator App" CONFIG_BT_EXT_ADV=y CONFIG_BT_PER_ADV_SYNC=y CONFIG_BT_OBSERVER=y # Enable Direction Finding Feature including AoA and AoD CONFIG_BT_DF=y CONFIG_BT_DF_CONNECTIONLESS_CTE_RX=y ```
/content/code_sandbox/samples/bluetooth/direction_finding_connectionless_rx/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
62
```yaml sample: name: Direction Finding Connectionless Locator tests: sample.bluetooth.direction_finding_connectionless_rx: harness: bluetooth platform_allow: - nrf52833dk/nrf52833 - nrf52833dk/nrf52820 - nrf5340dk/nrf5340/cpuapp tags: bluetooth integration_platforms: - nrf52...
/content/code_sandbox/samples/bluetooth/direction_finding_connectionless_rx/sample.yaml
yaml
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 Rx PDU (period before start of Rx CTE). */ dfe-pdu-antenna = <0...
/content/code_sandbox/samples/bluetooth/direction_finding_connectionless_rx/boards/nrf52833dk_nrf52833.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
197
```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 Rx PDU (period before start of Rx CTE). */ dfe-pdu-antenna = <0...
/content/code_sandbox/samples/bluetooth/direction_finding_connectionless_rx/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 CONFIG_BT_CTLR_ADV_EXT=y CONFIG_BT_CTLR_SYNC_PERIODIC=y # Enable Direction Finding Feature including AoA and AoD CONFIG_BT_CTLR_DF=y # Disable Direction Finding TX mode CONFIG_BT_CTLR_DF_ANT_SWITCH_TX=n CONFIG_BT_CTLR_DF_ADV_CTE_TX=n CONFIG_BT_CTLR_DF_PER_SCAN_CTE...
/content/code_sandbox/samples/bluetooth/direction_finding_connectionless_rx/boards/nrf52833dk_nrf52833.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
92
```unknown CONFIG_BT_CTLR=y CONFIG_BT_LL_SW_SPLIT=y CONFIG_BT_CTLR_ADV_EXT=y CONFIG_BT_CTLR_SYNC_PERIODIC=y # Enable Direction Finding Feature including AoA and AoD CONFIG_BT_CTLR_DF=y # Disable Direction Finding TX mode CONFIG_BT_CTLR_DF_ANT_SWITCH_TX=n CONFIG_BT_CTLR_DF_ADV_CTE_TX=n # Limit maximum number of CTEs...
/content/code_sandbox/samples/bluetooth/direction_finding_connectionless_rx/boards/nrf52833dk_nrf52820.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
111
```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_connectionless_rx/boards/nrf5340dk_nrf5340_cpuapp.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
117
```restructuredtext .. _bluetooth_central_multilink: Bluetooth: Central ################## Overview ******** Application demonstrating BLE Central role functionality by scanning for other BLE devices and establishing connection to up to 62 peripherals with a strong enough signal. Requirements ************ * BlueZ ...
/content/code_sandbox/samples/bluetooth/central_multilink/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
123
```unknown mainmenu "Bluetooth: Central Multilink" config SAMPLE_CONN_ITERATIONS int "Connection iterations" range 0 255 default 0 help Number of times to connect and disconnect to peripheral_identity sample. source "Kconfig.zephyr" ```
/content/code_sandbox/samples/bluetooth/central_multilink/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
58
```unknown CONFIG_BT=y CONFIG_BT_CENTRAL=y CONFIG_BT_AUTO_PHY_UPDATE=n CONFIG_BT_PRIVACY=y CONFIG_BT_MAX_CONN=62 CONFIG_BT_BUF_ACL_RX_COUNT=63 # CONFIG_BT_GATT_CLIENT=y # CONFIG_BT_SMP=y # CONFIG_BT_MAX_PAIRED=62 # CONFIG_BT_EXT_ADV=y # CONFIG_BT_CTLR_ADV_EXT=y ```
/content/code_sandbox/samples/bluetooth/central_multilink/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
82
```c /* * */ #include <stddef.h> #include <errno.h> #include <zephyr/kernel.h> #include <zephyr/sys/printk.h> #include <zephyr/sys/byteorder.h> #include <zephyr/sys/util.h> #include <zephyr/bluetooth/bluetooth.h> #include <zephyr/bluetooth/gap.h> #include <zephyr/bluetooth/direction.h> #include <zephyr/bluetooth/h...
/content/code_sandbox/samples/bluetooth/direction_finding_connectionless_rx/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,361
```yaml sample: name: Bluetooth Central Multilink tests: sample.bluetooth.central.multilink: harness: bluetooth platform_allow: - qemu_cortex_m3 - qemu_x86 - nrf52840dk/nrf52840 integration_platforms: - qemu_cortex_m3 tags: bluetooth ```
/content/code_sandbox/samples/bluetooth/central_multilink/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 <stdint.h> int init_central(uint8_t iterations); int main(void) { (void)init_central(CONFIG_SAMPLE_CONN_ITERATIONS); return 0; } ```
/content/code_sandbox/samples/bluetooth/central_multilink/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
48
```restructuredtext .. _peripheral_gatt_write: Bluetooth: Peripheral GATT Write ################################ Overview ******** Similar to the :ref:`Peripheral <ble_peripheral>` sample, except that this application uses GATT Write Without Response. Requirements ************ * BlueZ running on the host, or * A ...
/content/code_sandbox/samples/bluetooth/peripheral_gatt_write/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
120
```unknown CONFIG_BT=y CONFIG_BT_PERIPHERAL=y CONFIG_BT_SMP=y CONFIG_BT_GATT_CLIENT=y CONFIG_BT_DEVICE_NAME="Zephyr GATT Write" CONFIG_BT_BUF_ACL_RX_SIZE=255 CONFIG_BT_BUF_ACL_TX_SIZE=251 CONFIG_BT_BUF_CMD_TX_SIZE=255 CONFIG_BT_BUF_EVT_DISCARDABLE_SIZE=255 CONFIG_BT_L2CAP_TX_MTU=247 CONFIG_LOG=y ```
/content/code_sandbox/samples/bluetooth/peripheral_gatt_write/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
90
```yaml sample: name: Bluetooth Peripheral GATT Write tests: sample.bluetooth.peripheral_gatt_write: harness: bluetooth platform_allow: - qemu_cortex_m3 - qemu_x86 - nrf52_bsim tags: bluetooth integration_platforms: - qemu_cortex_m3 ```
/content/code_sandbox/samples/bluetooth/peripheral_gatt_write/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
72
```c /* * */ #include <stdint.h> extern uint32_t peripheral_gatt_write(uint32_t count); int main(void) { (void)peripheral_gatt_write(0U); return 0; } ```
/content/code_sandbox/samples/bluetooth/peripheral_gatt_write/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
44
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/sys/printk.h> #include <zephyr/bluetooth/bluetooth.h> #include <zephyr/bluetooth/conn.h> #include <zephyr/bluetooth/gatt.h> #include <zephyr/bluetooth/hci.h> extern int mtu_exchange(struct bt_conn *conn); extern int write_cmd(struct bt_conn *conn); extern st...
/content/code_sandbox/samples/bluetooth/peripheral_gatt_write/src/peripheral_gatt_write.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
624
```c /* main.c - Application main entry point */ /* * */ #include <zephyr/types.h> #include <stddef.h> #include <errno.h> #include <zephyr/kernel.h> #include <zephyr/sys/printk.h> #include <zephyr/bluetooth/bluetooth.h> #include <zephyr/bluetooth/hci.h> #include <zephyr/bluetooth/conn.h> #include <zephyr/bluetooth...
/content/code_sandbox/samples/bluetooth/central_multilink/src/central_multilink.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,164
```restructuredtext .. _ble_direct_adv: Bluetooth: Direct Advertising ############################# Overview ******** Application demonstrating the BLE Direct Advertising capability. If no device is bonded to the peripheral, casual advertising will be performed. Once bonded, on every subsequent boot direct advertisi...
/content/code_sandbox/samples/bluetooth/direct_adv/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
215
```unknown # Increased stack due to settings API usage CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048 CONFIG_BT=y CONFIG_LOG=y CONFIG_BT_SMP=y CONFIG_BT_SIGNING=y CONFIG_BT_PERIPHERAL=y CONFIG_BT_DIS=y CONFIG_BT_ATT_PREPARE_COUNT=1 CONFIG_BT_PRIVACY=y CONFIG_BT_DEVICE_NAME="Direct Adv" CONFIG_BT_DEVICE_APPEARANCE=833 CONFIG...
/content/code_sandbox/samples/bluetooth/direct_adv/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
123
```yaml sample: name: Bluetooh Direct Advertising tests: sample.bluetooth.direct_adv: harness: bluetooth platform_allow: qemu_x86 integration_platforms: - qemu_x86 tags: bluetooth ```
/content/code_sandbox/samples/bluetooth/direct_adv/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
49
```restructuredtext .. _bluetooth-hci-usb-h4-sample: Bluetooth: HCI H4 over USB ########################## Overview ******** Make a USB H4 Bluetooth dongle out of Zephyr. Requires USB device support from the board it runs on (e.g. :ref:`nrf52840dk_nrf52840` supports both BLE and USB). Requirements ************ * B...
/content/code_sandbox/samples/bluetooth/hci_usb_h4/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
159
```unknown CONFIG_STDOUT_CONSOLE=y CONFIG_GPIO=y CONFIG_SERIAL=y CONFIG_UART_INTERRUPT_DRIVEN=y CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n CONFIG_USB_DEVICE_STACK=y CONFIG_USB_DEVICE_PID=0x000C CONFIG_USB_DEVICE_BT_H4=y # Workaround: Unable to allocate command buffer when using K_NO_WAIT since # Host number of completed ...
/content/code_sandbox/samples/bluetooth/hci_usb_h4/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
93
```yaml sample: name: Bluetooth over USB sample tests: sample.bluetooth.hci_usb_h4: harness: bluetooth depends_on: - usb_device - ble tags: - usb - bluetooth # FIXME: exclude due to build error platform_exclude: 96b_carbon/stm32f401xe stm32l562e_dk ```
/content/code_sandbox/samples/bluetooth/hci_usb_h4/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
84
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/sys/printk.h> #include <zephyr/usb/usb_device.h> int main(void) { int ret; ret = usb_enable(NULL); if (ret != 0) { printk("Failed to enable USB"); return 0; } printk("Bluetooth H:4 over USB sample\n"); return 0; } ```
/content/code_sandbox/samples/bluetooth/hci_usb_h4/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
87
```unknown CONFIG_BT_EXT_ADV=y # Increase Scan Data Length, as Complete Local Name is placed in the # AUX_ADV_IND PDU compared to when it is placed in ADV_SCAN_IND PDU in the case # of legacy advertising. CONFIG_BT_CTLR_SCAN_DATA_LEN_MAX=36 ```
/content/code_sandbox/samples/bluetooth/central_hr/overlay-extended.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
60
```c /* * */ #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/sys/reboot.h> #include <zephyr/settings/settings.h> #include <zephyr/bluetooth/bluetooth.h> #include <zephyr/bluetooth/hci.h> #include <z...
/content/code_sandbox/samples/bluetooth/direct_adv/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,238
```cmake if(SB_CONFIG_NET_CORE_IMAGE_HCI_IPC) # For builds in the nrf5340, we build the netcore image with the controller set(NET_APP hci_ipc) set(NET_APP_SRC_DIR ${ZEPHYR_BASE}/samples/bluetooth/${NET_APP}) ExternalZephyrProject_Add( APPLICATION ${NET_APP} SOURCE_DIR ${NET_APP_SRC_DIR} BOARD ${SB_C...
/content/code_sandbox/samples/bluetooth/central_hr/sysbuild.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
166
```unknown source "share/sysbuild/Kconfig" config NET_CORE_BOARD string default "nrf5340dk/nrf5340/cpunet" if $(BOARD) = "nrf5340dk" default "nrf5340_audio_dk/nrf5340/cpunet" if $(BOARD) = "nrf5340_audio_dk" default "nrf5340bsim/nrf5340/cpunet" if $(BOARD_TARGET_STRING) = "NRF5340BSIM_NRF5340_CPUAPP" config NET_...
/content/code_sandbox/samples/bluetooth/central_hr/Kconfig.sysbuild
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
141
```unknown CONFIG_BT_EXT_ADV=y # Enable Coded PHY support CONFIG_BT_CTLR_PHY_CODED=y # Disable auto PHY update, to switch to 2M PHY CONFIG_BT_AUTO_PHY_UPDATE=n # Increase Scan Data Length, as Complete Local Name is placed in the # AUX_ADV_IND PDU compared to when it is placed in ADV_SCAN_IND PDU in the case # of leg...
/content/code_sandbox/samples/bluetooth/central_hr/overlay-phy_coded.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
97
```restructuredtext .. _bluetooth_central_hr: Bluetooth: Central / Heart-rate Monitor ####################################### Overview ******** Similar to the :ref:`Central <bluetooth_central>` sample, except that this application specifically looks for heart-rate monitors and reports the heart-rate readings once co...
/content/code_sandbox/samples/bluetooth/central_hr/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
131
```unknown CONFIG_BT=y CONFIG_LOG=y CONFIG_BT_CENTRAL=y CONFIG_BT_SMP=y CONFIG_BT_GATT_CLIENT=y ```
/content/code_sandbox/samples/bluetooth/central_hr/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
29
```unknown CONFIG_BT=y CONFIG_BT_SMP=y CONFIG_BT_CENTRAL=y # Drivers and peripherals CONFIG_I2C=n CONFIG_WATCHDOG=n CONFIG_PINCTRL=n CONFIG_SPI=n CONFIG_GPIO=n CONFIG_SERIAL=n # Power management CONFIG_PM=n # Interrupts CONFIG_DYNAMIC_INTERRUPTS=n CONFIG_IRQ_OFFLOAD=n # Memory protection CONFIG_THREAD_STACK_INFO=n ...
/content/code_sandbox/samples/bluetooth/central_hr/prj_minimal.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
779
```yaml sample: name: Bluetooth Central HR tests: sample.bluetooth.central_hr: arch_allow: x86 harness: bluetooth tags: bluetooth sample.bluetooth.central_hr.minimal: harness: bluetooth platform_allow: - bbc_microbit integration_platforms: - bbc_microbit extra_args: EXTRA_C...
/content/code_sandbox/samples/bluetooth/central_hr/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
420
```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/central_hr/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 # Set same the ACL RX buffer size as in hci_ipc on netcore so that # HCI Controller to Host Flowcontrol is supported. CONFIG_BT_BUF_ACL_RX_SIZE=255 ```
/content/code_sandbox/samples/bluetooth/central_hr/boards/nrf5340bsim_nrf5340_cpuapp.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
39
```cmake if(SB_CONFIG_NET_CORE_IMAGE_HCI_IPC) # For builds in the nrf5340, we build the netcore image with the controller set(NET_APP hci_ipc) set(NET_APP_SRC_DIR ${ZEPHYR_BASE}/samples/bluetooth/${NET_APP}) ExternalZephyrProject_Add( APPLICATION ${NET_APP} SOURCE_DIR ${NET_APP_SRC_DIR} BOARD ${SB_C...
/content/code_sandbox/samples/bluetooth/pbp_public_broadcast_sink/sysbuild.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
166
```unknown source "share/sysbuild/Kconfig" config NET_CORE_BOARD string default "nrf5340dk/nrf5340/cpunet" if "$(BOARD)" = "nrf5340dk" default "nrf5340_audio_dk/nrf5340/cpunet" if "$(BOARD)" = "nrf5340_audio_dk" default "nrf5340bsim/nrf5340/cpunet" if "$(BOARD_TARGET_STRING)" = "NRF5340BSIM_NRF5340_CPUAPP" confi...
/content/code_sandbox/samples/bluetooth/pbp_public_broadcast_sink/Kconfig.sysbuild
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
141
```unknown # Zephyr Bluetooth Controller CONFIG_BT_LL_SW_SPLIT=y # Enable support for Broadcast ISO Sync CONFIG_BT_CTLR_SYNC_ISO=y # Supports the highest SDU size required by any BAP LC3 presets (155) CONFIG_BT_CTLR_SYNC_ISO_PDU_LEN_MAX=155 # Supports the highest advertising data that is set in a single HCI command ...
/content/code_sandbox/samples/bluetooth/pbp_public_broadcast_sink/overlay-bt_ll_sw_split.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
125
```restructuredtext .. zephyr:code-sample:: bluetooth_public_broadcast_sink :name: Bluetooth: Public Broadcast Sink :relevant-api: bluetooth Bluetooth: Public Broadcast Sink Overview ******** Application demonstrating the LE Public Broadcast Profile sink functionality. Starts by scanning for LE Audio broadc...
/content/code_sandbox/samples/bluetooth/pbp_public_broadcast_sink/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
613
```c /* main.c - Application main entry point */ /* * */ #include <zephyr/types.h> #include <stddef.h> #include <errno.h> #include <zephyr/kernel.h> #include <zephyr/sys/printk.h> #include <zephyr/bluetooth/bluetooth.h> #include <zephyr/bluetooth/hci.h> #include <zephyr/bluetooth/conn.h> #include <zephyr/bluetooth...
/content/code_sandbox/samples/bluetooth/central_hr/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,945
```unknown CONFIG_BT=y CONFIG_LOG=y CONFIG_BT_PAC_SNK=y CONFIG_BT_PERIPHERAL=y CONFIG_BT_AUDIO=y CONFIG_UTF8=y CONFIG_BT_SMP=y CONFIG_BT_KEYS_OVERWRITE_OLDEST=y CONFIG_BT_L2CAP_TX_BUF_COUNT=20 CONFIG_BT_HCI_ACL_FLOW_CONTROL=n CONFIG_BT_AUDIO_CODEC_CAP_MAX_METADATA_SIZE=196 # CAP CONFIG_BT_CAP_ACCEPTOR=y # BAP suppor...
/content/code_sandbox/samples/bluetooth/pbp_public_broadcast_sink/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
205
```yaml sample: description: Bluetooth Low Energy Audio PBP Broadcast Sink sample name: Bluetooth Low Energy Audio PBP Broadcast Sink sample tests: sample.bluetooth.pbp_public_broadcast_sink: harness: bluetooth platform_allow: - qemu_cortex_m3 - qemu_x86 - nrf5340dk/nrf5340/cpuapp ...
/content/code_sandbox/samples/bluetooth/pbp_public_broadcast_sink/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
228
```restructuredtext .. _bluetooth-bthome-sensor-template-sample: Bluetooth: BTHome sensor template ################################# Template for a `BTHome <path_to_url`_ sensor. Requirements ************ * A board with BLE support * A BTHome compatible listener, for example `Home Assistant <path_to_url`_ with the ...
/content/code_sandbox/samples/bluetooth/bthome_sensor_template/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
163
```unknown # # # CONFIG_BT=y CONFIG_BT_PERIPHERAL=y CONFIG_BT_DEVICE_NAME="BTHome template" ```
/content/code_sandbox/samples/bluetooth/bthome_sensor_template/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
25
```c /* * */ #include <zephyr/bluetooth/bluetooth.h> #include <zephyr/bluetooth/uuid.h> #define SERVICE_DATA_LEN 9 #define SERVICE_UUID 0xfcd2 /* BTHome service UUID */ #define IDX_TEMPL 4 /* Index of lo byte of temp in service data*/ #define IDX_TEMPH 5 ...
/content/code_sandbox/samples/bluetooth/bthome_sensor_template/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
601
```unknown CONFIG_BT_EXT_ADV=y # Increase Advertising Data Length, as Complete Local Name too needs to be # placed in the AUX_ADV_IND PDU compared to when it is placed in ADV_SCAN_IND # PDU in the case of legacy advertising. CONFIG_BT_CTLR_ADV_DATA_LEN_MAX=36 ```
/content/code_sandbox/samples/bluetooth/peripheral_hr/overlay-extended.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
63
```cmake if(SB_CONFIG_NET_CORE_IMAGE_HCI_IPC) # For builds in the nrf5340, we build the netcore image with the controller set(NET_APP hci_ipc) set(NET_APP_SRC_DIR ${ZEPHYR_BASE}/samples/bluetooth/${NET_APP}) ExternalZephyrProject_Add( APPLICATION ${NET_APP} SOURCE_DIR ${NET_APP_SRC_DIR} BOARD ${SB_C...
/content/code_sandbox/samples/bluetooth/peripheral_hr/sysbuild.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
166
```unknown source "share/sysbuild/Kconfig" config NET_CORE_BOARD string default "nrf5340dk/nrf5340/cpunet" if $(BOARD) = "nrf5340dk" default "nrf5340_audio_dk/nrf5340/cpunet" if $(BOARD) = "nrf5340_audio_dk" default "nrf5340bsim/nrf5340/cpunet" if $(BOARD_TARGET_STRING) = "NRF5340BSIM_NRF5340_CPUAPP" config NET_...
/content/code_sandbox/samples/bluetooth/peripheral_hr/Kconfig.sysbuild
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
141
```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/audio/audio.h> #include <zephyr/bluetooth/audio/bap.h> #include <zephyr/bluetoot...
/content/code_sandbox/samples/bluetooth/pbp_public_broadcast_sink/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,869
```unknown CONFIG_BT_EXT_ADV=y # Enable Coded PHY support CONFIG_BT_CTLR_PHY_CODED=y # Disable auto PHY update, to switch to 2M PHY CONFIG_BT_AUTO_PHY_UPDATE=n # Increase Advertising Data Length, as Complete Local Name too needs to be # placed in the AUX_ADV_IND PDU compared to when it is placed in ADV_SCAN_IND # PD...
/content/code_sandbox/samples/bluetooth/peripheral_hr/overlay-phy_coded.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
100
```unknown CONFIG_BT=y CONFIG_BT_SMP=y CONFIG_BT_PERIPHERAL=y CONFIG_BT_DIS=y CONFIG_BT_DIS_PNP=n CONFIG_BT_BAS=y CONFIG_BT_HRS=y CONFIG_BT_DEVICE_NAME="Zephyr Heartrate Sensor" CONFIG_BT_DEVICE_APPEARANCE=833 # Drivers and peripherals CONFIG_I2C=n CONFIG_WATCHDOG=n CONFIG_PINCTRL=n CONFIG_SPI=n CONFIG_GPIO=n CONFIG_S...
/content/code_sandbox/samples/bluetooth/peripheral_hr/prj_minimal.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
825
```restructuredtext .. _peripheral_hr: Bluetooth: Peripheral HR ######################## Overview ******** Similar to the :ref:`Peripheral <ble_peripheral>` sample, except that this application specifically exposes the HR (Heart Rate) GATT Service. Once a device connects it will generate dummy heart-rate values. R...
/content/code_sandbox/samples/bluetooth/peripheral_hr/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
134
```unknown CONFIG_BT=y CONFIG_LOG=y CONFIG_BT_SMP=y CONFIG_BT_PERIPHERAL=y CONFIG_BT_DIS=y CONFIG_BT_DIS_PNP=n CONFIG_BT_BAS=y CONFIG_BT_HRS=y CONFIG_BT_DEVICE_NAME="Zephyr Heartrate Sensor" CONFIG_BT_DEVICE_APPEARANCE=833 ```
/content/code_sandbox/samples/bluetooth/peripheral_hr/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
68
```yaml sample: name: Bluetooth Peripheral HR description: Demonstrates the HR (Heart Rate) GATT Service tests: sample.bluetooth.peripheral_hr: harness: bluetooth platform_allow: - qemu_cortex_m3 - qemu_x86 - nrf52_bsim - nrf5340bsim/nrf5340/cpuapp - nrf51dk/nrf51822 - ...
/content/code_sandbox/samples/bluetooth/peripheral_hr/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
743
```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/peripheral_hr/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 # Set same the ACL RX buffer size as in hci_ipc on netcore so that # HCI Controller to Host Flowcontrol is supported. CONFIG_BT_BUF_ACL_RX_SIZE=255 ```
/content/code_sandbox/samples/bluetooth/peripheral_hr/boards/nrf5340bsim_nrf5340_cpuapp.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
39
```restructuredtext .. _peripheral_dis: Bluetooth: Peripheral DIS ######################### Overview ******** Similar to the :ref:`Peripheral <ble_peripheral>` sample, except that this application specifically exposes the DIS (Device Information) GATT Service. Requirements ************ * BlueZ running on the host...
/content/code_sandbox/samples/bluetooth/peripheral_dis/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
120
```unknown CONFIG_BT=y CONFIG_BT_PERIPHERAL=y CONFIG_BT_DIS=y CONFIG_BT_DIS_PNP=n CONFIG_BT_DIS_MODEL="Zephyr Model" CONFIG_BT_DIS_MANUF="Zephyr" CONFIG_BT_DIS_SERIAL_NUMBER=y CONFIG_BT_DIS_FW_REV=y CONFIG_BT_DIS_HW_REV=y CONFIG_BT_DIS_SW_REV=y CONFIG_BT_DIS_SERIAL_NUMBER_STR="Zephyr Serial" CONFIG_BT_DIS_FW_REV_STR="...
/content/code_sandbox/samples/bluetooth/peripheral_dis/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
174
```yaml sample: name: Bluetooth Peripheral DIS description: Demonstrates the DIS (Device Information) GATT Service tests: sample.bluetooth.peripheral_dis: harness: bluetooth platform_allow: - qemu_cortex_m3 - qemu_x86 tags: bluetooth integration_platforms: - qemu_cortex_m3 ```
/content/code_sandbox/samples/bluetooth/peripheral_dis/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/device.h> #include <zephyr/devicetree.h> #include <zephyr/bluetooth/bluetooth.h> #include <zephyr/bluetooth/hci.h> #include <zephyr/bluetooth/conn.h> #include <zephyr/bluetooth/uuid.h> #include <zephyr/bluetooth/gatt.h> #include <zephyr/blue...
/content/code_sandbox/samples/bluetooth/peripheral_hr/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,987
```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/peripheral_dis/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
```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/hci.h> #includ...
/content/code_sandbox/samples/bluetooth/peripheral_dis/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
683
```cmake if(SB_CONFIG_NET_CORE_IMAGE_HCI_IPC) # For builds in the nrf5340, we build the netcore image with the controller set(NET_APP hci_ipc) set(NET_APP_SRC_DIR ${ZEPHYR_BASE}/samples/bluetooth/${NET_APP}) ExternalZephyrProject_Add( APPLICATION ${NET_APP} SOURCE_DIR ${NET_APP_SRC_DIR} BOARD ${SB_C...
/content/code_sandbox/samples/bluetooth/cap_initiator/sysbuild.cmake
cmake
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
166
```unknown source "share/sysbuild/Kconfig" config NET_CORE_BOARD string default "nrf5340dk/nrf5340/cpunet" if "$(BOARD)" = "nrf5340dk" default "nrf5340_audio_dk/nrf5340/cpunet" if "$(BOARD)" = "nrf5340_audio_dk" default "nrf5340bsim/nrf5340/cpunet" if $(BOARD_TARGET_STRING) = "NRF5340BSIM_NRF5340_CPUAPP" config ...
/content/code_sandbox/samples/bluetooth/cap_initiator/Kconfig.sysbuild
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
141
```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_SCAN_DATA_LEN_MAX=191 CONFIG_BT_CTLR_ADV_DATA_LEN_MAX=191 # Support the highest SDU size required by any BAP LC3 presets (155) + 8 bytes of HCI IS...
/content/code_sandbox/samples/bluetooth/cap_initiator/overlay-bt_ll_sw_split.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
127
```unknown mainmenu "Bluetooth: Common Audio Profile initiator sample" config SAMPLE_UNICAST bool "Whether or not to search for CAP acceptors for unicast audio" default y select BT_CENTRAL select BT_SMP select BT_KEYS_OVERWRITE_OLDEST select BT_CSIP_SET_COORDINATOR select BT_BAP_UNICAST_CLIENT select BT_CTLR_...
/content/code_sandbox/samples/bluetooth/cap_initiator/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
188
```unknown CONFIG_LOG=y CONFIG_MAIN_STACK_SIZE=2048 CONFIG_BT=y CONFIG_BT_AUDIO=y CONFIG_BT_EXT_ADV=y CONFIG_BT_DEVICE_NAME="CAP Initiator" # CAP support CONFIG_BT_CAP_INITIATOR=y # BAP support CONFIG_BT_ISO_MAX_CHAN=2 # Unicast client values if enabled by CONFIG_SAMPLE_UNICAST CONFIG_BT_BAP_UNICAST_CLIENT_GROUP_ST...
/content/code_sandbox/samples/bluetooth/cap_initiator/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
154
```restructuredtext .. zephyr:code-sample:: bluetooth_cap_initiator :name: Bluetooth: Common Audio Profile Initiator :relevant-api: bt_cap bt_bap bluetooth CAP Initiator sample that connects to CAP Acceptors and setup unicast audio streaming, or broadcast audio streams. Overview ******** Application demo...
/content/code_sandbox/samples/bluetooth/cap_initiator/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
628
```yaml sample: description: Bluetooth Low Energy Common Audio Profile Initiator sample name: Bluetooth Low Energy Common Audio Profile Initiator sample tests: sample.bluetooth.cap_initiator: harness: bluetooth platform_allow: - qemu_cortex_m3 - qemu_x86 - nrf5340dk/nrf5340/cpuapp ...
/content/code_sandbox/samples/bluetooth/cap_initiator/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
262
```objective-c /* * */ #include <stdint.h> #include <zephyr/bluetooth/audio/bap.h> #include <zephyr/bluetooth/audio/cap.h> #include <zephyr/bluetooth/conn.h> struct tx_stream { struct bt_cap_stream *stream; uint16_t seq_num; }; /** * @brief Run the application as a CAP Initiator for unicast * * This will star...
/content/code_sandbox/samples/bluetooth/cap_initiator/src/cap_initiator.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
397
```c /* * */ #include <autoconf.h> #include <stddef.h> #include <zephyr/bluetooth/bluetooth.h> #include <zephyr/kernel.h> #include <zephyr/logging/log.h> #include <zephyr/logging/log_core.h> #include <zephyr/sys/util_macro.h> #include "cap_initiator.h" LOG_MODULE_REGISTER(cap_initiator, LOG_LEVEL_INF); int main(...
/content/code_sandbox/samples/bluetooth/cap_initiator/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
348
```c /* * */ #include <zephyr/types.h> #include <zephyr/kernel.h> #include <zephyr/bluetooth/audio/cap.h> #include <zephyr/bluetooth/audio/bap.h> #include <zephyr/bluetooth/bluetooth.h> #include <zephyr/bluetooth/iso.h> #include <zephyr/logging/log.h> #include <zephyr/net/buf.h> #include <zephyr/sys/byteorder.h> #i...
/content/code_sandbox/samples/bluetooth/cap_initiator/src/cap_initiator_tx.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
897
```c /* * */ #include <zephyr/bluetooth/audio/audio.h> #include <zephyr/bluetooth/audio/bap_lc3_preset.h> #include <zephyr/bluetooth/audio/cap.h> #include <zephyr/bluetooth/audio/bap.h> #include <zephyr/bluetooth/bluetooth.h> #include <zephyr/kernel.h> #include <zephyr/logging/log.h> #include <zephyr/sys/byteorder.h...
/content/code_sandbox/samples/bluetooth/cap_initiator/src/cap_initiator_broadcast.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,721
```unknown 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/cap_initiator/boards/nrf5340dk_nrf5340_cpuapp.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
46
```unknown 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/cap_initiator/boards/nrf5340_audio_dk_nrf5340_cpuapp.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
46
```restructuredtext .. _bluetooth_central: Bluetooth: Central ################## Overview ******** Application demonstrating very basic BLE Central role functionality by scanning for other BLE devices and establishing a connection to the first one with a strong enough signal. Requirements ************ * BlueZ ru...
/content/code_sandbox/samples/bluetooth/central/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
118
```unknown CONFIG_BT=y CONFIG_BT_CENTRAL=y ```
/content/code_sandbox/samples/bluetooth/central/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
12
```yaml sample: name: Bluetooth Central tests: sample.bluetooth.central: harness: bluetooth platform_allow: - qemu_cortex_m3 - qemu_x86 tags: bluetooth integration_platforms: - qemu_cortex_m3 ```
/content/code_sandbox/samples/bluetooth/central/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
57
```c /* main.c - Application main entry point */ /* * */ #include <zephyr/types.h> #include <stddef.h> #include <errno.h> #include <zephyr/kernel.h> #include <zephyr/sys/printk.h> #include <zephyr/bluetooth/bluetooth.h> #include <zephyr/bluetooth/hci.h> #include <zephyr/bluetooth/conn.h> #include <zephyr/bluetooth...
/content/code_sandbox/samples/bluetooth/central/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
731
```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/central/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 .. _peripheral_csc: Bluetooth: Peripheral CSC ######################### Overview ******** Similar to the :ref:`Peripheral <ble_peripheral>` sample, except that this application specifically exposes the CSC (Cycling Speed and Cadence) GATT Service. Requirements ************ * BlueZ running on t...
/content/code_sandbox/samples/bluetooth/peripheral_csc/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
127
```unknown CONFIG_ENTROPY_GENERATOR=y CONFIG_TEST_RANDOM_GENERATOR=y CONFIG_BT=y CONFIG_BT_PERIPHERAL=y CONFIG_BT_DIS=y CONFIG_BT_DIS_PNP=n CONFIG_BT_BAS=y CONFIG_BT_DEVICE_NAME="CSC peripheral" CONFIG_BT_DEVICE_APPEARANCE=1157 ```
/content/code_sandbox/samples/bluetooth/peripheral_csc/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
64
```yaml sample: name: Bluetooth Peripheral CSC description: Demonstrates the CSC (Cycling Speed and Cadence) GATT Service tests: sample.bluetooth.peripheral_csc: harness: bluetooth platform_allow: - qemu_cortex_m3 - qemu_x86 tags: bluetooth integration_platforms: - qemu_cortex_m3...
/content/code_sandbox/samples/bluetooth/peripheral_csc/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
80
```c /* * */ #include <autoconf.h> #include <stdbool.h> #include <stddef.h> #include <stdint.h> #include <zephyr/bluetooth/addr.h> #include <zephyr/bluetooth/att.h> #include <zephyr/bluetooth/audio/audio.h> #include <zephyr/bluetooth/audio/bap_lc3_preset.h> #include <zephyr/bluetooth/audio/cap.h> #include <zephyr/b...
/content/code_sandbox/samples/bluetooth/cap_initiator/src/cap_initiator_unicast.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
6,223
```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/peripheral_csc/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-sync-conn-sample: Bluetooth: Periodic Advertising Connection Procedure - Responder ##################################################################### Overview ******** A simple application demonstrating the responder side of the BLE Periodic Advertising Conne...
/content/code_sandbox/samples/bluetooth/periodic_sync_conn/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
208
```unknown CONFIG_BT=y CONFIG_BT_OBSERVER=y CONFIG_BT_EXT_ADV=y CONFIG_BT_PER_ADV_SYNC_TRANSFER_SENDER=y CONFIG_BT_PER_ADV_SYNC_TRANSFER_RECEIVER=y CONFIG_BT_PER_ADV_SYNC=y CONFIG_BT_PER_ADV_SYNC_RSP=y CONFIG_BT_PER_ADV_SYNC_BUF_SIZE=247 CONFIG_BT_MAX_CONN=1 CONFIG_BT_PERIPHERAL=y CONFIG_BT_PRIVACY=y CONFIG_BT_SMP=y ...
/content/code_sandbox/samples/bluetooth/periodic_sync_conn/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
92
```yaml sample: name: Bluetooth Periodic Advertising Connection Procedure tests: sample.bluetooth.periodic_sync_conn: harness: bluetooth platform_allow: - qemu_cortex_m3 - qemu_x86 tags: bluetooth integration_platforms: - qemu_cortex_m3 ```
/content/code_sandbox/samples/bluetooth/periodic_sync_conn/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
64
```c /* * */ #include <zephyr/bluetooth/bluetooth.h> #include <zephyr/bluetooth/conn.h> #include <zephyr/bluetooth/gap.h> #include <zephyr/bluetooth/hci.h> #include <zephyr/sys/util.h> #define NAME_LEN 30 static K_SEM_DEFINE(sem_per_adv, 0, 1); static K_SEM_DEFINE(sem_per_sync, 0, 1); static K_SEM_DEFINE(sem_conne...
/content/code_sandbox/samples/bluetooth/periodic_sync_conn/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,761
```c /* main.c - Bluetooth Cycling Speed and Cadence app main entry point */ /* * */ #include <stdbool.h> #include <zephyr/types.h> #include <stddef.h> #include <string.h> #include <errno.h> #include <zephyr/random/random.h> #include <zephyr/sys/printk.h> #include <zephyr/sys/byteorder.h> #include <zephyr/kernel.h>...
/content/code_sandbox/samples/bluetooth/peripheral_csc/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,054
```unknown mainmenu "Bluetooth: Peripheral HIDs" config SAMPLE_BT_USE_AUTHENTICATION bool "Enable passkey authentication" default y help Enable the passkey authentication callback and register the GATT read and write attributes as authentication required. source "Kconfig.zephyr" ```
/content/code_sandbox/samples/bluetooth/peripheral_hids/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
60