TI BLE5-Stack API Documentation  9.11.01
Macros | Typedefs
bcomdef.h File Reference

Detailed Description

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...
 

Macro Definition Documentation

§ B_ADDR_LEN

#define B_ADDR_LEN   6

Default Public and Random Address Length.

§ B_APP_DEFAULT_PASSCODE

#define B_APP_DEFAULT_PASSCODE   123456

BLE Default Passcode.

§ B_CHANNEL_MAP_LEN

#define B_CHANNEL_MAP_LEN   5

BLE Channel Map length.

§ B_EVENT_MASK_LEN

#define B_EVENT_MASK_LEN   8

BLE Event mask length.

§ B_FEATURE_SUPPORT_LENGTH

#define B_FEATURE_SUPPORT_LENGTH   8

BLE Feature Supported length.

§ B_LOCAL_NAME_LEN

#define B_LOCAL_NAME_LEN   248

BLE Local Name length.

§ B_MAX_ADV_LEN

#define B_MAX_ADV_LEN   31

BLE Maximum Advertising Packet Length.

§ B_RANDOM_NUM_SIZE

#define B_RANDOM_NUM_SIZE   8

BLE Random Number Size.

§ BLE_LRU_BOND_LIST

#define BLE_LRU_BOND_LIST   0x05

The Device's order of bond indexes in least recently used order.

§ BLE_NVID_ADDR_MODE

#define BLE_NVID_ADDR_MODE   0x04

The Device's address type (GAP_Addr_Modes_t)

§ BLE_NVID_CSRK

#define BLE_NVID_CSRK   0x03

The Device's CSRK.

§ BLE_NVID_CUST_END

#define BLE_NVID_CUST_END   (BLE_NVID_CUST_START + MAX_NUM_NV_RECORDS - 1)

End of the Customer's NV IDs.

§ BLE_NVID_CUST_START

#define BLE_NVID_CUST_START   (BLE_NVID_GATT_CFG_END + 1)

Start of the Customer's NV IDs.

§ BLE_NVID_GAP_BOND_END

#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

§ BLE_NVID_GAP_BOND_START

#define BLE_NVID_GAP_BOND_START   0x20

Start of the GAP Bond Manager's NV IDs.

§ BLE_NVID_GATT_CFG_END

#define BLE_NVID_GATT_CFG_END   (BLE_NVID_GATT_CFG_START + MAX_NUM_NV_RECORDS - 1)

End of the GATT Configuration NV IDs.

§ BLE_NVID_GATT_CFG_START

#define BLE_NVID_GATT_CFG_START   (BLE_NVID_GAP_BOND_END + 1)

Start of the GATT Configuration NV IDs.

§ BLE_NVID_IRK

#define BLE_NVID_IRK   0x02

The Device's IRK.

§ BLE_NVID_MESH_START

#define BLE_NVID_MESH_START   BLE_NVID_CUST_END + 1

§ BLE_NVID_RANDOM_ADDR

#define BLE_NVID_RANDOM_ADDR   0x06

The Device's random address if set by the current GAP_DeviceInit.

§ bleAlreadyInRequestedMode

#define bleAlreadyInRequestedMode   0x11

Already performing that task.

§ bleDisallowed

#define bleDisallowed   0x1F

Command is not allowed.

§ bleGAPBondItemNotFound

#define bleGAPBondItemNotFound   0x36

An item of a bond record was not found.

§ bleGAPBondRejected

#define bleGAPBondRejected   0x32

The bond information was rejected.

§ bleGAPBufferInUse

#define bleGAPBufferInUse   0x33

The buffer is in use elsewhere.

§ bleGAPConnNotAcceptable

#define bleGAPConnNotAcceptable   0x31

The connection was not accepted.

§ bleGAPFilteredOut

#define bleGAPFilteredOut   0x35

The received PDU was filtered out.

§ bleGAPNotFound

#define bleGAPNotFound   0x34

No handle / buffer found.

§ bleGAPUserCanceled

#define bleGAPUserCanceled   0x30

The user canceled the task.

§ bleIncorrectMode

#define bleIncorrectMode   0x12

Not setup properly to perform that task.

§ bleInsufficientAuthen

#define bleInsufficientAuthen   0x41

The attribute has insufficient authentication.

§ bleInsufficientEncrypt

#define bleInsufficientEncrypt   0x42

The attribute has insufficient encryption.

§ bleInsufficientKeySize

#define bleInsufficientKeySize   0x43

The attribute has insufficient encryption key size.

§ bleInternalError

#define bleInternalError   0x1E

Internal error not due to application.

§ bleInvalidMtuSize

#define bleInvalidMtuSize   0x1B

MTU size is out of range.

§ bleInvalidPDU

#define bleInvalidPDU   0x40

The attribute PDU is invalid.

§ bleInvalidRange

#define bleInvalidRange   0x18

A parameter is out of range.

§ bleInvalidTaskID

#define bleInvalidTaskID   INVALID_TASK

Task ID isn't setup properly.

§ bleLinkEncrypted

#define bleLinkEncrypted   0x19

The link is already encrypted.

§ bleMemAllocError

#define bleMemAllocError   0x13

Memory allocation error occurred.

§ bleMemFreeError

#define bleMemFreeError   0x1D

Memory free error occurred.

§ bleNoResources

#define bleNoResources   0x15

There are no resource available.

§ bleNotConnected

#define bleNotConnected   0x14

Can't perform function when not in a connection.

§ bleNotReady

#define bleNotReady   0x10

Not ready to perform task.

§ blePairingTimedOut

#define blePairingTimedOut   0x1C

Previous pairing attempt timed out.

§ blePending

#define blePending   0x16

Waiting.

§ bleProcedureComplete

#define bleProcedureComplete   0x1A

The Procedure is completed.

§ bleTimeout

#define bleTimeout   0x17

Timed out performing function.

§ CC2652RB_OVERRIDE_USED

#define CC2652RB_OVERRIDE_USED   0x02

§ CENTRAL_GUARD_TIME_ENABLE

#define CENTRAL_GUARD_TIME_ENABLE   0x01

Stack misc settings bitmask.

§ DISPATCH_CMD_EVENT

#define DISPATCH_CMD_EVENT   0x82

Dispatch Command Event message.

§ EXTENDED_STACK_SETTINGS_DEFAULT

#define EXTENDED_STACK_SETTINGS_DEFAULT   0x00

Stack misc settings bitmask.

§ GAP_EVENT_SIGN_COUNTER_CHANGED

#define GAP_EVENT_SIGN_COUNTER_CHANGED   0x4000

The device level sign counter changed.

§ GAP_MSG_EVENT

#define GAP_MSG_EVENT   0xD0

Incoming GAP message.

§ GATT_MSG_EVENT

#define GATT_MSG_EVENT   0xB0

Incoming GATT message.

§ GATT_SERV_MSG_EVENT

#define GATT_SERV_MSG_EVENT   0xB1

Incoming GATT Serv App message.

§ HCI_DATA_EVENT

#define HCI_DATA_EVENT   0x90

HCI Data Event message.

§ HCI_EXT_CMD_EVENT

#define HCI_EXT_CMD_EVENT   0x93

HCI Extended Command Event message.

§ HCI_GAP_EVENT_EVENT

#define HCI_GAP_EVENT_EVENT   0x91

GAP Event message.

§ HCI_GAP_META_EVENT_EVENT

#define HCI_GAP_META_EVENT_EVENT   0x95

GAP Meta Event message.

§ HCI_SMP_EVENT_EVENT

#define HCI_SMP_EVENT_EVENT   0x92

SMP Event message.

§ HCI_SMP_META_EVENT_EVENT

#define HCI_SMP_META_EVENT_EVENT   0x94

SMP Meta Event message.

§ ICALL_CMD_EVENT

#define ICALL_CMD_EVENT   0x81

ICall Command Event message.

§ ICALL_EVENT_EVENT

#define ICALL_EVENT_EVENT   0x80

ICall Event message.

§ INVALID_TASK_ID

#define INVALID_TASK_ID   0xFF

Task ID isn't setup properly.

§ KEYLEN

#define KEYLEN   16

Default key length.

§ L2CAP_DATA_EVENT

#define L2CAP_DATA_EVENT   0xA0

Incoming data on a channel.

§ L2CAP_SIGNAL_EVENT

#define L2CAP_SIGNAL_EVENT   0xA2

Incoming Signaling message.

§ LSB_2_BYTES

#define LSB_2_BYTES   2

Defines for decomposed Address 2 BYTES LSB

§ MAX_NUM_NV_RECORDS

#define MAX_NUM_NV_RECORDS   50

§ MSB_4_BYTES

#define MSB_4_BYTES   4

4 BYTES MSB

§ SM_MSG_EVENT

#define SM_MSG_EVENT   0xC2

Incoming SM message.

§ SM_NEW_RAND_KEY_EVENT

#define SM_NEW_RAND_KEY_EVENT   0xC1

New Rand Key Event message.

§ TI_BASE_UUID_128

#define TI_BASE_UUID_128 (   uuid)
Value:
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xB0, \
0x00, 0x40, 0x51, 0x04, LO_UINT16( uuid ), HI_UINT16( uuid ), 0x00, 0xF0
#define HI_UINT16(a)
Definition: comdef.h:154
#define LO_UINT16(a)
Definition: comdef.h:157

TI Base 128-bit UUID: F000XXXX-0451-4000-B000-000000000000.

Typedef Documentation

§ bStatus_t

typedef uint8_t bStatus_t

BLE Generic Status return.

© Copyright 1995-2025, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale