Share via


BD_ADDR (Compact 2013)

3/26/2014

This structure is used by all Bluetooth stack layers to identify the address of a Bluetooth device.

Syntax

#pragma pack(push, 1)
  typedef struct __bd_addr {
      union {
         struct {
          unsigned int LAP : 24; 
           unsigned int UAP : 8; 
       };
        unsigned int SAP; 
     };
      unsigned short  NAP; 
  } BD_ADDR;
#pragma pack(pop)

Members

  • LAP
    Lower Address Part (24 bits)
  • UAP
    Upper Address Part (8 bits)
  • SAP
    Significant Address Part
  • NAP
    Non-significant Address Part

Remarks

This structure corresponds to the Bluetooth Device Address (BD_ADDR) defined in the Core Specification v2.1 + EDR, Bluetooth web site.

Exposed user APIs, such as port emulation and WinSock interfaces, use another type, BT_ADDR, as defined in Ws2bth.h:

typedef ULONGLONG bt_addr, *pbt_addr, BT_ADDR, *PBT_ADDR;

Requirements

Header

bt_ddi.h

See Also

Reference

Bluetooth HCI Structures