![]() |
![]() |
|
TI BLE5-Stack API Documentation
9.11.01
|
Type definitions and macros for BLE stack.
Go to the source code of this file.
Macros | |
| #define | B_ADDR_LEN 6 |
| Default Public and Random Address Length. More... | |
| #define | B_APP_DEFAULT_PASSCODE 123456 |
| BLE Default Passcode. More... | |
| #define | B_CHANNEL_MAP_LEN 5 |
| BLE Channel Map length. More... | |
| #define | B_EVENT_MASK_LEN 8 |
| BLE Event mask length. More... | |
| #define | B_FEATURE_SUPPORT_LENGTH 8 |
| BLE Feature Supported length. More... | |
| #define | B_LOCAL_NAME_LEN 248 |
| BLE Local Name length. More... | |
| #define | B_MAX_ADV_LEN 31 |
| BLE Maximum Advertising Packet Length. More... | |
| #define | B_RANDOM_NUM_SIZE 8 |
| BLE Random Number Size. More... | |
| #define | BLE_LRU_BOND_LIST 0x05 |
| The Device's order of bond indexes in least recently used order. More... | |
| #define | BLE_NVID_ADDR_MODE 0x04 |
| The Device's address type (GAP_Addr_Modes_t) More... | |
| #define | BLE_NVID_CSRK 0x03 |
| The Device's CSRK. More... | |
| #define | BLE_NVID_CUST_END (BLE_NVID_CUST_START + MAX_NUM_NV_RECORDS - 1) |
| End of the Customer's NV IDs. More... | |
| #define | BLE_NVID_CUST_START (BLE_NVID_GATT_CFG_END + 1) |
| Start of the Customer's NV IDs. More... | |
| #define | BLE_NVID_GAP_BOND_END (BLE_NVID_GAP_BOND_START + (MAX_NUM_NV_RECORDS * GAP_BOND_REC_IDS) - 1) |
| 50 Bonds * 6 Rec IDs More... | |
| #define | BLE_NVID_GAP_BOND_START 0x20 |
| Start of the GAP Bond Manager's NV IDs. More... | |
| #define | BLE_NVID_GATT_CFG_END (BLE_NVID_GATT_CFG_START + MAX_NUM_NV_RECORDS - 1) |
| End of the GATT Configuration NV IDs. More... | |
| #define | BLE_NVID_GATT_CFG_START (BLE_NVID_GAP_BOND_END + 1) |
| Start of the GATT Configuration NV IDs. More... | |
| #define | BLE_NVID_IRK 0x02 |
| The Device's IRK. More... | |
| #define | BLE_NVID_MESH_START BLE_NVID_CUST_END + 1 |
| #define | BLE_NVID_RANDOM_ADDR 0x06 |
| The Device's random address if set by the current GAP_DeviceInit. More... | |
| #define | bleAlreadyInRequestedMode 0x11 |
| Already performing that task. More... | |
| #define | bleDisallowed 0x1F |
| Command is not allowed. More... | |
| #define | bleGAPBondItemNotFound 0x36 |
| An item of a bond record was not found. More... | |
| #define | bleGAPBondRejected 0x32 |
| The bond information was rejected. More... | |
| #define | bleGAPBufferInUse 0x33 |
| The buffer is in use elsewhere. More... | |
| #define | bleGAPConnNotAcceptable 0x31 |
| The connection was not accepted. More... | |
| #define | bleGAPFilteredOut 0x35 |
| The received PDU was filtered out. More... | |
| #define | bleGAPNotFound 0x34 |
| No handle / buffer found. More... | |
| #define | bleGAPUserCanceled 0x30 |
| The user canceled the task. More... | |
| #define | bleIncorrectMode 0x12 |
| Not setup properly to perform that task. More... | |
| #define | bleInsufficientAuthen 0x41 |
| The attribute has insufficient authentication. More... | |
| #define | bleInsufficientEncrypt 0x42 |
| The attribute has insufficient encryption. More... | |
| #define | bleInsufficientKeySize 0x43 |
| The attribute has insufficient encryption key size. More... | |
| #define | bleInternalError 0x1E |
| Internal error not due to application. More... | |
| #define | bleInvalidMtuSize 0x1B |
| MTU size is out of range. More... | |
| #define | bleInvalidPDU 0x40 |
| The attribute PDU is invalid. More... | |
| #define | bleInvalidRange 0x18 |
| A parameter is out of range. More... | |
| #define | bleInvalidTaskID INVALID_TASK |
| Task ID isn't setup properly. More... | |
| #define | bleLinkEncrypted 0x19 |
| The link is already encrypted. More... | |
| #define | bleMemAllocError 0x13 |
| Memory allocation error occurred. More... | |
| #define | bleMemFreeError 0x1D |
| Memory free error occurred. More... | |
| #define | bleNoResources 0x15 |
| There are no resource available. More... | |
| #define | bleNotConnected 0x14 |
| Can't perform function when not in a connection. More... | |
| #define | bleNotReady 0x10 |
| Not ready to perform task. More... | |
| #define | blePairingTimedOut 0x1C |
| Previous pairing attempt timed out. More... | |
| #define | blePending 0x16 |
| Waiting. More... | |
| #define | bleProcedureComplete 0x1A |
| The Procedure is completed. More... | |
| #define | bleTimeout 0x17 |
| Timed out performing function. More... | |
| #define | CC2652RB_OVERRIDE_USED 0x02 |
| #define | CENTRAL_GUARD_TIME_ENABLE 0x01 |
| Stack misc settings bitmask. More... | |
| #define | DISPATCH_CMD_EVENT 0x82 |
| Dispatch Command Event message. More... | |
| #define | EXTENDED_STACK_SETTINGS_DEFAULT 0x00 |
| Stack misc settings bitmask. More... | |
| #define | GAP_EVENT_SIGN_COUNTER_CHANGED 0x4000 |
| The device level sign counter changed. More... | |
| #define | GAP_MSG_EVENT 0xD0 |
| Incoming GAP message. More... | |
| #define | GATT_MSG_EVENT 0xB0 |
| Incoming GATT message. More... | |
| #define | GATT_SERV_MSG_EVENT 0xB1 |
| Incoming GATT Serv App message. More... | |
| #define | HCI_DATA_EVENT 0x90 |
| HCI Data Event message. More... | |
| #define | HCI_EXT_CMD_EVENT 0x93 |
| HCI Extended Command Event message. More... | |
| #define | HCI_GAP_EVENT_EVENT 0x91 |
| GAP Event message. More... | |
| #define | HCI_GAP_META_EVENT_EVENT 0x95 |
| GAP Meta Event message. More... | |
| #define | HCI_SMP_EVENT_EVENT 0x92 |
| SMP Event message. More... | |
| #define | HCI_SMP_META_EVENT_EVENT 0x94 |
| SMP Meta Event message. More... | |
| #define | ICALL_CMD_EVENT 0x81 |
| ICall Command Event message. More... | |
| #define | ICALL_EVENT_EVENT 0x80 |
| ICall Event message. More... | |
| #define | INVALID_TASK_ID 0xFF |
| Task ID isn't setup properly. More... | |
| #define | KEYLEN 16 |
| Default key length. More... | |
| #define | L2CAP_DATA_EVENT 0xA0 |
| Incoming data on a channel. More... | |
| #define | L2CAP_SIGNAL_EVENT 0xA2 |
| Incoming Signaling message. More... | |
| #define | LSB_2_BYTES 2 |
| #define | MAX_NUM_NV_RECORDS 50 |
| #define | MSB_4_BYTES 4 |
| 4 BYTES MSB More... | |
| #define | SM_MSG_EVENT 0xC2 |
| Incoming SM message. More... | |
| #define | SM_NEW_RAND_KEY_EVENT 0xC1 |
| New Rand Key Event message. More... | |
| #define | TI_BASE_UUID_128(uuid) |
| TI Base 128-bit UUID: F000XXXX-0451-4000-B000-000000000000. More... | |
Typedefs | |
| typedef uint8_t | bStatus_t |
| BLE Generic Status return. More... | |
| #define B_ADDR_LEN 6 |
Default Public and Random Address Length.
| #define B_APP_DEFAULT_PASSCODE 123456 |
BLE Default Passcode.
| #define B_CHANNEL_MAP_LEN 5 |
BLE Channel Map length.
| #define B_EVENT_MASK_LEN 8 |
BLE Event mask length.
| #define B_FEATURE_SUPPORT_LENGTH 8 |
BLE Feature Supported length.
| #define B_LOCAL_NAME_LEN 248 |
BLE Local Name length.
| #define B_MAX_ADV_LEN 31 |
BLE Maximum Advertising Packet Length.
| #define B_RANDOM_NUM_SIZE 8 |
BLE Random Number Size.
| #define BLE_LRU_BOND_LIST 0x05 |
The Device's order of bond indexes in least recently used order.
| #define BLE_NVID_ADDR_MODE 0x04 |
The Device's address type (GAP_Addr_Modes_t)
| #define BLE_NVID_CSRK 0x03 |
The Device's CSRK.
| #define BLE_NVID_CUST_END (BLE_NVID_CUST_START + MAX_NUM_NV_RECORDS - 1) |
End of the Customer's NV IDs.
| #define BLE_NVID_CUST_START (BLE_NVID_GATT_CFG_END + 1) |
Start of the Customer's NV IDs.
| #define BLE_NVID_GAP_BOND_END (BLE_NVID_GAP_BOND_START + (MAX_NUM_NV_RECORDS * GAP_BOND_REC_IDS) - 1) |
50 Bonds * 6 Rec IDs
End of the GAP Bond Manager's NV IDs Range
| #define BLE_NVID_GAP_BOND_START 0x20 |
Start of the GAP Bond Manager's NV IDs.
| #define BLE_NVID_GATT_CFG_END (BLE_NVID_GATT_CFG_START + MAX_NUM_NV_RECORDS - 1) |
End of the GATT Configuration NV IDs.
| #define BLE_NVID_GATT_CFG_START (BLE_NVID_GAP_BOND_END + 1) |
Start of the GATT Configuration NV IDs.
| #define BLE_NVID_IRK 0x02 |
The Device's IRK.
| #define BLE_NVID_MESH_START BLE_NVID_CUST_END + 1 |
| #define BLE_NVID_RANDOM_ADDR 0x06 |
The Device's random address if set by the current GAP_DeviceInit.
| #define bleAlreadyInRequestedMode 0x11 |
Already performing that task.
| #define bleDisallowed 0x1F |
Command is not allowed.
| #define bleGAPBondItemNotFound 0x36 |
An item of a bond record was not found.
| #define bleGAPBondRejected 0x32 |
The bond information was rejected.
| #define bleGAPBufferInUse 0x33 |
The buffer is in use elsewhere.
| #define bleGAPConnNotAcceptable 0x31 |
The connection was not accepted.
| #define bleGAPFilteredOut 0x35 |
The received PDU was filtered out.
| #define bleGAPNotFound 0x34 |
No handle / buffer found.
| #define bleGAPUserCanceled 0x30 |
The user canceled the task.
| #define bleIncorrectMode 0x12 |
Not setup properly to perform that task.
| #define bleInsufficientAuthen 0x41 |
The attribute has insufficient authentication.
| #define bleInsufficientEncrypt 0x42 |
The attribute has insufficient encryption.
| #define bleInsufficientKeySize 0x43 |
The attribute has insufficient encryption key size.
| #define bleInternalError 0x1E |
Internal error not due to application.
| #define bleInvalidMtuSize 0x1B |
MTU size is out of range.
| #define bleInvalidPDU 0x40 |
The attribute PDU is invalid.
| #define bleInvalidRange 0x18 |
A parameter is out of range.
| #define bleInvalidTaskID INVALID_TASK |
Task ID isn't setup properly.
| #define bleLinkEncrypted 0x19 |
The link is already encrypted.
| #define bleMemAllocError 0x13 |
Memory allocation error occurred.
| #define bleMemFreeError 0x1D |
Memory free error occurred.
| #define bleNoResources 0x15 |
There are no resource available.
| #define bleNotConnected 0x14 |
Can't perform function when not in a connection.
| #define bleNotReady 0x10 |
Not ready to perform task.
| #define blePairingTimedOut 0x1C |
Previous pairing attempt timed out.
| #define blePending 0x16 |
Waiting.
| #define bleProcedureComplete 0x1A |
The Procedure is completed.
| #define bleTimeout 0x17 |
Timed out performing function.
| #define CC2652RB_OVERRIDE_USED 0x02 |
| #define CENTRAL_GUARD_TIME_ENABLE 0x01 |
Stack misc settings bitmask.
| #define DISPATCH_CMD_EVENT 0x82 |
Dispatch Command Event message.
| #define EXTENDED_STACK_SETTINGS_DEFAULT 0x00 |
Stack misc settings bitmask.
| #define GAP_EVENT_SIGN_COUNTER_CHANGED 0x4000 |
The device level sign counter changed.
| #define GAP_MSG_EVENT 0xD0 |
Incoming GAP message.
| #define GATT_MSG_EVENT 0xB0 |
Incoming GATT message.
| #define GATT_SERV_MSG_EVENT 0xB1 |
Incoming GATT Serv App message.
| #define HCI_DATA_EVENT 0x90 |
HCI Data Event message.
| #define HCI_EXT_CMD_EVENT 0x93 |
HCI Extended Command Event message.
| #define HCI_GAP_EVENT_EVENT 0x91 |
GAP Event message.
| #define HCI_GAP_META_EVENT_EVENT 0x95 |
GAP Meta Event message.
| #define HCI_SMP_EVENT_EVENT 0x92 |
SMP Event message.
| #define HCI_SMP_META_EVENT_EVENT 0x94 |
SMP Meta Event message.
| #define ICALL_CMD_EVENT 0x81 |
ICall Command Event message.
| #define ICALL_EVENT_EVENT 0x80 |
ICall Event message.
| #define INVALID_TASK_ID 0xFF |
Task ID isn't setup properly.
| #define KEYLEN 16 |
Default key length.
| #define L2CAP_DATA_EVENT 0xA0 |
Incoming data on a channel.
| #define L2CAP_SIGNAL_EVENT 0xA2 |
Incoming Signaling message.
| #define LSB_2_BYTES 2 |
Defines for decomposed Address 2 BYTES LSB
| #define MAX_NUM_NV_RECORDS 50 |
| #define MSB_4_BYTES 4 |
4 BYTES MSB
| #define SM_MSG_EVENT 0xC2 |
Incoming SM message.
| #define SM_NEW_RAND_KEY_EVENT 0xC1 |
New Rand Key Event message.
| #define TI_BASE_UUID_128 | ( | uuid | ) |
| typedef uint8_t bStatus_t |
BLE Generic Status return.