Skip to content

Commit e2e927e

Browse files
andreas.larssonadbridge
authored andcommitted
Added BD_ADDR macros
1 parent 7d8b57f commit e2e927e

File tree

1 file changed

+6
-1
lines changed
  • targets/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/sdk/ublox-odin-w2-drivers

1 file changed

+6
-1
lines changed

targets/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/sdk/ublox-odin-w2-drivers/bt_types.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*---------------------------------------------------------------------------
2-
* Copyright (c) 2016, u-blox Malmö, All Rights Reserved
2+
* Copyright (c) 2016, u-blox Malmö, All Rights Reserved
33
* SPDX-License-Identifier: LicenseRef-PBL
44
*
55
* This file and the related binary are licensed under the
@@ -65,6 +65,11 @@
6565

6666
#define PACKET_TYPE_ALL (PACKET_TYPE_DM1 | PACKET_TYPE_DH1 | PACKET_TYPE_DM3 | PACKET_TYPE_DH3 | PACKET_TYPE_DM5 | PACKET_TYPE_DH5)
6767

68+
#define BD_ADDR_IS_STATIC_RANDOM(BdAddress) ((BdAddress[0] & 0xC0) == 0xC0)
69+
#define BD_ADDR_IS_NON_RESOLVABLE(BdAddress) ((BdAddress[0] & 0xC0) == 0x00)
70+
#define BD_ADDR_IS_RESOLVABLE(BdAddress) ((BdAddress[0] & 0xC0) == 0x40)
71+
72+
#define BT_INVALID_STATIC_LINK_KEY (0)
6873
/*===========================================================================
6974
* TYPES
7075
*=========================================================================*/

0 commit comments

Comments
 (0)