diff options
author | Sven Gothel <[email protected]> | 2020-07-02 07:39:06 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-07-02 07:39:06 +0200 |
commit | c92aec05cbea8703a23bc5827680dd6e7a787e55 (patch) | |
tree | 5df77fff33e97024b654b4f3f8fb1daa9aa51fef /api/direct_bt | |
parent | 6e7e9c8c895f97213b885df5fdfad8a63cddaf0e (diff) |
Support BDADDR_LE_RANDOM (p1.2): Add HCILEPeerAddressType/HCILEOwnAddressType String representation + API doc
Diffstat (limited to 'api/direct_bt')
-rw-r--r-- | api/direct_bt/BTAddress.hpp | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/api/direct_bt/BTAddress.hpp b/api/direct_bt/BTAddress.hpp index b2702a7f..80d13408 100644 --- a/api/direct_bt/BTAddress.hpp +++ b/api/direct_bt/BTAddress.hpp @@ -57,7 +57,7 @@ namespace direct_bt { BDADDR_UNDEFINED = 0xff }; - std::string getBDAddressTypeString(const BDAddressType op); + std::string getBDAddressTypeString(const BDAddressType type); /** * BT Core Spec v5.2: Vol 6 LE, Part B Link Layer Specification: 1.3 Device Address @@ -88,7 +88,7 @@ namespace direct_bt { /** Undefined */ UNDEFINED = 0xff }; - std::string getBLERandomAddressTypeString(const BLERandomAddressType op); + std::string getBLERandomAddressTypeString(const BLERandomAddressType type); /** * HCI LE Address-Type is PUBLIC: 0x00, RANDOM: 0x01 @@ -107,24 +107,34 @@ namespace direct_bt { * </p> */ enum class HCILEPeerAddressType : uint8_t { - PUBLIC = 0x00,/**< HCIADDR_LE_PUBLIC */ - RANDOM = 0x01,/**< HCIADDR_LE_RANDOM */ + /** Public Device Address */ + PUBLIC = 0x00, + /** Random Device Address */ + RANDOM = 0x01, + /** Public Resolved Identity Address */ PUBLIC_IDENTITY = 0x02, + /** Resolved Random (Static) Identity Address */ RANDOM_STATIC_IDENTITY = 0x03, UNDEFINED = 0xff /**< HCIADDR_UNDEFINED */ }; BDAddressType getBDAddressType(const HCILEPeerAddressType hciPeerAddrType); + std::string getHCILEPeerAddressTypeString(const HCILEPeerAddressType type); enum class HCILEOwnAddressType : uint8_t { + /** Public Device Address */ PUBLIC = 0x00, + /** Random Device Address */ RANDOM = 0x01, + /** Controller Resolved Private Address or Public Address */ RESOLVABLE_OR_PUBLIC = 0x02, + /** Controller Resolved Private Address or Random Address */ RESOLVABLE_OR_RANDOM = 0x03, UNDEFINED = 0xff }; BDAddressType getBDAddressType(const HCILEOwnAddressType hciOwnAddrType); + std::string getHCILEOwnAddressTypeString(const HCILEOwnAddressType type); /** * A packed 48 bit EUI-48 identifier, formerly known as MAC-48 |