Link layer constant definitions. More...
#include "wsf_types.h"
Go to the source code of this file.
Enumerations |
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.
#define LL_30_USEC_OFFS_MAX_USEC 245730 |
#define LL_ACAD_BIG_INFO_ENCRPT_LEN 57 |
#define LL_ACAD_BIG_INFO_UNENCRPT_LEN 33 |
#define LL_ACAD_CHAN_MAP_UPD_LEN 8 |
#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_LEN_FIELD_LEN 1 |
#define LL_ACAD_OPCODE_LEN 1 |
#define LL_ADV_ACCESS_ADDR UINT32_C(0x8E89BED6) |
#define LL_ADV_CRC_INIT UINT32_C(0x555555) |
#define LL_ADV_EXT_HDR_LEN_MSK 0xFF |
#define LL_ADV_HDR_CP_MSK 0x40 |
#define LL_ADV_HDR_LEN 2 |
#define LL_ADV_HDR_LEN_MSK 0x3F |
#define LL_ADV_HDR_LEN_OFFS 1 |
#define LL_ADV_HDR_TYPE_MSK 0x0F |
#define LL_ADV_HDR_TYPE_OFFS 0 |
#define LL_ADV_PKT_MAX_USEC LL_ADVB_MAX_TIME_1M |
#define LL_ADV_PREFIX_LEN 6 |
#define LL_ADVB_MAX_LEN 39 |
#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_ADVB_MIN_LEN (LL_ADVB_MAX_LEN - LL_ADVBU_MAX_LEN) |
#define LL_ADVBU_MAX_LEN 31 |
#define LL_AUX_PTR_MAX_USEC 2457600 |
#define LL_BC_LEN LL_KEY_LEN |
#define LL_BIG_CHAN_MAP_IND_PDU_LEN 7 |
#define LL_BIG_CONTROL_ACCESS_ADDR UINT32_C(0x7A412493) |
#define LL_BIG_MIN_INSTANT 6 |
#define LL_BIG_OPCODE_LEN 1 |
#define LL_BIG_TERMINATE_IND_PDU_LEN 3 |
#define LL_BLE_US_PER_BIT_CODED_S2 2 |
#define LL_BLE_US_PER_BIT_CODED_S8 8 |
#define LL_BLE_US_PER_BYTE_1M 8 |
#define LL_BLE_US_PER_BYTE_2M 4 |
#define LL_BLE_US_PER_BYTE_CODED_S2 16 |
#define LL_BLE_US_PER_BYTE_CODED_S8 64 |
#define LL_CHAN_ADV_MAX_IDX 39 |
#define LL_CHAN_ADV_MIN_IDX 37 |
#define LL_CHAN_DATA_ALL UINT64_C(0x0000001FFFFFFFFF) |
#define LL_CHAN_DATA_MAX_IDX 36 |
#define LL_CHAN_DATA_MIN_IDX 0 |
#define LL_CHAN_MAP_IND_PDU_LEN 8 |
#define LL_CI_LEN_BITS 2 |
#define LL_CIS_SDU_CONFIG_REQ_LEN 13 |
#define LL_CIS_SDU_CONFIG_RSP_LEN 4 |
#define LL_CONN_IND_PDU_LEN 34 |
#define LL_CONN_PARAM_PDU_LEN 24 |
#define LL_CONN_RSP_PDU_LEN 14 |
#define LL_CONN_UPD_IND_PDU_LEN 12 |
#define LL_DATA_HDR_LEN_MSK 0xFF |
#define LL_DATA_HDR_MAX_LEN 4 |
#define LL_DATA_LEN_PDU_LEN 9 |
#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_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_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_DEF_AUTH_TO_MS 30000 |
#define LL_DEF_RES_ADDR_TO_SEC 900 |
#define LL_DIR_ADV_DUR_TICKS 2048 |
#define LL_DIR_ADV_INTER_TICKS 6 |
#define LL_DTM_CRC_INIT UINT32_C(0x555555) |
#define LL_DTM_HDR_LEN 2 |
#define LL_DTM_MAX_INT_US 12500 |
#define LL_DTM_PDU_ABS_MAX_LEN 255 |
#define LL_DTM_SYNC_WORD UINT32_C(0x71764129) |
#define LL_EXT_ADV_HDR_MAX_LEN 64 |
#define LL_EXT_ADV_HDR_MIN_LEN 1 |
#define LL_EXT_ADVB_MAX_LEN 257 |
#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_LEN 50 |
#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_EXT_ADVBU_MAX_LEN 251 |
#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_HDR_FLAG_LEN 1 |
#define LL_FEATURE_PDU_LEN 9 |
#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_TO_LEN 3 |
#define LL_ISO_TEST_VAR_MIN_LEN 4 |
#define LL_ISO_TRANSPORT_LAT_MIN 0x0000EA |
#define LL_ISOAL_SEG_HDR_MASK_CMPLT 0x02 |
#define LL_ISOAL_SEG_HDR_MASK_SC 0x01 |
#define LL_MAX_ADV_DATA_LEN 1650 |
#define LL_MAX_ADV_DLY_MS 10 |
#define LL_MAX_ADV_HANDLE 0xEF |
#define LL_MAX_ADV_TX_PWR_LVL 10 |
#define LL_MAX_CIS_BN 0x10 |
#define LL_MAX_CIS_FT 0x1F |
#define LL_MAX_CIS_NSE 0x1F |
#define LL_MAX_CIS_PHY_BIT 0x02 |
#define LL_MAX_CIS_PL 0x0FFB |
#define LL_MAX_CIS_RTN 0x0F |
#define LL_MAX_CIS_TRANS_LAT 0x0FA0 |
#define LL_MAX_CONN_INTERVAL 3200 |
#define LL_MAX_CONN_LATENCY 499 |
#define LL_MAX_DATA_LEN_ABS_MAX 251 |
#define LL_MAX_DATA_LEN_MIN 27 |
#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_MAX_DATA_TIME_MIN 328 |
#define LL_MAX_ISO_INTERV 0x0C80 |
#define LL_MAX_ISOAL_PDU_TYPE 0x01 |
#define LL_MAX_NUM_CHAN_DATA 37 |
#define LL_MAX_POWER_THRESHOLD 127 |
#define LL_MAX_SDU_INTERV 0xFFFFF |
#define LL_MAX_SUP_TIMEOUT 3200 |
#define LL_MAX_TIFS_DEVIATION 2 |
#define LL_MAX_TX_PWR_LVL 20 |
#define LL_MAX_TX_WIN_SIZE 8 |
#define LL_MIN_ADV_TX_PWR_LVL -20 |
#define LL_MIN_CIS_BN 0x00 |
#define LL_MIN_CIS_FT 0x01 |
#define LL_MIN_CIS_NSE 0x01 |
#define LL_MIN_CIS_PHY_BIT 0x00 |
#define LL_MIN_CIS_PL 0x0000 |
#define LL_MIN_CIS_RTN 0x00 |
#define LL_MIN_CIS_TRANS_LAT 0x0005 |
#define LL_MIN_CONN_INTERVAL 6 |
#define LL_MIN_INSTANT 6 |
#define LL_MIN_ISO_INTERV 0x0004 |
#define LL_MIN_ISOAL_PDU_TYPE 0x00 |
#define LL_MIN_NUM_CHAN_DATA 2 |
#define LL_MIN_PKT_TIME_US_1M 80 |
#define LL_MIN_PKT_TIME_US_2M 44 |
#define LL_MIN_PKT_TIME_US_CODED_S2 462 |
#define LL_MIN_PKT_TIME_US_CODED_S8 720 |
#define LL_MIN_POWER_THRESHOLD -128 |
#define LL_MIN_SDU_INTERV 0x000FF |
#define LL_MIN_SUP_TIMEOUT 10 |
#define LL_MIN_TX_PWR_LVL -30 |
#define LL_MIN_TX_WIN_SIZE 1 |
#define LL_MIN_USED_CHAN_PDU_LEN 3 |
#define LL_NUM_CHAN_ADV 3 |
#define LL_PAUSE_ENC_LEN 1 |
#define LL_PEER_SCA_REQ_LEN 2 |
#define LL_PEER_SCA_RSP_LEN 2 |
#define LL_PER_ADV_INT_MIN 0x0006 |
#define LL_PERIODIC_SYNC_PDU_LEN 35 |
#define LL_PHY_UPD_IND_PDU_LEN 5 |
#define LL_PING_PDU_LEN 1 |
#define LL_PREAMBLE_LEN_CODED_BITS 10 |
#define LL_PWR_CHNG_IND_LEN 5 |
#define LL_PWR_CONTROL_LIMIT_MAX_BIT (1 << 1) |
#define LL_PWR_CONTROL_LIMIT_MIN_BIT (1 << 0) |
#define LL_PWR_CTRL_APR_UNDEF 0xFF |
#define LL_PWR_CTRL_REQ_LEN 4 |
#define LL_PWR_CTRL_RSP_LEN 5 |
#define LL_PWR_CTRL_TXPOWER_MAX 0x7F |
#define LL_PWR_CTRL_TXPOWER_MIN 0x7E |
#define LL_PWR_CTRL_TXPOWER_UNAVAILABLE 127 |
#define LL_PWR_CTRL_TXPOWER_UNMANAGED 126 |
#define LL_RAND_ADDR_TYPE_MASK UINT64_C(0xC00000000000) |
#define LL_RAND_ADDR_TYPE_NRPA UINT64_C(0x000000000000) |
#define LL_RAND_ADDR_TYPE_RPA UINT64_C(0x400000000000) |
#define LL_RAND_ADDR_TYPE_STATIC UINT64_C(0xC00000000000) |
#define LL_REJECT_EXT_IND_PDU_LEN 3 |
#define LL_REJECT_IND_PDU_LEN 2 |
#define LL_SCA_MAX_INDEX 7 |
#define LL_SCA_MIN_INDEX 0 |
#define LL_SCAN_PREFIX_LEN 6 |
#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_SKD_LEN LL_KEY_LEN |
#define LL_START_ENC_LEN 1 |
#define LL_SYNC_MAX_HANDLE 0x0EFF |
#define LL_SYNC_MAX_SKIP 0x01F3 |
#define LL_SYNC_MAX_TIMEOUT 0x4000 |
#define LL_SYNC_MIN_TIMEOUT 0x000A |
#define LL_SYNC_OFFS_ADJUST_USEC LL_AUX_PTR_MAX_USEC |
#define LL_T_PRT_SEC 40 |
#define LL_TERMINATE_IND_PDU_LEN 2 |
#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_VERSION_IND_PDU_LEN 6 |
#define LL_WW_RX_DEVIATION_USEC 16 |
anonymous enum |
Advertising channel PDU types.
anonymous enum |
Extended header bit definition.
anonymous enum |
Periodic sync transfer receive mode.
anonymous enum |
Data channel LL Control PDU types.
anonymous enum |
Data PDU LLID types.
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
enum LlFraming_t |
enum LlIsoLlid_t |
ISO PDU LLID types.