Direct-BT  2.3.1
Direct-BT - Direct Bluetooth Programming.
Classes | Namespaces | Enumerations | Functions
BTAddress.hpp File Reference
#include <cstring>
#include <string>
#include <cstdint>
#include <functional>
#include <jau/packed_attribute.hpp>
#include <jau/ordered_atomic.hpp>
Include dependency graph for BTAddress.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  direct_bt::EUI48Sub
 A 48 bit EUI-48 sub-identifier, see EUI48. More...
 
struct  direct_bt::EUI48
 A packed 48 bit EUI-48 identifier, formerly known as MAC-48 or simply network device MAC address (Media Access Control address). More...
 
class  direct_bt::BDAddressAndType
 Unique Bluetooth EUI48 address and BDAddressType tuple. More...
 
struct  std::hash< direct_bt::EUI48Sub >
 
struct  std::hash< direct_bt::EUI48 >
 
struct  std::hash< direct_bt::BDAddressAndType >
 

Namespaces

 direct_bt
 

Enumerations

enum  direct_bt::BDAddressType : uint8_t { direct_bt::BDAddressType::BDADDR_BREDR = 0x00, direct_bt::BDAddressType::BDADDR_LE_PUBLIC = 0x01, direct_bt::BDAddressType::BDADDR_LE_RANDOM = 0x02, direct_bt::BDAddressType::BDADDR_UNDEFINED = 0xff }
 BT Core Spec v5.2: Vol 3, Part C Generic Access Profile (GAP): 15.1.1.1 Public Bluetooth address. More...
 
enum  direct_bt::BLERandomAddressType : uint8_t {
  direct_bt::BLERandomAddressType::UNRESOLVABLE_PRIVAT = 0x00, direct_bt::BLERandomAddressType::RESOLVABLE_PRIVAT = 0x01, direct_bt::BLERandomAddressType::RESERVED = 0x02, direct_bt::BLERandomAddressType::STATIC_PUBLIC = 0x03,
  direct_bt::BLERandomAddressType::UNDEFINED = 0xff
}
 BT Core Spec v5.2: Vol 6 LE, Part B Link Layer Specification: 1.3 Device Address. More...
 
enum  direct_bt::HCILEPeerAddressType : uint8_t {
  direct_bt::HCILEPeerAddressType::PUBLIC = 0x00, direct_bt::HCILEPeerAddressType::RANDOM = 0x01, direct_bt::HCILEPeerAddressType::PUBLIC_IDENTITY = 0x02, direct_bt::HCILEPeerAddressType::RANDOM_STATIC_IDENTITY = 0x03,
  direct_bt::HCILEPeerAddressType::UNDEFINED = 0xff
}
 HCI LE Address-Type is PUBLIC: 0x00, RANDOM: 0x01. More...
 
enum  direct_bt::HCILEOwnAddressType : uint8_t {
  direct_bt::HCILEOwnAddressType::PUBLIC = 0x00, direct_bt::HCILEOwnAddressType::RANDOM = 0x01, direct_bt::HCILEOwnAddressType::RESOLVABLE_OR_PUBLIC = 0x02, direct_bt::HCILEOwnAddressType::RESOLVABLE_OR_RANDOM = 0x03,
  direct_bt::HCILEOwnAddressType::UNDEFINED = 0xff
}
 

Functions

constexpr BDAddressType direct_bt::to_BDAddressType (const uint8_t v) noexcept
 
constexpr uint8_t direct_bt::number (const BDAddressType rhs) noexcept
 
std::string direct_bt::to_string (const BDAddressType type) noexcept
 
constexpr uint8_t direct_bt::number (const BLERandomAddressType rhs) noexcept
 
std::string direct_bt::to_string (const BLERandomAddressType type) noexcept
 
constexpr uint8_t direct_bt::number (const HCILEPeerAddressType rhs) noexcept
 
BDAddressType direct_bt::to_BDAddressType (const HCILEPeerAddressType hciPeerAddrType) noexcept
 
std::string direct_bt::to_string (const HCILEPeerAddressType type) noexcept
 
constexpr uint8_t direct_bt::number (const HCILEOwnAddressType rhs) noexcept
 
BDAddressType direct_bt::to_BDAddressType (const HCILEOwnAddressType hciOwnAddrType) noexcept
 
HCILEOwnAddressType direct_bt::to_HCILEOwnAddressType (const BDAddressType addrType) noexcept
 
std::string direct_bt::to_string (const HCILEOwnAddressType type) noexcept
 
std::string direct_bt::to_string (const EUI48Sub &a) noexcept
 
bool direct_bt::operator== (const EUI48Sub &lhs, const EUI48Sub &rhs) noexcept
 
bool direct_bt::operator!= (const EUI48Sub &lhs, const EUI48Sub &rhs) noexcept
 
std::string direct_bt::to_string (const EUI48 &a) noexcept
 
bool direct_bt::operator== (const EUI48 &lhs, const EUI48 &rhs) noexcept
 
bool direct_bt::operator!= (const EUI48 &lhs, const EUI48 &rhs) noexcept
 
bool direct_bt::operator== (const BDAddressAndType &lhs, const BDAddressAndType &rhs) noexcept
 
bool direct_bt::operator!= (const BDAddressAndType &lhs, const BDAddressAndType &rhs) noexcept
 
std::string direct_bt::to_string (const BDAddressAndType &a) noexcept