PebbleOS v4.47.0-1161-g94e3d98da
Loading...
Searching...
No Matches
Addresses

How to print addresses. More...

Macros

#define PBL_BT_ADDR_FMT   "%02X:%02X:%02X:%02X:%02X:%02X"
 printf() format of an address, as XX:XX:XX:XX:XX:XX.
 
#define PBL_BT_ADDR_FMT_BUFFER_SIZE   (18)
 Buffer size for an address printed with PBL_BT_ADDR_FMT, including the terminator.
 
#define PBL_BT_ADDR_XPLODE(v)   (v)[5], (v)[4], (v)[3], (v)[2], (v)[1], (v)[0]
 Expand an address into the printf() arguments of PBL_BT_ADDR_FMT, most significant octet first.
 

Detailed Description

How to print addresses.

Addresses are stored least significant octet first, as on air. Use PBL_BT_ADDR_FMT with PBL_BT_ADDR_XPLODE() to print them most significant octet first:

#define PBL_BT_ADDR_XPLODE(v)
Expand an address into the printf() arguments of PBL_BT_ADDR_FMT, most significant octet first.
Definition addr.h:31
#define PBL_BT_ADDR_FMT
printf() format of an address, as XX:XX:XX:XX:XX:XX.
Definition addr.h:21
#define PBL_LOG_DBG(fmt,...)
Log a routine debug message, possibly queued.
Definition logging.h:562

Macro Definition Documentation

◆ PBL_BT_ADDR_FMT

#define PBL_BT_ADDR_FMT   "%02X:%02X:%02X:%02X:%02X:%02X"

printf() format of an address, as XX:XX:XX:XX:XX:XX.

Use with PBL_BT_ADDR_XPLODE().

◆ PBL_BT_ADDR_FMT_BUFFER_SIZE

#define PBL_BT_ADDR_FMT_BUFFER_SIZE   (18)

Buffer size for an address printed with PBL_BT_ADDR_FMT, including the terminator.

◆ PBL_BT_ADDR_XPLODE

#define PBL_BT_ADDR_XPLODE (   v)    (v)[5], (v)[4], (v)[3], (v)[2], (v)[1], (v)[0]

Expand an address into the printf() arguments of PBL_BT_ADDR_FMT, most significant octet first.

Parameters
vIts six octets, least significant first, e.g. the val of a ble_addr_t.