Bluetooth common header for SDK on Spresense. More...
#include <sdk/config.h>#include <debug.h>#include <errno.h>#include <stdbool.h>#include <stdint.h>#include <stdio.h>Go to the source code of this file.
Classes | |
| struct | BT_ADDR |
| BT address types. More... | |
| struct | BT_UUID |
| 128-bit UUID types More... | |
Macros | |
| #define | BLUETOOTH_DEBUG |
| #define | _err(format, ...) printf(format, ##__VA_ARGS__) |
| #define | _info(format, ...) printf(format, ##__VA_ARGS__) |
BT success code | |
| #define | BT_SUCCESS 0 |
BT fail code | |
| #define | BT_FAIL -1 |
BT Address Length | |
| #define | BT_ADDR_LEN 6 |
BT Name Length | |
| #define | BT_NAME_LEN 28 |
BT UUID Length | |
| #define | BT_UUID128_LEN 16 |
Flags bits in advertising data | |
| #define | BLE_ADV_FLAGS_LIMITED_DISC_MODE (0x01) |
| #define | BLE_ADV_FLAGS_GENERAL_DISC_MODE (0x02) |
| #define | BLE_ADV_FLAGS_BR_EDR_NOT_SUPPORTED (0x04) |
| #define | BLE_ADV_FLAGS_LE_BR_EDR_CONTROLLER (0x08) |
| #define | BLE_ADV_FLAGS_LE_BR_EDR_HOST (0x10) |
The length of UUID string | |
| #define | BLE_UUID_128BIT_STRING_LENGTH (36) |
| #define | BLE_UUID_16BIT_STRING_LENGTH (4) |
| #define | BLE_UUID_128BIT_STRING_BUFSIZE (BLE_UUID_128BIT_STRING_LENGTH + 1) |
| #define | BLE_UUID_16BIT_STRING_BUFSIZE (BLE_UUID_16BIT_STRING_LENGTH + 1) |
Bluetooth common header for SDK on Spresense.
This header file includes bluetooth common definition between API and HAL I/F.
| #define BLE_ADV_FLAGS_LIMITED_DISC_MODE (0x01) |
LE Limited Discoverable Mode
| #define BLE_ADV_FLAGS_GENERAL_DISC_MODE (0x02) |
LE General Discoverable Mode
| #define BLE_ADV_FLAGS_BR_EDR_NOT_SUPPORTED (0x04) |
BR/EDR not supported
| #define BLE_ADV_FLAGS_LE_BR_EDR_CONTROLLER (0x08) |
Simultaneous LE and BR/EDR capable(Controller)
| #define BLE_ADV_FLAGS_LE_BR_EDR_HOST (0x10) |
Simultaneous LE and BR/EDR capable(Host)
| #define BLE_UUID_128BIT_STRING_LENGTH (36) |
The length of 128-bit UUID string
| #define BLE_UUID_16BIT_STRING_LENGTH (4) |
The length of 16-bit UUID string
| #define BLE_UUID_128BIT_STRING_BUFSIZE (BLE_UUID_128BIT_STRING_LENGTH + 1) |
The minimal buffer size for 128-bit UUID string
| #define BLE_UUID_16BIT_STRING_BUFSIZE (BLE_UUID_16BIT_STRING_LENGTH + 1) |
The minimal buffer size for 16-bit UUID string
| enum BT_CMD_STATUS |
BT hci command status.
| enum BT_PAIR_STATUS |
BT pairing result.
| enum BT_VISIBILITY |
| enum BLE_GAP_IO_CAP |
| enum BLE_AD_TYPE |
BLE data type of advertising data.
| enum BLE_ADDRESS_TYPE |