Mistake on this page?
Report an issue in GitHub or email us
Macros | Enumerations
ll_defs.h File Reference

Link layer constant definitions. More...

#include "wsf_types.h"

Go to the source code of this file.

Macros

#define LL_VER_BT_CORE_SPEC_4_0   0x06
 
#define LL_VER_BT_CORE_SPEC_4_1   0x07
 
#define LL_VER_BT_CORE_SPEC_4_2   0x08
 
#define LL_VER_BT_CORE_SPEC_5_0   0x09
 
#define LL_VER_BT_CORE_SPEC_5_1   0x0A
 
#define LL_VER_BT_CORE_SPEC_5_2   0x0B
 
#define LL_VER_BT_CORE_SPEC_SYDNEY   0x0C
 
#define LL_COMP_ID_ARM   0x005F
 
#define LL_RSSI_MIN   -127
 
#define LL_RSSI_MAX   20
 
#define LL_RSSI_NOT_AVAIL   127
 
#define LL_CRC_LEN   3
 
#define LL_AA_LEN   4
 
#define LL_PREAMBLE_LEN_1M   1
 
#define LL_PREAMBLE_LEN_2M   2
 
#define LL_PREAMBLE_LEN_CODED_BITS   10
 
#define LL_CI_LEN_BITS   2
 
#define LL_TERM1_LEN_BITS   3
 
#define LL_TERM2_LEN_BITS   3
 
#define LL_RAND_ADDR_TYPE_MASK   UINT64_C(0xC00000000000)
 
#define LL_RAND_ADDR_TYPE_STATIC   UINT64_C(0xC00000000000)
 
#define LL_RAND_ADDR_TYPE_RPA   UINT64_C(0x400000000000)
 
#define LL_RAND_ADDR_TYPE_NRPA   UINT64_C(0x000000000000)
 
#define LL_SCAN_REQ_PDU_LEN   12
 
#define LL_CONN_IND_PDU_LEN   34
 
#define LL_CONN_RSP_PDU_LEN   14
 
#define LL_CHAN_ADV_MIN_IDX   37
 
#define LL_CHAN_ADV_MAX_IDX   39
 
#define LL_NUM_CHAN_ADV   3
 
#define LL_ADVBU_MAX_LEN   31
 
#define LL_ADVB_MAX_LEN   39
 
#define LL_ADVB_MIN_LEN   (LL_ADVB_MAX_LEN - LL_ADVBU_MAX_LEN)
 
#define LL_ADVB_MAX_TIME_1M   ((LL_BLE_US_PER_BYTE_1M * (LL_ADVB_MAX_LEN - LL_ADV_HDR_LEN)) + LL_MIN_PKT_TIME_US_1M)
 
#define LL_ADVB_MAX_TIME_2M   ((LL_BLE_US_PER_BYTE_2M * (LL_ADVB_MAX_LEN - LL_ADV_HDR_LEN)) + LL_MIN_PKT_TIME_US_2M)
 
#define LL_ADVB_MAX_TIME_S2   ((LL_BLE_US_PER_BYTE_CODED_S2 * (LL_ADVB_MAX_LEN - LL_ADV_HDR_LEN)) + LL_MIN_PKT_TIME_US_CODED_S2)
 
#define LL_ADVB_MAX_TIME_S8   ((LL_BLE_US_PER_BYTE_CODED_S8 * (LL_ADVB_MAX_LEN - LL_ADV_HDR_LEN)) + LL_MIN_PKT_TIME_US_CODED_S8)
 
#define LL_ADV_PKT_MAX_USEC   LL_ADVB_MAX_TIME_1M
 
#define LL_SCAN_REQ_MAX_USEC   ((8 * (LL_ADV_PREFIX_LEN + LL_SCAN_PREFIX_LEN)) + LL_MIN_PKT_TIME_US_1M)
 
#define LL_SCAN_RSP_MAX_USEC   LL_ADVB_MAX_TIME_1M
 
#define LL_ADV_HDR_LEN   2
 
#define LL_ADV_HDR_TYPE_OFFS   0
 
#define LL_ADV_HDR_TYPE_MSK   0x0F
 
#define LL_ADV_HDR_LEN_OFFS   1
 
#define LL_ADV_HDR_LEN_MSK   0x3F
 
#define LL_ADV_HDR_CP_MSK   0x40
 
#define LL_ADV_EXT_HDR_LEN_MSK   0xFF
 
#define LL_ADV_PREFIX_LEN   6
 
#define LL_SCAN_PREFIX_LEN   6
 
#define LL_ADV_ACCESS_ADDR   UINT32_C(0x8E89BED6)
 
#define LL_ADV_CRC_INIT   UINT32_C(0x555555)
 
#define LL_DIR_ADV_INTER_TICKS   6
 
#define LL_DIR_ADV_DUR_TICKS   2048
 
#define LL_MAX_ADV_HANDLE   0xEF
 
#define LL_MAX_ADV_SID   0x0F
 
#define LL_EXT_ADV_HDR_MIN_LEN   1
 
#define LL_EXT_ADV_HDR_MAX_LEN   64
 
#define LL_EXT_HDR_FLAG_LEN   1
 
#define LL_EXT_ADVBU_MAX_LEN   251
 
#define LL_EXT_ADVB_MAX_LEN   257
 
#define LL_EXT_ADVB_NORMAL_LEN   50
 
#define LL_EXT_HDR_ACAD_MAX_LEN   LL_EXT_ADV_HDR_MAX_LEN - LL_EXT_ADV_HDR_MIN_LEN - LL_EXT_HDR_FLAG_LEN
 
#define LL_EXT_ADVB_MAX_TIME_1M   ((LL_BLE_US_PER_BYTE_1M * (LL_EXT_ADVB_MAX_LEN - LL_ADV_HDR_LEN)) + LL_MIN_PKT_TIME_US_1M)
 
#define LL_EXT_ADVB_MAX_TIME_2M   ((LL_BLE_US_PER_BYTE_2M * (LL_EXT_ADVB_MAX_LEN - LL_ADV_HDR_LEN)) + LL_MIN_PKT_TIME_US_2M)
 
#define LL_EXT_ADVB_MAX_TIME_S2   ((LL_BLE_US_PER_BYTE_CODED_S2 * (LL_EXT_ADVB_MAX_LEN - LL_ADV_HDR_LEN)) + LL_MIN_PKT_TIME_US_CODED_S2)
 
#define LL_EXT_ADVB_MAX_TIME_S8   ((LL_BLE_US_PER_BYTE_CODED_S8 * (LL_EXT_ADVB_MAX_LEN - LL_ADV_HDR_LEN)) + LL_MIN_PKT_TIME_US_CODED_S8)
 
#define LL_EXT_ADVB_NORMAL_TIME_S8   ((LL_BLE_US_PER_BYTE_CODED_S8 * (LL_EXT_ADVB_NORMAL_LEN - LL_ADV_HDR_LEN)) + LL_MIN_PKT_TIME_US_CODED_S8)
 
#define LL_AUX_PTR_MAX_USEC   2457600
 
#define LL_SYNC_MIN_TIMEOUT   0x000A
 
#define LL_SYNC_MAX_TIMEOUT   0x4000
 
#define LL_SYNC_MAX_SKIP   0x01F3
 
#define LL_SYNC_MAX_HANDLE   0x0EFF
 
#define LL_PER_ADV_INT_MIN   0x0006
 
#define LL_SYNC_OFFS_ADJUST_USEC   LL_AUX_PTR_MAX_USEC
 
#define LL_SYNC_INFO_LEN   18
 
#define LL_CONN_UPD_IND_PDU_LEN   12
 
#define LL_CHAN_MAP_IND_PDU_LEN   8
 
#define LL_TERMINATE_IND_PDU_LEN   2
 
#define LL_ENC_REQ_LEN   23
 
#define LL_ENC_RSP_LEN   13
 
#define LL_START_ENC_LEN   1
 
#define LL_UNKNOWN_RSP_LEN   2
 
#define LL_FEATURE_PDU_LEN   9
 
#define LL_PAUSE_ENC_LEN   1
 
#define LL_VERSION_IND_PDU_LEN   6
 
#define LL_REJECT_IND_PDU_LEN   2
 
#define LL_CONN_PARAM_PDU_LEN   24
 
#define LL_REJECT_EXT_IND_PDU_LEN   3
 
#define LL_PING_PDU_LEN   1
 
#define LL_DATA_LEN_PDU_LEN   9
 
#define LL_PHY_PDU_LEN   3
 
#define LL_PHY_UPD_IND_PDU_LEN   5
 
#define LL_MIN_USED_CHAN_PDU_LEN   3
 
#define LL_PERIODIC_SYNC_PDU_LEN   35
 
#define LL_PEER_SCA_REQ_LEN   2
 
#define LL_PEER_SCA_RSP_LEN   2
 
#define LL_CIS_REQ_LEN   36
 
#define LL_CIS_RSP_LEN   9
 
#define LL_CIS_IND_LEN   16
 
#define LL_CIS_TERM_LEN   4
 
#define LL_CIS_SDU_CONFIG_REQ_LEN   13
 
#define LL_CIS_SDU_CONFIG_RSP_LEN   4
 
#define LL_PWR_CTRL_REQ_LEN   4
 
#define LL_PWR_CTRL_RSP_LEN   5
 
#define LL_PWR_CHNG_IND_LEN   5
 
#define LL_EMPTY_PDU_LEN   2
 
#define LL_DATA_HDR_LEN   2
 
#define LL_DATA_HDR_MAX_LEN   4
 
#define LL_DATA_MIC_LEN   4
 
#define LL_DATA_HDR_LLID_MSK   0x03
 
#define LL_DATA_HDR_LEN_MSK   0xFF
 
#define LL_MAX_NUM_CHAN_DATA   37
 
#define LL_MIN_NUM_CHAN_DATA   2
 
#define LL_ECC_KEY_LEN   32
 
#define LL_DEF_RES_ADDR_TO_SEC   900
 
#define LL_RAND_LEN   8
 
#define LL_KEY_LEN   16
 
#define LL_SKD_LEN   LL_KEY_LEN
 
#define LL_IV_LEN   8
 
#define LL_BC_LEN   LL_KEY_LEN
 
#define LL_GIV_LEN   8
 
#define LL_GSKD_LEN   16
 
#define LL_DEF_AUTH_TO_MS   30000
 
#define LL_DATA_LEN_TO_TIME_1M(len, enc)    ((LL_BLE_US_PER_BYTE_1M * ((len) + ((enc) ? LL_DATA_MIC_LEN : 0))) + LL_MIN_PKT_TIME_US_1M)
 
#define LL_DATA_LEN_TO_TIME_2M(len, enc)    ((LL_BLE_US_PER_BYTE_2M * ((len) + ((enc) ? LL_DATA_MIC_LEN : 0))) + LL_MIN_PKT_TIME_US_2M)
 
#define LL_DATA_LEN_TO_TIME_CODED_S8(len, enc)   ((LL_BLE_US_PER_BYTE_CODED_S8 * ((len) + ((enc) ? LL_DATA_MIC_LEN : 0))) + LL_MIN_PKT_TIME_US_CODED_S8)
 
#define LL_DATA_LEN_TO_TIME_CODED_S2(len, enc)   ((LL_BLE_US_PER_BYTE_CODED_S2 * ((len) + ((enc) ? LL_DATA_MIC_LEN : 0))) + LL_MIN_PKT_TIME_US_CODED_S2)
 
#define LL_MIN_INSTANT   6
 
#define LL_MAX_ADV_DATA_LEN   1650
 
#define LL_MAX_DATA_LEN_MIN   27
 
#define LL_MAX_DATA_LEN_ABS_MAX   251
 
#define LL_MAX_DATA_TIME_MIN   328
 
#define LL_MAX_DATA_TIME_ABS_MAX   17040
 
#define LL_MAX_DATA_TIME_ABS_MAX_1M   2128
 
#define LL_MAX_DATA_TIME_ABS_MIN_CODED   2704
 
#define LL_T_PRT_SEC   40
 
#define LL_MAX_ADV_DLY_MS   10
 
#define LL_MIN_CONN_INTERVAL   6
 
#define LL_MAX_CONN_INTERVAL   3200
 
#define LL_MIN_TX_WIN_SIZE   1
 
#define LL_MAX_TX_WIN_SIZE   8
 
#define LL_MAX_CONN_LATENCY   499
 
#define LL_MIN_SUP_TIMEOUT   10
 
#define LL_MAX_SUP_TIMEOUT   3200
 
#define LL_MIN_POWER_THRESHOLD   -128
 
#define LL_MAX_POWER_THRESHOLD   127
 
#define LL_MAX_PHYS   3
 
#define LL_ALL_PHYS_MSK   0x7
 
#define LL_ISO_DATA_HDR_LEN   2
 
#define LL_ISO_DATA_PLD_MAX_LEN   251
 
#define LL_ISO_PDU_MAX_LEN   (HCI_ISO_HDR_LEN + BB_DATA_PLD_MAX_LEN + BB_DATA_PDU_TAILROOM)
 
#define LL_ISO_SEG_HDR_LEN   2
 
#define LL_ISO_SEG_TO_LEN   3
 
#define LL_MAX_CIS_COUNT   0x10
 
#define LL_MIN_CIG_ID   0x00
 
#define LL_MAX_CIG_ID   0xEF
 
#define LL_MIN_CIS_ID   0x00
 
#define LL_MAX_CIS_ID   0xEF
 
#define LL_MIN_ISO_INTERV   0x0004
 
#define LL_MAX_ISO_INTERV   0x0C80
 
#define LL_MIN_ISOAL_PDU_TYPE   0x00
 
#define LL_MAX_ISOAL_PDU_TYPE   0x01
 
#define LL_MIN_SDU_SIZE   0x000
 
#define LL_MAX_SDU_SIZE   0xFFF
 
#define LL_MIN_SDU_INTERV   0x000FF
 
#define LL_MAX_SDU_INTERV   0xFFFFF
 
#define LL_MIN_CIS_NSE   0x01
 
#define LL_MAX_CIS_NSE   0x1F
 
#define LL_MIN_CIS_PL   0x0000
 
#define LL_MAX_CIS_PL   0x0FFB
 
#define LL_MIN_CIS_TRANS_LAT   0x0005
 
#define LL_MAX_CIS_TRANS_LAT   0x0FA0
 
#define LL_MIN_CIS_PHY_BIT   0x00
 
#define LL_MAX_CIS_PHY_BIT   0x02
 
#define LL_MIN_CIS_FT   0x01
 
#define LL_MAX_CIS_FT   0x1F
 
#define LL_MIN_CIS_BN   0x00
 
#define LL_MAX_CIS_BN   0x10
 
#define LL_MIN_CIS_RTN   0x00
 
#define LL_MAX_CIS_RTN   0x0F
 
#define LL_ISO_TEST_VAR_MIN_LEN   4
 
#define LL_ISO_TRANSPORT_LAT_MIN   0x0000EA
 
#define LL_DTM_HDR_LEN   2
 
#define LL_DTM_SYNC_WORD   UINT32_C(0x71764129)
 
#define LL_DTM_CRC_INIT   UINT32_C(0x555555)
 
#define LL_DTM_MAX_INT_US   12500
 
#define LL_DTM_PDU_ABS_MAX_LEN   255
 
#define LL_DTM_MAX_CHAN_IDX   39
 
#define LL_CHAN_DATA_MIN_IDX   0
 
#define LL_CHAN_DATA_MAX_IDX   36
 
#define LL_CHAN_DATA_ALL   UINT64_C(0x0000001FFFFFFFFF)
 
#define LL_BLE_BIT_PER_US   1
 
#define LL_BLE_US_PER_BYTE_1M   8
 
#define LL_BLE_US_PER_BYTE_2M   4
 
#define LL_BLE_US_PER_BYTE_CODED_S8   64
 
#define LL_BLE_US_PER_BIT_CODED_S8   8
 
#define LL_BLE_US_PER_BYTE_CODED_S2   16
 
#define LL_BLE_US_PER_BIT_CODED_S2   2
 
#define LL_BLE_TIFS_US   150
 
#define LL_BLE_MAFS_US   300
 
#define LL_BLE_US_PER_TICK   625
 
#define LL_BLE_TMSS_US   150
 
#define LL_MIN_PKT_TIME_US_1M   80
 
#define LL_MIN_PKT_TIME_US_2M   44
 
#define LL_MIN_PKT_TIME_US_CODED_S8   720
 
#define LL_MIN_PKT_TIME_US_CODED_S2   462
 
#define LL_MIN_ADV_TX_PWR_LVL   -20
 
#define LL_MAX_ADV_TX_PWR_LVL   10
 
#define LL_MIN_TX_PWR_LVL   -30
 
#define LL_MAX_TX_PWR_LVL   20
 
#define LL_MAX_TIFS_DEVIATION   2
 
#define LL_WW_RX_DEVIATION_USEC   16
 
#define LL_30_USEC_OFFS_MAX_USEC   245730
 
#define LL_ACAD_OPCODE_LEN   1
 
#define LL_ACAD_LEN_FIELD_LEN   1
 
#define LL_ACAD_DATA_FIELD_MAX_LEN   (LL_EXT_HDR_ACAD_MAX_LEN - LL_ACAD_OPCODE_LEN - LL_ACAD_LEN_FIELD_LEN)
 
#define LL_ACAD_CHAN_MAP_UPD_LEN   8
 
#define LL_ACAD_BIG_INFO_UNENCRPT_LEN   33
 
#define LL_ACAD_BIG_INFO_ENCRPT_LEN   57
 
#define LL_BIG_OPCODE_LEN   1
 
#define LL_BIG_CHAN_MAP_IND_PDU_LEN   7
 
#define LL_BIG_TERMINATE_IND_PDU_LEN   3
 
#define LL_BIG_MIN_INSTANT   6
 
#define LL_BIG_CONTROL_ACCESS_ADDR   UINT32_C(0x7A412493)
 
#define LL_SCA_MIN_INDEX   0
 
#define LL_SCA_MAX_INDEX   7
 
#define LL_PWR_CONTROL_LIMIT_MIN_BIT   (1 << 0)
 Power control Limit field. More...
 
#define LL_PWR_CONTROL_LIMIT_MAX_BIT   (1 << 1)
 
#define LL_PWR_CTRL_APR_UNDEF   0xFF
 Power control APR field. More...
 
#define LL_PWR_CTRL_TXPOWER_MAX   0x7F
 Power control txPower field. More...
 
#define LL_PWR_CTRL_TXPOWER_MIN   0x7E
 
#define LL_PWR_CTRL_TXPOWER_UNAVAILABLE   127
 
#define LL_PWR_CTRL_TXPOWER_UNMANAGED   126
 
#define LL_ISOAL_SEG_HDR_MASK_SC   0x01
 
#define LL_ISOAL_SEG_HDR_MASK_CMPLT   0x02
 

Enumerations

Detailed Description

Link layer constant definitions.

Copyright (c) 2013-2019 Arm Ltd. All Rights Reserved.

Copyright (c) 2019-2020 Packetcraft, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file ll_defs.h.

Macro Definition Documentation

#define LL_30_USEC_OFFS_MAX_USEC   245730

Maximum value for 30 microseconds offset unit in microseconds.

Definition at line 499 of file ll_defs.h.

#define LL_AA_LEN   4

Access address length.

Definition at line 57 of file ll_defs.h.

#define LL_ACAD_BIG_INFO_ENCRPT_LEN   57

Length of ACAD for an encrypted BIG Info.

Definition at line 516 of file ll_defs.h.

#define LL_ACAD_BIG_INFO_UNENCRPT_LEN   33

Length of ACAD for an unencrypted BIG Info.

Definition at line 515 of file ll_defs.h.

#define LL_ACAD_CHAN_MAP_UPD_LEN   8

Length of ACAD update periodic channel map data field.

Definition at line 514 of file ll_defs.h.

#define LL_ACAD_DATA_FIELD_MAX_LEN   (LL_EXT_HDR_ACAD_MAX_LEN - LL_ACAD_OPCODE_LEN - LL_ACAD_LEN_FIELD_LEN)

Length of max ACAD field length without opcode and length field

Definition at line 512 of file ll_defs.h.

#define LL_ACAD_LEN_FIELD_LEN   1

Length of ACAD length field

Definition at line 511 of file ll_defs.h.

#define LL_ACAD_OPCODE_LEN   1

Length of a single ACAD opcode.

Definition at line 510 of file ll_defs.h.

#define LL_ADV_ACCESS_ADDR   UINT32_C(0x8E89BED6)

Advertising channel access address.

Definition at line 129 of file ll_defs.h.

#define LL_ADV_CRC_INIT   UINT32_C(0x555555)

Advertising CRC initial value.

Definition at line 130 of file ll_defs.h.

#define LL_ADV_EXT_HDR_LEN_MSK   0xFF

Advertising extension header length mask for 5.0.

Definition at line 125 of file ll_defs.h.

#define LL_ADV_HDR_CP_MSK   0x40

Advertising header CP Mask for 5.1.

Definition at line 124 of file ll_defs.h.

#define LL_ADV_HDR_LEN   2

Advertising channel header length.

Definition at line 119 of file ll_defs.h.

#define LL_ADV_HDR_LEN_MSK   0x3F

Advertising header length mask for 4.2.

Definition at line 123 of file ll_defs.h.

#define LL_ADV_HDR_LEN_OFFS   1

Advertising header length offset.

Definition at line 122 of file ll_defs.h.

#define LL_ADV_HDR_TYPE_MSK   0x0F

Advertising header type mask.

Definition at line 121 of file ll_defs.h.

#define LL_ADV_HDR_TYPE_OFFS   0

Advertising header type offset.

Definition at line 120 of file ll_defs.h.

#define LL_ADV_PKT_MAX_USEC   LL_ADVB_MAX_TIME_1M

Maximum time in microseconds for an advertising packet.

Definition at line 114 of file ll_defs.h.

#define LL_ADV_PREFIX_LEN   6

Advertising PDU payload prefix length (AdvA).

Definition at line 126 of file ll_defs.h.

#define LL_ADVB_MAX_LEN   39

Maximum advertising channel PDU length.

Definition at line 103 of file ll_defs.h.

#define LL_ADVB_MAX_TIME_1M   ((LL_BLE_US_PER_BYTE_1M * (LL_ADVB_MAX_LEN - LL_ADV_HDR_LEN)) + LL_MIN_PKT_TIME_US_1M)

Maximum time for a 1M advertising channel PDU.

Definition at line 105 of file ll_defs.h.

#define LL_ADVB_MAX_TIME_2M   ((LL_BLE_US_PER_BYTE_2M * (LL_ADVB_MAX_LEN - LL_ADV_HDR_LEN)) + LL_MIN_PKT_TIME_US_2M)

Maximum time for a 2M advertising channel PDU.

Definition at line 107 of file ll_defs.h.

Maximum time for a Coded S2 advertising channel PDU.

Definition at line 109 of file ll_defs.h.

Maximum time for a Coded S8 advertising channel PDU.

Definition at line 111 of file ll_defs.h.

#define LL_ADVB_MIN_LEN   (LL_ADVB_MAX_LEN - LL_ADVBU_MAX_LEN)

Minimum advertising channel packet length.

Definition at line 104 of file ll_defs.h.

#define LL_ADVBU_MAX_LEN   31

Maximum advertising channel host data length.

Definition at line 102 of file ll_defs.h.

#define LL_ALL_PHYS_MSK   0x7

All supported LE PHYs mask.

Definition at line 365 of file ll_defs.h.

#define LL_AUX_PTR_MAX_USEC   2457600

Maximum AuxPtr offset value in microseconds.

Definition at line 170 of file ll_defs.h.

#define LL_BC_LEN   LL_KEY_LEN

Broadcast code length.

Definition at line 313 of file ll_defs.h.

#define LL_BIG_CHAN_MAP_IND_PDU_LEN   7

BIG Channel Map indication PDU length.

Definition at line 530 of file ll_defs.h.

#define LL_BIG_CONTROL_ACCESS_ADDR   UINT32_C(0x7A412493)

BIG Control access address.

Definition at line 535 of file ll_defs.h.

#define LL_BIG_MIN_INSTANT   6

Minimum number of BIG Events to apply a BIG Control PDU.

Definition at line 533 of file ll_defs.h.

#define LL_BIG_OPCODE_LEN   1

Length of a BIG Control PDU opcode.

Definition at line 528 of file ll_defs.h.

#define LL_BIG_TERMINATE_IND_PDU_LEN   3

BIG Terminate indication PDU length.

Definition at line 531 of file ll_defs.h.

#define LL_BLE_BIT_PER_US   1

BLE PHY rate.

Definition at line 472 of file ll_defs.h.

#define LL_BLE_MAFS_US   300

BLE minimum AUX frame space.

Definition at line 480 of file ll_defs.h.

#define LL_BLE_TIFS_US   150

BLE inter-frame space.

Definition at line 479 of file ll_defs.h.

#define LL_BLE_TMSS_US   150

BLE minimum subevent space.

Definition at line 482 of file ll_defs.h.

#define LL_BLE_US_PER_BIT_CODED_S2   2

BLE PHY speed (LE Coded PHY, S=2).

Definition at line 478 of file ll_defs.h.

#define LL_BLE_US_PER_BIT_CODED_S8   8

BLE PHY speed (LE Coded PHY, S=8).

Definition at line 476 of file ll_defs.h.

#define LL_BLE_US_PER_BYTE_1M   8

BLE PHY speed (LE 1M PHY).

Definition at line 473 of file ll_defs.h.

#define LL_BLE_US_PER_BYTE_2M   4

BLE PHY speed (LE 2M PHY).

Definition at line 474 of file ll_defs.h.

#define LL_BLE_US_PER_BYTE_CODED_S2   16

BLE PHY speed (LE Coded PHY, S=2).

Definition at line 477 of file ll_defs.h.

#define LL_BLE_US_PER_BYTE_CODED_S8   64

BLE PHY speed (LE Coded PHY, S=8).

Definition at line 475 of file ll_defs.h.

#define LL_BLE_US_PER_TICK   625

Microseconds per BLE tick.

Definition at line 481 of file ll_defs.h.

#define LL_CHAN_ADV_MAX_IDX   39

Maximum advertising channel index.

Definition at line 99 of file ll_defs.h.

#define LL_CHAN_ADV_MIN_IDX   37

Minimum advertising channel index.

Definition at line 98 of file ll_defs.h.

#define LL_CHAN_DATA_ALL   UINT64_C(0x0000001FFFFFFFFF)

Maximum data channel index.

Definition at line 470 of file ll_defs.h.

#define LL_CHAN_DATA_MAX_IDX   36

Maximum data channel index.

Definition at line 469 of file ll_defs.h.

#define LL_CHAN_DATA_MIN_IDX   0

Minimum data channel index.

Definition at line 468 of file ll_defs.h.

#define LL_CHAN_MAP_IND_PDU_LEN   8

Channel map indication PDU length.

Definition at line 246 of file ll_defs.h.

#define LL_CI_LEN_BITS   2

Coding indicator length (LE Coded PHY).

Definition at line 61 of file ll_defs.h.

#define LL_CIS_IND_LEN   16

CIS indication PDU length.

Definition at line 272 of file ll_defs.h.

#define LL_CIS_REQ_LEN   36

CIS request PDU length.

Definition at line 270 of file ll_defs.h.

#define LL_CIS_RSP_LEN   9

CIS response PDU length.

Definition at line 271 of file ll_defs.h.

#define LL_CIS_SDU_CONFIG_REQ_LEN   13

CIS SDU config request PDU length.

Definition at line 274 of file ll_defs.h.

#define LL_CIS_SDU_CONFIG_RSP_LEN   4

CIS SDU config response PDU length.

Definition at line 275 of file ll_defs.h.

#define LL_CIS_TERM_LEN   4

CIS termination PDU length.

Definition at line 273 of file ll_defs.h.

#define LL_COMP_ID_ARM   0x005F

ARM Ltd. company ID.

Definition at line 48 of file ll_defs.h.

#define LL_CONN_IND_PDU_LEN   34

Size of a connect indication PDU.

Definition at line 95 of file ll_defs.h.

#define LL_CONN_PARAM_PDU_LEN   24

Connection parameter request or response PDU length.

Definition at line 257 of file ll_defs.h.

#define LL_CONN_RSP_PDU_LEN   14

Size of an auxiliary connect response PDU.

Definition at line 96 of file ll_defs.h.

#define LL_CONN_UPD_IND_PDU_LEN   12

Connection update indication PDU length.

Definition at line 245 of file ll_defs.h.

#define LL_CRC_LEN   3

CRC length.

Definition at line 56 of file ll_defs.h.

#define LL_DATA_HDR_LEN   2

Data channel header length.

Definition at line 282 of file ll_defs.h.

#define LL_DATA_HDR_LEN_MSK   0xFF

Data header length mask. BLE 4.2 data len extension allows 8 bits.

Definition at line 287 of file ll_defs.h.

#define LL_DATA_HDR_LLID_MSK   0x03

Data PDU LLID mask.

Definition at line 286 of file ll_defs.h.

#define LL_DATA_HDR_MAX_LEN   4

Data channel header max length (with CTE field).

Definition at line 283 of file ll_defs.h.

#define LL_DATA_LEN_PDU_LEN   9

Data length request or response PDU length.

Definition at line 260 of file ll_defs.h.

#define LL_DATA_LEN_TO_TIME_1M (   len,
  enc 
)    ((LL_BLE_US_PER_BYTE_1M * ((len) + ((enc) ? LL_DATA_MIC_LEN : 0))) + LL_MIN_PKT_TIME_US_1M)

Convert data length to time.

Definition at line 321 of file ll_defs.h.

#define LL_DATA_LEN_TO_TIME_2M (   len,
  enc 
)    ((LL_BLE_US_PER_BYTE_2M * ((len) + ((enc) ? LL_DATA_MIC_LEN : 0))) + LL_MIN_PKT_TIME_US_2M)

Convert data length to time.

Definition at line 324 of file ll_defs.h.

#define LL_DATA_LEN_TO_TIME_CODED_S2 (   len,
  enc 
)    ((LL_BLE_US_PER_BYTE_CODED_S2 * ((len) + ((enc) ? LL_DATA_MIC_LEN : 0))) + LL_MIN_PKT_TIME_US_CODED_S2)

Convert data length to time.

Definition at line 330 of file ll_defs.h.

#define LL_DATA_LEN_TO_TIME_CODED_S8 (   len,
  enc 
)    ((LL_BLE_US_PER_BYTE_CODED_S8 * ((len) + ((enc) ? LL_DATA_MIC_LEN : 0))) + LL_MIN_PKT_TIME_US_CODED_S8)

Convert data length to time.

Definition at line 327 of file ll_defs.h.

#define LL_DATA_MIC_LEN   4

Data channel PDU MIC length.

Definition at line 284 of file ll_defs.h.

#define LL_DEF_AUTH_TO_MS   30000

Default authentication timeout in milliseconds.

Definition at line 317 of file ll_defs.h.

#define LL_DEF_RES_ADDR_TO_SEC   900

Default resolvable address timeout in seconds.

Definition at line 307 of file ll_defs.h.

#define LL_DIR_ADV_DUR_TICKS   2048

Maximum high duty cycle directed advertising duration (1.28 seconds).

Definition at line 133 of file ll_defs.h.

#define LL_DIR_ADV_INTER_TICKS   6

Advertising interval between directed advertising events (3.75 ms).

Definition at line 132 of file ll_defs.h.

#define LL_DTM_CRC_INIT   UINT32_C(0x555555)

Direct Test Mode CRC initial value.

Definition at line 461 of file ll_defs.h.

#define LL_DTM_HDR_LEN   2

Direct Test Mode PDU header length.

Definition at line 459 of file ll_defs.h.

#define LL_DTM_MAX_CHAN_IDX   39

Maximum channel index.

Definition at line 464 of file ll_defs.h.

#define LL_DTM_MAX_INT_US   12500

Maximum time interval between packets in microseconds.

Definition at line 462 of file ll_defs.h.

#define LL_DTM_PDU_ABS_MAX_LEN   255

Absolute maximum DTM PDU length.

Definition at line 463 of file ll_defs.h.

#define LL_DTM_SYNC_WORD   UINT32_C(0x71764129)

Direct Test Mode sync word.

Definition at line 460 of file ll_defs.h.

#define LL_ECC_KEY_LEN   32

ECC key length.

Definition at line 305 of file ll_defs.h.

#define LL_EMPTY_PDU_LEN   2

Length of an empty data PDU.

Definition at line 280 of file ll_defs.h.

#define LL_ENC_REQ_LEN   23

Encryption request PDU length.

Definition at line 248 of file ll_defs.h.

#define LL_ENC_RSP_LEN   13

Encryption response PDU length.

Definition at line 249 of file ll_defs.h.

#define LL_EXT_ADV_HDR_MAX_LEN   64

Maximum extended advertising header length (ExtHdrLen, AdvMode fields and Extended header).

Definition at line 151 of file ll_defs.h.

#define LL_EXT_ADV_HDR_MIN_LEN   1

Minimum extended advertising header length (ExtHdrLen and AdvMode fields).

Definition at line 150 of file ll_defs.h.

#define LL_EXT_ADVB_MAX_LEN   257

Maximum extended advertising channel PDU length.

Definition at line 154 of file ll_defs.h.

#define LL_EXT_ADVB_MAX_TIME_1M   ((LL_BLE_US_PER_BYTE_1M * (LL_EXT_ADVB_MAX_LEN - LL_ADV_HDR_LEN)) + LL_MIN_PKT_TIME_US_1M)

Maximum time for a 1M advertising channel PDU.

Definition at line 159 of file ll_defs.h.

#define LL_EXT_ADVB_MAX_TIME_2M   ((LL_BLE_US_PER_BYTE_2M * (LL_EXT_ADVB_MAX_LEN - LL_ADV_HDR_LEN)) + LL_MIN_PKT_TIME_US_2M)

Maximum time for a 2M advertising channel PDU.

Definition at line 161 of file ll_defs.h.

Maximum time for a Coded S2 advertising channel PDU.

Definition at line 163 of file ll_defs.h.

Maximum time for a Coded S8 advertising channel PDU.

Definition at line 165 of file ll_defs.h.

#define LL_EXT_ADVB_NORMAL_LEN   50

Normal extended advertising channel PDU length.

Definition at line 155 of file ll_defs.h.

Time for a Coded S8 advertising channel PDU with normal length.

Definition at line 167 of file ll_defs.h.

#define LL_EXT_ADVBU_MAX_LEN   251

Maximum extended advertising channel PDU host data length.

Definition at line 153 of file ll_defs.h.

#define LL_EXT_HDR_ACAD_MAX_LEN   LL_EXT_ADV_HDR_MAX_LEN - LL_EXT_ADV_HDR_MIN_LEN - LL_EXT_HDR_FLAG_LEN

Maximum possible ACAD length (Max extended header minus ExtHdrLen, AdvMode, and extended header flag field.

Definition at line 157 of file ll_defs.h.

#define LL_EXT_HDR_FLAG_LEN   1

Length of extended header flag field

Definition at line 152 of file ll_defs.h.

#define LL_FEATURE_PDU_LEN   9

Feature request/response PDU length.

Definition at line 252 of file ll_defs.h.

#define LL_GIV_LEN   8

GIV length.

Definition at line 314 of file ll_defs.h.

#define LL_GSKD_LEN   16

GSKD code length.

Definition at line 315 of file ll_defs.h.

#define LL_ISO_DATA_HDR_LEN   2

ISO Data PDU header length.

Definition at line 369 of file ll_defs.h.

#define LL_ISO_DATA_PLD_MAX_LEN   251

Maximum ISO Data PDU payload length

Definition at line 370 of file ll_defs.h.

#define LL_ISO_PDU_MAX_LEN   (HCI_ISO_HDR_LEN + BB_DATA_PLD_MAX_LEN + BB_DATA_PDU_TAILROOM)

Maximum ISO Data PDU length.

Definition at line 371 of file ll_defs.h.

#define LL_ISO_SEG_HDR_LEN   2

Segmentation header length.

Definition at line 374 of file ll_defs.h.

#define LL_ISO_SEG_TO_LEN   3

Segmentation Time Offset length.

Definition at line 375 of file ll_defs.h.

#define LL_ISO_TEST_VAR_MIN_LEN   4

Minimum length test payload.

Definition at line 453 of file ll_defs.h.

#define LL_ISO_TRANSPORT_LAT_MIN   0x0000EA

Minimum transport latency.

Definition at line 455 of file ll_defs.h.

#define LL_ISOAL_SEG_HDR_MASK_CMPLT   0x02

Mask for segmentation header complete bit.

Definition at line 585 of file ll_defs.h.

#define LL_ISOAL_SEG_HDR_MASK_SC   0x01

Mask for segmentation header start/continuation bit.

Definition at line 584 of file ll_defs.h.

#define LL_IV_LEN   8

Initialization vector length.

Definition at line 312 of file ll_defs.h.

#define LL_KEY_LEN   16

Encryption key length.

Definition at line 310 of file ll_defs.h.

#define LL_MAX_ADV_DATA_LEN   1650

Maximum advertising data length.

Definition at line 336 of file ll_defs.h.

#define LL_MAX_ADV_DLY_MS   10

Maximum advertising delay in milliseconds.

Definition at line 348 of file ll_defs.h.

#define LL_MAX_ADV_HANDLE   0xEF

Maximum advertising handle.

Definition at line 147 of file ll_defs.h.

#define LL_MAX_ADV_SID   0x0F

Maximum advertising SID

Definition at line 148 of file ll_defs.h.

#define LL_MAX_ADV_TX_PWR_LVL   10

Maximum Tx power level for advertising.

Definition at line 490 of file ll_defs.h.

#define LL_MAX_CIG_ID   0xEF

Maximum value for CIG ID.

Definition at line 380 of file ll_defs.h.

#define LL_MAX_CIS_BN   0x10

Maximum value for CIS burst number.

Definition at line 413 of file ll_defs.h.

#define LL_MAX_CIS_COUNT   0x10

Maximum count for CIS.

Definition at line 377 of file ll_defs.h.

#define LL_MAX_CIS_FT   0x1F

Maximum value for CIS flush time.

Definition at line 410 of file ll_defs.h.

#define LL_MAX_CIS_ID   0xEF

Maximum value for CIS ID.

Definition at line 383 of file ll_defs.h.

#define LL_MAX_CIS_NSE   0x1F

Maximum value for CIS number of subevent.

Definition at line 398 of file ll_defs.h.

#define LL_MAX_CIS_PHY_BIT   0x02

Maximum value for CIS PHY bit.

Definition at line 407 of file ll_defs.h.

#define LL_MAX_CIS_PL   0x0FFB

Maximum value for CIS payload.

Definition at line 401 of file ll_defs.h.

#define LL_MAX_CIS_RTN   0x0F

Maximum value for CIS retransmission number.

Definition at line 416 of file ll_defs.h.

#define LL_MAX_CIS_TRANS_LAT   0x0FA0

Maximum value for CIS transport latency.

Definition at line 404 of file ll_defs.h.

#define LL_MAX_CONN_INTERVAL   3200

Maximum value for connection interval.

Definition at line 351 of file ll_defs.h.

#define LL_MAX_CONN_LATENCY   499

Maximum value for connection slave latency.

Definition at line 356 of file ll_defs.h.

#define LL_MAX_DATA_LEN_ABS_MAX   251

Absolute maximum limit for maximum Data PDU length

Definition at line 339 of file ll_defs.h.

#define LL_MAX_DATA_LEN_MIN   27

Minimum value for maximum Data PDU length

Definition at line 338 of file ll_defs.h.

#define LL_MAX_DATA_TIME_ABS_MAX   17040

Absolute maximum limit for maximum Data PDU time

Definition at line 342 of file ll_defs.h.

#define LL_MAX_DATA_TIME_ABS_MAX_1M   2128

Absolute maximum limit for maximum Data PDU time (LE 1M PHY)

Definition at line 343 of file ll_defs.h.

#define LL_MAX_DATA_TIME_ABS_MIN_CODED   2704

Absolute minimum limit for maximum Data PDU time (CODED PHY)

Definition at line 344 of file ll_defs.h.

#define LL_MAX_DATA_TIME_MIN   328

Minimum value for maximum Data PDU time

Definition at line 341 of file ll_defs.h.

#define LL_MAX_ISO_INTERV   0x0C80

Maximum value for ISO interval.

Definition at line 386 of file ll_defs.h.

#define LL_MAX_ISOAL_PDU_TYPE   0x01

Maximum value for ISOAL PDU type.

Definition at line 389 of file ll_defs.h.

#define LL_MAX_NUM_CHAN_DATA   37

Maximum number of used data channels.

Definition at line 289 of file ll_defs.h.

#define LL_MAX_PHYS   3

Number of LE PHYs.

Definition at line 364 of file ll_defs.h.

#define LL_MAX_POWER_THRESHOLD   127

Maximum value for power threshold.

Definition at line 362 of file ll_defs.h.

#define LL_MAX_SDU_INTERV   0xFFFFF

Maximum value for SDU interval.

Definition at line 395 of file ll_defs.h.

#define LL_MAX_SDU_SIZE   0xFFF

Maximum value for SDU size.

Definition at line 392 of file ll_defs.h.

#define LL_MAX_SUP_TIMEOUT   3200

Maximum value for connection supervision timeout.

Definition at line 359 of file ll_defs.h.

#define LL_MAX_TIFS_DEVIATION   2

Maximum TIFS deviation in microseconds.

Definition at line 495 of file ll_defs.h.

#define LL_MAX_TX_PWR_LVL   20

Maximum Tx power level for connections.

Definition at line 493 of file ll_defs.h.

#define LL_MAX_TX_WIN_SIZE   8

Maximum value for transmit window size.

Definition at line 354 of file ll_defs.h.

#define LL_MIN_ADV_TX_PWR_LVL   -20

Minimum Tx power level for advertising.

Definition at line 489 of file ll_defs.h.

#define LL_MIN_CIG_ID   0x00

Minimum value for CIG ID.

Definition at line 379 of file ll_defs.h.

#define LL_MIN_CIS_BN   0x00

Minimum value for CIS burst number.

Definition at line 412 of file ll_defs.h.

#define LL_MIN_CIS_FT   0x01

Minimum value for CIS flush time.

Definition at line 409 of file ll_defs.h.

#define LL_MIN_CIS_ID   0x00

Minimum value for CIS ID.

Definition at line 382 of file ll_defs.h.

#define LL_MIN_CIS_NSE   0x01

Minimum value for CIS number of subevent.

Definition at line 397 of file ll_defs.h.

#define LL_MIN_CIS_PHY_BIT   0x00

Minimum value for CIS PHY bit.

Definition at line 406 of file ll_defs.h.

#define LL_MIN_CIS_PL   0x0000

Minimum value for CIS payload.

Definition at line 400 of file ll_defs.h.

#define LL_MIN_CIS_RTN   0x00

Minimum value for CIS retransmission number.

Definition at line 415 of file ll_defs.h.

#define LL_MIN_CIS_TRANS_LAT   0x0005

Minimum value for CIS transport latency.

Definition at line 403 of file ll_defs.h.

#define LL_MIN_CONN_INTERVAL   6

Minimum value for connection interval.

Definition at line 350 of file ll_defs.h.

#define LL_MIN_INSTANT   6

Minimum number of CE to apply a CONN_UPD or CHAN_MAP.

Definition at line 334 of file ll_defs.h.

#define LL_MIN_ISO_INTERV   0x0004

Minimum value for ISO interval.

Definition at line 385 of file ll_defs.h.

#define LL_MIN_ISOAL_PDU_TYPE   0x00

Minimum value for ISOAL PDU type.

Definition at line 388 of file ll_defs.h.

#define LL_MIN_NUM_CHAN_DATA   2

Minimum number of used data channels.

Definition at line 290 of file ll_defs.h.

#define LL_MIN_PKT_TIME_US_1M   80

Minimum packet time (i.e. empty PDU) on LE 1M PHY.

Definition at line 484 of file ll_defs.h.

#define LL_MIN_PKT_TIME_US_2M   44

Minimum packet time (i.e. empty PDU) on LE 2M PHY.

Definition at line 485 of file ll_defs.h.

#define LL_MIN_PKT_TIME_US_CODED_S2   462

Minimum packet time (i.e. empty PDU) on LE Coded PHY, S=2.

Definition at line 487 of file ll_defs.h.

#define LL_MIN_PKT_TIME_US_CODED_S8   720

Minimum packet time (i.e. empty PDU) on LE Coded PHY, S=8.

Definition at line 486 of file ll_defs.h.

#define LL_MIN_POWER_THRESHOLD   -128

Minimum value for power threshold.

Definition at line 361 of file ll_defs.h.

#define LL_MIN_SDU_INTERV   0x000FF

Minimum value for SDU interval.

Definition at line 394 of file ll_defs.h.

#define LL_MIN_SDU_SIZE   0x000

Minimum value for SDU size.

Definition at line 391 of file ll_defs.h.

#define LL_MIN_SUP_TIMEOUT   10

Minimum value for connection supervision timeout.

Definition at line 358 of file ll_defs.h.

#define LL_MIN_TX_PWR_LVL   -30

Minimum Tx power level for connections.

Definition at line 492 of file ll_defs.h.

#define LL_MIN_TX_WIN_SIZE   1

Minimum value for transmit window size.

Definition at line 353 of file ll_defs.h.

#define LL_MIN_USED_CHAN_PDU_LEN   3

Minimum used channels indication PDU length.

Definition at line 264 of file ll_defs.h.

#define LL_NUM_CHAN_ADV   3

Total number of advertising channels.

Definition at line 100 of file ll_defs.h.

#define LL_PAUSE_ENC_LEN   1

Pause encryption request/response PDU length.

Definition at line 253 of file ll_defs.h.

#define LL_PEER_SCA_REQ_LEN   2

Peer SCA request PDU length.

Definition at line 268 of file ll_defs.h.

#define LL_PEER_SCA_RSP_LEN   2

Peer SCA response PDU length.

Definition at line 269 of file ll_defs.h.

#define LL_PER_ADV_INT_MIN   0x0006

Minimum periodic advertising interval.

Definition at line 177 of file ll_defs.h.

#define LL_PERIODIC_SYNC_PDU_LEN   35

Periodic sync indication PDU length.

Definition at line 266 of file ll_defs.h.

#define LL_PHY_PDU_LEN   3

PHY request/response PDU length.

Definition at line 262 of file ll_defs.h.

#define LL_PHY_UPD_IND_PDU_LEN   5

PHY update indication PDU length.

Definition at line 263 of file ll_defs.h.

#define LL_PING_PDU_LEN   1

Ping request/response PDU length.

Definition at line 259 of file ll_defs.h.

#define LL_PREAMBLE_LEN_1M   1

Preamble length (LE 1M PHY).

Definition at line 58 of file ll_defs.h.

#define LL_PREAMBLE_LEN_2M   2

Preamble length (LE 2M PHY).

Definition at line 59 of file ll_defs.h.

#define LL_PREAMBLE_LEN_CODED_BITS   10

Preamble length (LE Coded PHY).

Definition at line 60 of file ll_defs.h.

#define LL_PWR_CHNG_IND_LEN   5

Power Indication PDU length.

Definition at line 278 of file ll_defs.h.

#define LL_PWR_CONTROL_LIMIT_MAX_BIT   (1 << 1)

txPower is at it's maximum limit.

Definition at line 555 of file ll_defs.h.

#define LL_PWR_CONTROL_LIMIT_MIN_BIT   (1 << 0)

Power control Limit field.

txPower is at it's minimum limit.

Definition at line 554 of file ll_defs.h.

#define LL_PWR_CTRL_APR_UNDEF   0xFF

Power control APR field.

Undefined power reduction limit.

Definition at line 558 of file ll_defs.h.

#define LL_PWR_CTRL_REQ_LEN   4

Power Control request PDU length.

Definition at line 276 of file ll_defs.h.

#define LL_PWR_CTRL_RSP_LEN   5

Power Control response PDU length.

Definition at line 277 of file ll_defs.h.

#define LL_PWR_CTRL_TXPOWER_MAX   0x7F

Power control txPower field.

txPower symbol for maximum txPower.

Definition at line 561 of file ll_defs.h.

#define LL_PWR_CTRL_TXPOWER_MIN   0x7E

txPower symbol for minimum txPower.

Definition at line 562 of file ll_defs.h.

#define LL_PWR_CTRL_TXPOWER_UNAVAILABLE   127

Power is unavailable for this PHY.

Definition at line 563 of file ll_defs.h.

#define LL_PWR_CTRL_TXPOWER_UNMANAGED   126

Power is unmanaged for this PHY.

Definition at line 564 of file ll_defs.h.

#define LL_RAND_ADDR_TYPE_MASK   UINT64_C(0xC00000000000)

BD Random Address type mask.

Definition at line 65 of file ll_defs.h.

#define LL_RAND_ADDR_TYPE_NRPA   UINT64_C(0x000000000000)

Non-Resolvable Private Address type.

Definition at line 68 of file ll_defs.h.

#define LL_RAND_ADDR_TYPE_RPA   UINT64_C(0x400000000000)

Resolvable Private Address type.

Definition at line 67 of file ll_defs.h.

#define LL_RAND_ADDR_TYPE_STATIC   UINT64_C(0xC00000000000)

Static Random Address type.

Definition at line 66 of file ll_defs.h.

#define LL_RAND_LEN   8

Length of random number

Definition at line 309 of file ll_defs.h.

#define LL_REJECT_EXT_IND_PDU_LEN   3

Reject extended indication PDU length.

Definition at line 258 of file ll_defs.h.

#define LL_REJECT_IND_PDU_LEN   2

Reject indication PDU length.

Definition at line 255 of file ll_defs.h.

#define LL_RSSI_MAX   20

Maximum RSSI value.

Definition at line 53 of file ll_defs.h.

#define LL_RSSI_MIN   -127

Minimum RSSI value.

Definition at line 52 of file ll_defs.h.

#define LL_RSSI_NOT_AVAIL   127

RSSI is not available.

Definition at line 54 of file ll_defs.h.

#define LL_SCA_MAX_INDEX   7

Index for highest accuracy clock.

Definition at line 549 of file ll_defs.h.

#define LL_SCA_MIN_INDEX   0

Index for lowest accuracy clock.

Definition at line 548 of file ll_defs.h.

#define LL_SCAN_PREFIX_LEN   6

Scan request/response PDU payload prefix length (AdvA).

Definition at line 127 of file ll_defs.h.

#define LL_SCAN_REQ_MAX_USEC   ((8 * (LL_ADV_PREFIX_LEN + LL_SCAN_PREFIX_LEN)) + LL_MIN_PKT_TIME_US_1M)

Maximum time in microseconds for a scan request packet.

Definition at line 115 of file ll_defs.h.

#define LL_SCAN_REQ_PDU_LEN   12

Size of a scan request PDU.

Definition at line 94 of file ll_defs.h.

#define LL_SCAN_RSP_MAX_USEC   LL_ADVB_MAX_TIME_1M

Maximum time in microseconds for a scan response packet.

Definition at line 117 of file ll_defs.h.

#define LL_SKD_LEN   LL_KEY_LEN

Session key diversifier length.

Definition at line 311 of file ll_defs.h.

#define LL_START_ENC_LEN   1

Start encryption request/response PDU length.

Definition at line 250 of file ll_defs.h.

#define LL_SYNC_INFO_LEN   18

Size of SyncInfo field.

Definition at line 180 of file ll_defs.h.

#define LL_SYNC_MAX_HANDLE   0x0EFF

Maximum synchronization handle.

Definition at line 175 of file ll_defs.h.

#define LL_SYNC_MAX_SKIP   0x01F3

Maximum synchronization skip.

Definition at line 174 of file ll_defs.h.

#define LL_SYNC_MAX_TIMEOUT   0x4000

Maximum synchronization timeout.

Definition at line 173 of file ll_defs.h.

#define LL_SYNC_MIN_TIMEOUT   0x000A

Minimum synchronization timeout.

Definition at line 172 of file ll_defs.h.

#define LL_SYNC_OFFS_ADJUST_USEC   LL_AUX_PTR_MAX_USEC

Sync offset adjust of 2.4576 seconds.

Definition at line 179 of file ll_defs.h.

#define LL_T_PRT_SEC   40

LLCP procedure response timeout in seconds.

Definition at line 346 of file ll_defs.h.

#define LL_TERM1_LEN_BITS   3

TERM1 length (LE Coded PHY).

Definition at line 62 of file ll_defs.h.

#define LL_TERM2_LEN_BITS   3

TERM2 length (LE Coded PHY).

Definition at line 63 of file ll_defs.h.

#define LL_TERMINATE_IND_PDU_LEN   2

Terminate indication PDU length.

Definition at line 247 of file ll_defs.h.

#define LL_UNKNOWN_RSP_LEN   2

Unknown response PDU length.

Definition at line 251 of file ll_defs.h.

#define LL_VER_BT_CORE_SPEC_4_0   0x06

Bluetooth core specification 4.0

Definition at line 40 of file ll_defs.h.

#define LL_VER_BT_CORE_SPEC_4_1   0x07

Bluetooth core specification 4.1

Definition at line 41 of file ll_defs.h.

#define LL_VER_BT_CORE_SPEC_4_2   0x08

Bluetooth core specification 4.2

Definition at line 42 of file ll_defs.h.

#define LL_VER_BT_CORE_SPEC_5_0   0x09

Bluetooth core specification 5.0

Definition at line 43 of file ll_defs.h.

#define LL_VER_BT_CORE_SPEC_5_1   0x0A

Bluetooth core specification 5.1

Definition at line 44 of file ll_defs.h.

#define LL_VER_BT_CORE_SPEC_5_2   0x0B

Bluetooth core specification 5.2

Definition at line 45 of file ll_defs.h.

#define LL_VER_BT_CORE_SPEC_SYDNEY   0x0C

Bluetooth core specification Sydney

Definition at line 46 of file ll_defs.h.

#define LL_VERSION_IND_PDU_LEN   6

Version indication PDU length.

Definition at line 254 of file ll_defs.h.

#define LL_WW_RX_DEVIATION_USEC   16

RX deviation in microseconds for window widening.

Definition at line 497 of file ll_defs.h.

Enumeration Type Documentation

anonymous enum

Advertising channel PDU types.

Enumerator
LL_PDU_ADV_IND 

Connectable undirected advertising PDU.

LL_PDU_ADV_DIRECT_IND 

Connectable directed advertising PDU.

LL_PDU_ADV_NONCONN_IND 

Non-connectable undirected advertising PDU.

LL_PDU_SCAN_REQ 

Scan request PDU.

LL_PDU_SCAN_RSP 

Scan response PDU.

LL_PDU_CONNECT_IND 

Connect indication PDU.

LL_PDU_ADV_SCAN_IND 

Scannable undirected advertising PDU.

LL_PDU_AUX_SCAN_REQ 

Auxiliary scan request PDU.

LL_PDU_AUX_CONNECT_REQ 

Auxiliary connect request PDU.

LL_PDU_ADV_EXT_IND 

Extended advertising PDU.

LL_PDU_AUX_ADV_IND 

Auxiliary advertising PDU.

LL_PDU_AUX_SCAN_RSP 

Auxiliary scan response PDU.

LL_PDU_AUX_SYNC_IND 

Auxiliary synchronize PDU.

LL_PDU_AUX_CHAIN_IND 

Auxiliary chain PDU.

LL_PDU_AUX_CONNECT_RSP 

Auxiliary connect response PDU.

Definition at line 73 of file ll_defs.h.

anonymous enum

Extended header bit definition.

Enumerator
LL_EXT_HDR_ADV_ADDR_BIT 

Extended header AdvA bit.

LL_EXT_HDR_TGT_ADDR_BIT 

Extended header TargetA bit.

LL_EXT_HDR_CTE_INFO_BIT 

Extended header CTEInfo bit.

LL_EXT_HDR_ADI_BIT 

Extended header AdvDataInfo bit.

LL_EXT_HDR_AUX_PTR_BIT 

Extended header AuxPtr bit.

LL_EXT_HDR_SYNC_INFO_BIT 

Extended header SyncInfo bit.

LL_EXT_HDR_TX_PWR_BIT 

Extended header TxPower bit.

Definition at line 136 of file ll_defs.h.

anonymous enum

Periodic sync transfer receive mode.

Enumerator
LL_SYNC_TRSF_MODE_OFF 

Periodic sync transfer receive is disabled.

LL_SYNC_TRSF_MODE_REP_DISABLED 

Periodic sync transfer receive is enabled, report event is disabled.

LL_SYNC_TRSF_MODE_REP_ENABLED 

Periodic sync transfer receive is enabled, report event is enabled.

Definition at line 183 of file ll_defs.h.

anonymous enum

Data channel LL Control PDU types.

Enumerator
LL_PDU_CONN_UPDATE_IND 

Connection update indication PDU.

LL_PDU_CHANNEL_MAP_IND 

Channel map indication PDU.

LL_PDU_TERMINATE_IND 

Terminate indication PDU.

LL_PDU_ENC_REQ 

Encryption request PDU.

LL_PDU_ENC_RSP 

Encryption response PDU.

LL_PDU_START_ENC_REQ 

Start encryption request PDU.

LL_PDU_START_ENC_RSP 

Start encryption response PDU.

LL_PDU_UNKNOWN_RSP 

Unknown response PDU.

LL_PDU_FEATURE_REQ 

Feature request PDU.

LL_PDU_FEATURE_RSP 

Feature response PDU.

LL_PDU_PAUSE_ENC_REQ 

Pause encryption request PDU.

LL_PDU_PAUSE_ENC_RSP 

Pause encryption response PDU.

LL_PDU_VERSION_IND 

Version indication PDU.

LL_PDU_REJECT_IND 

Reject indication PDU.

LL_PDU_SLV_FEATURE_REQ 

Slave feature request PDU.

LL_PDU_CONN_PARAM_REQ 

Connection parameter request PDU.

LL_PDU_CONN_PARAM_RSP 

Connection parameter response PDU.

LL_PDU_REJECT_EXT_IND 

Reject extended indication PDU.

LL_PDU_PING_REQ 

Ping request PDU.

LL_PDU_PING_RSP 

Ping response PDU.

LL_PDU_LENGTH_REQ 

Data length request PDU.

LL_PDU_LENGTH_RSP 

Data length response PDU.

LL_PDU_PHY_REQ 

PHY request PDU.

LL_PDU_PHY_RSP 

PHY response PDU.

LL_PDU_PHY_UPDATE_IND 

PHY update indication PDU.

LL_PDU_MIN_USED_CHAN_IND 

Minimum used channels indication PDU.

LL_PDU_PERIODIC_SYNC_IND 

Periodic sync indication PDU.

LL_PDU_PEER_SCA_REQ 

Peer SCA request PDU.

LL_PDU_PEER_SCA_RSP 

Peer SCA response PDU.

LL_PDU_CIS_REQ 

CIS request PDU.

LL_PDU_CIS_RSP 

CIS response PDU.

LL_PDU_CIS_IND 

CIS indication PDU.

LL_PDU_CIS_TERM_IND 

CIS terminate indication PDU.

LL_PDU_PWR_CTRL_REQ 

Power Control request.

LL_PDU_PWR_CTRL_RSP 

Power Control response.

LL_PDU_PWR_CHNG_IND 

Transmit power change indication PDU.

LL_PDU_UNSPECIFIED 

Unspecified PDU.

Definition at line 194 of file ll_defs.h.

anonymous enum

Data PDU LLID types.

Enumerator
LL_LLID_VS_PDU 

Vendor specific PDU.

LL_LLID_EMPTY_PDU 

Empty PDU.

LL_LLID_CONT_PDU 

Data PDU: continuation fragment of an L2CAP message.

LL_LLID_START_PDU 

Data PDU: start of an L2CAP message or a complete L2CAP message with no fragmentation.

LL_LLID_CTRL_PDU 

Control PDU.

Definition at line 293 of file ll_defs.h.

anonymous enum

ISO test payload types.

Enumerator
LL_ISO_TEST_PL_LEN_ZERO 

Zero length test payload

LL_ISO_TEST_PL_LEN_VAR 

Variable length test payload

LL_ISO_TEST_PL_LEN_MAX 

Maximum length test payload

Definition at line 439 of file ll_defs.h.

anonymous enum

ISOAL SDU assembly states.

Enumerator
LL_ISO_SDU_STATE_NEW 

New SDU state.

LL_ISO_SDU_STATE_CONT 

SDU pending state.

Definition at line 447 of file ll_defs.h.

anonymous enum

ACAD opcodes.

Enumerator
LL_ACAD_OPCODE_CHAN_MAP_UPD 

Opcode for ACAD Channel Map Update Indication.

LL_ACAD_OPCODE_BIG_INFO 

Opcode for ACAD BIG Info.

Definition at line 504 of file ll_defs.h.

anonymous enum

BIG Control opcodes.

Enumerator
LL_BIG_OPCODE_CHAN_MAP_IND 

Opcode for BIG Channel Map Indication.

LL_BIG_OPCODE_BIG_TERM_IND 

Opcode for BIG Terminate Indication.

LL_BIG_OPCODE_MAX 

Maximum number of BIG opcodes.

Definition at line 521 of file ll_defs.h.

anonymous enum

Action parameter.

Enumerator
LL_MODIFY_SCA_MORE_ACCURATE 

Modify to more accurate clock accuracy.

LL_MODIFY_SCA_LESS_ACCURATE 

Modify to less accurate clock accuracy.

LL_MODIFY_SCA_NO_ACTION 

No action (Used for request sca tester command).

Definition at line 541 of file ll_defs.h.

anonymous enum

Path loss monitoring zones.

Enumerator
LL_PATH_LOSS_ZONE_LOW 

Low path loss zone.

LL_PATH_LOSS_ZONE_MID 

Medium path loss zone.

LL_PATH_LOSS_ZONE_HIGH 

High path loss zone.

Definition at line 567 of file ll_defs.h.

anonymous enum

brief Power control reporting reasons table.

Enumerator
LL_POWER_REPORT_REASON_LOCAL 

Local power change report.

LL_POWER_REPORT_REASON_REMOTE 

Remote power change report.

LL_POWER_REPORT_REASON_READ_REMOTE 

Remote transmit power read report.

Definition at line 575 of file ll_defs.h.

anonymous enum

Codec transport types.

Enumerator
LL_CODEC_TRANS_CIS_BIT 

Codec supported over LE CIS.

LL_CODEC_TRANS_BIS_BIT 

Codec supported over LE BIS.

Definition at line 588 of file ll_defs.h.

ISO PDU type.

Enumerator
LL_ISO_PDU_TYPE_UNFRAMED 

Unframed PDU type.

LL_ISO_PDU_TYPE_FRAMED 

Framed PDU type.

Definition at line 432 of file ll_defs.h.

ISO PDU LLID types.

Enumerator
LL_LLID_ISO_UNF_END_PDU 

Unframed ISO Data PDU; end fragment of a SDU.

LL_LLID_ISO_UNF_CONT_PDU 

Unframed ISO Data PDU; start or continuation fragment of a SDU.

LL_LLID_ISO_FRA_PDU 

Framed ISO Data PDU; one or more segments of a SDU.

LL_LLID_ISO_EMPTY_PDU 

ISO Empty PDU.

LL_LLID_BIG_CTRL_PDU 

BIG Control PDU.

Definition at line 419 of file ll_defs.h.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.