Skip to content

Commit 169b85c

Browse files
ppryga-nordiccfriedt
authored andcommitted
Bluetooth: hci: Add helper macros for ver of disallowed CTE types
The commit adds helper macros for verification of disallowed CTE types when periodic advertising synchornization is created. The macros are added here, because they are directly related with values specified by BT Core 5.1 specification. Signed-off-by: Piotr Pryga <[email protected]>
1 parent a9aba82 commit 169b85c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/bluetooth/hci.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1432,11 +1432,16 @@ struct bt_hci_cp_le_ext_create_conn {
14321432
#define BT_HCI_LE_PER_ADV_CREATE_SYNC_FP_USE_LIST BIT(0)
14331433
#define BT_HCI_LE_PER_ADV_CREATE_SYNC_FP_REPORTS_DISABLED BIT(1)
14341434

1435+
#define BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_NO_FILTERING 0
14351436
#define BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_NO_AOA BIT(0)
14361437
#define BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_NO_AOD_1US BIT(1)
14371438
#define BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_NO_AOD_2US BIT(2)
14381439
#define BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_NO_CTE BIT(3)
14391440
#define BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_ONLY_CTE BIT(4)
1441+
/* Constants to check correctness of CTE type */
1442+
#define BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_ALLOWED_BITS 5
1443+
#define BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_INVALID_VALUE \
1444+
(~BIT_MASK(BT_HCI_LE_PER_ADV_CREATE_SYNC_CTE_TYPE_ALLOWED_BITS))
14401445

14411446
#define BT_HCI_OP_LE_PER_ADV_CREATE_SYNC BT_OP(BT_OGF_LE, 0x0044)
14421447
struct bt_hci_cp_le_per_adv_create_sync {

0 commit comments

Comments
 (0)